kien / ctrlp.vim

Fuzzy file, buffer, mru, tag, etc finder.
kien.github.com/ctrlp.vim
7.26k stars 676 forks source link

Make CtrlP prefer files in the same directory hierarchy as the current file. #656

Open tomprince opened 9 years ago

tomprince commented 9 years ago

I have a large project with many similarly named files in different directories. It would be nice if CtrlP was smart enough to prefer matches that share a directory prefix with the current file.

For example, if there are the following files:

And I am editing backend/that/impl.py, and I start typing testtools, it would be nice if it preferred backend/this/testtools.py to api/testtools.py