navi/docs/cheatsheet
alexis-opolka 3f4726a091 Moves entries from the cheatsheet/repositories article to the usage/commands/repo article
Signed-off-by: alexis-opolka <53085471+alexis-opolka@users.noreply.github.com>
2025-03-29 11:36:51 +01:00
..
getting-started Fixes the getting started title 2025-03-29 10:52:08 +01:00
repositories Moves entries from the cheatsheet/repositories article to the usage/commands/repo article 2025-03-29 11:36:51 +01:00
syntax Fixes some typos and rendering issues 2025-03-29 10:49:44 +01:00
README.md Refactors the cheatsheet syntax article 2025-03-29 10:31:34 +01:00

Navi cheatsheets

Working with cheatsheet repositories

Navi works best with what we call cheatsheet repositories, for more details see cheatsheet/repositories.

Manually adding cheatsheets to navi

If you don't want to work with cheatsheet repositories, you can manually add your cheatsheets to navi by putting them into the cheats_path of your platform.

You can find out your path using the info subcommands but a quick working command to go there would be:

  • Before 2.25.0

    cd $(navi info cheats-path)
    
  • After 2.25.0

    cd $(navi info default-cheats-path)
    

Choosing between queries and selection with variables

Navi lets you use different methods to fill a variable value, when prompted.

Keyboard key Preference
tab The query is preferred
enter The selection is preferred

It means if you enter the tab key, navi will let you enter the value.

Using cheatsheets from other tools

Warning

Navi DOESN'T SUPPORT as of now importing cheatsheets from other tools but is able to work with TLDR and Cheat.sh.

Demo

You can use cheatsheets from tldr by running:

navi --tldr <query>

You can use cheatsheets from cheat.sh by running:

navi --cheatsh <query>