ctrlp.vim icon indicating copy to clipboard operation
ctrlp.vim copied to clipboard

Mixed mode - put MRU first in initial sort

Open Bargs opened this issue 9 years ago • 3 comments

I frequently switch back and forth between the same two files, which MRU mode is great for. If MRU mode is set as my default, I can just hit ctrl-p + enter to switch back and forth. But when I actually need to search for another file I have to open ctrlp and switch modes which is a bit cumbersome. It would be awesome if mixed mode put the MRU files first for quick switching between recent files, but searched through everything once you start typing. I know not everyone has the same workflow as me, but it seems like this would generally be more useful than the current initial ordering which is a bit random. This is basically how the "Search Everything" feature works in Intellij, and it works really well.

Bargs avatar Nov 21 '15 20:11 Bargs

here is an active fork of kien/ctrlp.vim,maybe you can get help from there. https://github.com/ctrlpvim/ctrlp.vim also if you need to switch back and forth between two files,i think Unite maybe is a good choise

wsdjeg avatar Nov 22 '15 01:11 wsdjeg

Ah, it's been awhile since I updated my Vim config, didn't even notice this repo was inactive. Thanks for the tips!

Bargs avatar Nov 23 '15 00:11 Bargs

i think this can be implemented by yourself maybe this is what you need https://github.com/h14i/vim-ctrlp-buftab/blob/master/README.md

wsdjeg avatar Dec 01 '15 00:12 wsdjeg