22 lines
1.5 KiB
Org Mode
22 lines
1.5 KiB
Org Mode
:PROPERTIES:
|
|
:ID: 15c8b750-ea77-4845-8517-c0047e2a4455
|
|
:END:
|
|
#+title: nnn
|
|
|
|
nnn (also stylized as n³) is a portable terminal file manager written in C. It is easily extensible via its flat text plugin system where you can add your own language-agnostic scripts alongside already available plugins, including a (neo)vim plugin. nnn features native archiving/decompression to and from commonly installed formats such as xz, disk usage analysis and a fuzzy app launcher, a batch file renamer and a file picker through its plugin architecture. nnn supports instant search-as-you-type with regex (or simple string) filters and a navigate-as-you-type mode for continuous navigation in filter mode with directory auto-select. Also supported are contexts, bookmarks, multiple sorting options, SSHFS, batch operations on selections (a group of selected files) and a lot more.
|
|
|
|
Despite its capabilities, nnn is designed to be easy to use and is configured by way of environment variables without the use of a configuration file.
|
|
|
|
There is a function, that allows nnn to close and move the command line folder to the location last visited before closing nnn. For that you have to invoke nnn only with the letter ~n~. The function is described in the [[id:af92f7a3-705c-491e-955e-2f04206da220][fish]] config file.
|
|
#+begin_src bash
|
|
set -u NNN_TMPFILE "~/.config/nnn/.lastd"
|
|
export NNN_TMPFILE
|
|
|
|
function n
|
|
nnn $argv
|
|
if test -e $NNN_TMPFILE
|
|
source $NNN_TMPFILE
|
|
rm $NNN_TMPFILE
|
|
end
|
|
#+end_src
|