Shell completion¶
nnote supports tab completion for note titles and subdirectory names in
bash, zsh, and fish.
Installing¶
Run once to write a completion script to the appropriate directory for your shell:
nnote --install-completion
This does not modify any shell config file. The script is placed in an appropriate completion directory for your shell:
bash —
~/.local/share/bash-completion/completions/nnotezsh — the first directory under
$HOMEthat is already in your$fpathfish —
~/.config/fish/completions/nnote.fish
To inspect the script before installing, use:
nnote --show-completion
Restart your shell for the change to take effect.
What gets completed¶
Note titles — for
edit,view,drop, andmove. Both bare filenames (note) and path-style input (dir1/note) are supported; typingdir1/and pressing Tab lists notes inside that subdirectory.Subdirectory names — for the
-d/--directoryoption on all commands, and--dest-dironmove.