≡

wincent.dev

  • Products
  • Blog
  • Wiki
  • Issues
You are viewing an historical archive of past issues. Please report new issues to the appropriate project issue tracker on GitHub.
Home » Issues » Feature request #2060

Feature request #2060: search in multiple directories

Kind feature request
Product Command-T
When Created 2013-02-15T12:52:30Z, updated 2015-04-10T05:57:27Z
Status closed
Reporter Jakub Arnold
Tags no tags

Description

Imagine a project with the following structure

  • app/
    • foo/
      • models/
        • foo
    • bar/
      • models/
        • bar

It would be great if we could specify multiple directories to be searched when invoking :CommandT, such as

:CommandT app/foo/models,app/bar/models

or even better something like this for any kind of directory

:CommandT app/*/models

Theoretically I'm thinking that it could search from the root, but prefix the search with the directory, so :CommandT app/*/models would become :CommandT with initial query appmodels.

Comments

  1. anonymous 2013-02-22T22:34:10Z

    I second this, I'd like to be able to do

       nmap <buffer> <silent> <Leader>l :exe "CommandT " . join(split(&path, ','), ' ')<CR>

    but instead I have to do something much much worse, like create a tmpdir on vim startup containing symlinks to all of the directories in &path.

  2. Greg Hurrell 2015-04-10T05:57:24Z

    I think the right fix here is to just anchor your search in the common subdirectory.

  3. Greg Hurrell 2015-04-10T05:57:27Z

    Status changed:

    • From: new
    • To: closed
Add a comment

Comments are now closed for this issue.

  • contact
  • legal

Menu

  • Blog
  • Wiki
  • Issues
  • Snippets