≡

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 #1760

Feature request #1760: Substring search (substrings separated by spaces)

Kind feature request
Product Command-T
When 2010-12-15T16:05:13Z
Status open
Reporter Greg Hurrell
Tags no tags

Description

From a user email:

Hi Wincent, I just found command-t from

http://kevinw.github.com/2010/12/15/this-is-your-brain-on-vim/

I'm using it in a codebase with 40000 files. I'm happy to say the speed is fine. However, almost anything I type however gives a billion matches. J

It would be cool to have a few different search methods. For instance searching for substrings separated by spaces would be invaluable for large codebases like ours. The firefox location bar works like this afaik and also visual assist for msvc for instance.

Thanks for a great plugin,

Stephen.

Comments

  1. Greg Hurrell 2010-12-15T16:09:46Z

    Can you give me an example of some of the paths that you're trying to find?

    I'm inclined to think that if you get the knack of things (specifically knowing that chars matching in certain positions, such as after a "/" are scored more highly, and also that runs of characters are scored more highly too) then you should be able to drill down to the file you're looking for without limiting yourself to the kind of substring search that, if I understand it correctly, you're suggesting.

    It would also be good if you could describe exactly how you would expect this to work. My understanding of it is that given a search string like "foo bar" it would expect to find "foo" as a run of consecutive characters, and "bar" as another in order to match.

Add a comment

Comments are now closed for this issue.

  • contact
  • legal

Menu

  • Blog
  • Wiki
  • Issues
  • Snippets