wincent / command-t

⌨️ Fast file navigation for Neovim and Vim
BSD 2-Clause "Simplified" License
2.74k stars 317 forks source link

Add a way to quickly reuse a recent search term #328

Closed dylan-chong closed 6 years ago

dylan-chong commented 6 years ago

I might want to open files abc.html, abc.scss, abc.js. I will start by doing :CommandT<CR>abc and then selecting one of the files.

I would like to be up to reopen commandt, reuse my previous search of abc and then select another file. Currently i would type in abc again, which gets tedious if the filename is quite long (and there are many files with similar names)

dylan-chong commented 6 years ago

@wincent Would it be possible to add some keyboard shortcuts to navigate up and down the list of previously used search terms, similar to how vim command mode does it. Obviously we would have to use different key would shortcuts. e.g. C-9 to go up the list and C-0 to go down the list

wincent commented 6 years ago

Keyboard shortcuts for this make a lot of sense. I think there may be an existing issue for this; let me see if I can find it.

wincent commented 6 years ago

Found it (#153); let's merge this into that.