kien/ctrlp.vim — Issue #149: Feature Request: dir priority settings
Author: sdhull
Created: 2012-03-02 19:55:58+00:00
State: open

OK I'm probably not the only one who primarily works on Rails projects, and I've found some weird-ish results when using CtrlP, in that it doesn't always bring back the file I'm looking for unless I type some directories first.

So I guess this is (1) weight an exact filename match much greater than a partial path/filename match, and/or (2) allow users to set a list of directories that would have higher precedence.

For me, my dir_priority_list would look something like "app/models/, app/controllers/, app/views/, lib/, config/". Sometimes I want results from other dirs but I would like those to generally pop up sooner rather than later.

(Problem for me is that when I type in "foo.rb", the first result in CtrlP is `lib/foo_bar_blog.rb`, when it should be `app/models/foo.rb`. The file I'm looking for doesn't show up in the list at all, in fact. To get it, I have to type "models/foo.rb" or similar.)