Choose a file to edit or a directory to visit, quickly.
Automatically sorted by recent use. Can have multiple lists.
Add items easily from the command line. Interactively remove from items in a list.
Can integrate with the excellent fzf
for fuzzy search and better keyboard navigation.
100 lines of code or so. Not big.
You need three functions autoloaded into your Fish. This is for use in Fish shell, not as a standalone script.
pick
(can be calling out tofzf
) for selecting an item with[
or]
andEnter
.fish_z
is the actual quick-jump function, defaults to the "goto" list.q
orc
or similar shortcut function for your "places" or "config" list.
To add the current directory to a list use fish_z .
or q .
To go to a directory on the list use fish_z
or q
To add a file to the list, do fish_z ~/.vimrc
or full path to file.
To choose an item to remove use fish_z -e
or q --remove
License MIT, free to do whatever. Yours to fuck up.
![Screen Shot 2021-12-04 at 21 09 38](https://user-images.githubusercontent.com/132863/144721763-13f4280c-9037-4f93-96ab-824d4a6dff3b.png)
asciinema.org/a/453650