An interactive cheatsheet tool for the command-line
An interactive cheatsheet tool for the command-line. navi allows you to browse through cheatsheets (that you may write yourself or download from maintainers) and execute commands. Suggested values for arguments are dynamically displayed in a list.
It uses fzf or skim under the hood and it can be either used as a command or as a shell widget (à la Ctrl-R).
The recommended way to install navi is by running:
brew install navi[!NOTE] For more details on how to install Navi, see docs/installation
navi can be installed with the following package managers:
There are multiple ways to use navi:
navi in the terminalnavi) and you can edit the command as you wish before executing itIn particular, check these instructions if you want to replicate what's shown in the demo above.
Running navi for the first time will help you download and manage cheatsheets. By default, they are stored at ~/.local/share/navi/cheats/.
You can also:
Cheatsheets are described in .cheat files that look like this:
% git, code
# Change branch
git checkout <branch>
$ branch: git branch | awk '{print $NF}'The full syntax and examples can be found here.
You can:
Please run the following command to read more about all possible options:
navi --helpIn addition, please check the /docs folder or the website.
navi --print panics when writing to a closed pipe (EPIPE)
Navi widget for fish
fails the tldr integration with tealdeer (navi 2.24.0)
Ability to generate oneliner cheats dynamically
Cheatsheet variable interpolation substitutes selected values into commands with no shell escaping, allowing injection via suggestion output
Clarify VERSION_DISCLAIMER in `src/clients/tldr.rs`
How do I select a snippet but not execute it?
[Help Wanted] The Scope of Variable
move featured_repos.txt into navi repo from cheats repo
Navi v2.25.0