nixprime / cpsm

A CtrlP matcher, specialized for paths.
Apache License 2.0
202 stars 19 forks source link

MRU order messed up #15

Closed Droggelbecher closed 8 years ago

Droggelbecher commented 8 years ago

The default matcher gives me the most recently used file as first suggestion, then the second most recentely used etc... (given, I didn't type anything yet). That makes it possible to cycle through most recently used files with ctrl-j/ctrl-k. I've gotten pretty used to that behaviour as it allows me to quickly change between the few most recently used files. Any chance to see cpsm support this as well? (Alternatively: Is there a way to tell CtrlP to use a different matcher for the MRU list?)

nixprime commented 8 years ago

I've added a new setting g:cpsm_match_empty_query, which you can set to 0 to prevent cpsm from rearranging items for empty queries; however, this will affect non-MRU mode as well, because CtrlP doesn't inform the matcher whether or not it's in MRU mode. If you want to keep cpsm's behavior for empty queries in non-MRU mode, this can be done with a binding that toggles the value of this setting (see README for an example).

Droggelbecher commented 8 years ago

Works nicely for MRU, thanks for the blazingly fast reaction :+1: :)

However for non-MRU mode I now get " ERROR: function takes at most 10 arguments (11 given)" as soon as I type the first character.

nixprime commented 8 years ago

Another recent commit changed the Python extension, so you have to rebuild it by redoing step 2 in the installation instructions. Sorry for the inconvenience.

Droggelbecher commented 8 years ago

Oh no problem, sorry for not noticing that myself :)