kien/ctrlp.vim — Issue #31: Matching files near current file get higher weight
Author: graudeejs
Created: 2011-11-13 19:55:30+00:00
State: open

It would be awesome, if when searching for file with ctrlp files that match pattern and are closer to current file (directory wise) would get higher weight

It make good sense, directories are used to store files by some logical groups. Files that are in same directory usually are related. Having files, that match patter and are closer to current file sowing before other files (that are not so close) could decrease amount of characters user needs to input to open file, that he/she want's to open.

For example think about ruby on rails apps
If you're editing app/view/some_name/_form.html.erb
and then you want to open index.html.erb

typing index (or less) could be enough for app/view/some_name/index.html.erb to be first match.

However, if such mathematics would slow vim a lot, better not to do it. I love ctrlp exactly for it's speed

P.S.
I hope you understand what I mean