I use the oldfiles
and browse oldfiles
commands all the time. I find them extremely useful, because it's easier to hit my leader mapping, scan through the files really quickly, and hit
q<number><enter>
rather than typing out a really long directory path to a specific file. (Especially since sometimes I don't remember which directory it's in)
However, there's only one downside. Since I use vim so frequently, sometimes the file I'm looking for is dozens and dozens of rows down, so it takes a really long time to find. Is there any way I could filter the list of files given by oldfiles
to show only a certain extension?
For example, a command like:
browse oldfiles *.py
that shows a list of .py
files I've recently opened, prompts for a number, and then opens that file.
If there's no way to do this, are there plugins with similar functionality?
:CtrlPMRU
command of CtrlP with fuzzy search but that might be somewhat different from you're looking for.