This Unix & Linux post describes what you want:
... I've come across a great, universal tool:
command-line fuzzy finder.
It primarily allows you to “fuzzy-find” files (check the rich gif
animation by the link above), but it also allows to feed arbitrary
text data to it and filter this data. So, the shortcuts idea is
simple: all we need is to maintain a file with paths (which are
shortcuts), and fuzzy-filter this file. Here's how it looks: we type
cdg command (from “cd global”, if you like), get a list of our
bookmarks, pick the needed one in just a few keystrokes, and press
Enter. Working directory is changed to the picked item:
It is extremely fast and convenient: usually I just type 3-4 letters
of the needed item, and all others are already filtered out.
It may not be what you're looking for, but the Vim editor with the CtrlP plugin can be used for this:
You'll need to install one of
vim-athena for this to work. Installation instructions for CtrlP are provided in its website:
Clone the plugin into a separate directory:
$ cd ~/.vim
$ git clone https://github.com/kien/ctrlp.vim.git bundle/ctrlp.vim
Add to your ~/.vimrc:
Run at Vim's command line:
- Restart Vim and check
:help ctrlp.txt for usage instructions and configuration details.
If you have never used Vim before, it can be a bit intimidating. Run
vimtutor to get an idea of it.