nnn Fast terminal file manager
Light · Postcard
102 × 152 mm · PDF
Dark · Postcard
102 × 152 mm · PDF
Ink saver · Postcard
102 × 152 mm · PDF
Light · A4 landscape
297 × 210 mm · PDF
Dark · A4 landscape
297 × 210 mm · PDF
Ink saver · A4 landscape
297 × 210 mm · PDF
Light · A3 landscape
420 × 297 mm · PDF
Dark · A3 landscape
420 × 297 mm · PDF
Ink saver · A3 landscape
420 × 297 mm · PDF
Start here
nnnConcepts
- Navigate j k h l
- Select Space, a, mm
- Go to target dir h l ~ - bookmarks
- Apply p copy, v move, x delete
Navigate
Filter and view
Select
Files
Contexts and bookmarks
Run and quit
Options
nnn -Hnnn -dnnn -ennn -p -nnn -T <key>
nnn -Snnn -V| Variable | Purpose |
|---|---|
NNN_OPTS |
Default options, e.g. "Hde" |
NNN_BMS |
Bookmarks: d:~/Docs;D:~/Downloads |
NNN_PLUG |
Plugin keys: p:preview-tui |
NNN_TRASH |
Trash instead of rm |
NNN_TMPFILE |
File used for cd on quit |
NNN_FIFO |
Pipe with the hovered path |
Recipes
# add to ~/.bashrc, then use 'n' instead of nnnn() { export NNN_TMPFILE="${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd" nnn "$@" [ -f "$NNN_TMPFILE" ] && . "$NNN_TMPFILE" && rm -f "$NNN_TMPFILE"}
export NNN_OPTS="He"export NNN_BMS="d:$HOME/Documents;D:$HOME/Downloads"export NNN_PLUG="p:preview-tui"export NNN_TRASH=1
nnn -p - | xargs -d '\n' ls -l# select with Space, then Enter on a file or Q



