README.md | 3 ++- misc/quitcd/quitcd.bash | 1 + misc/quitcd/quitcd.csh | 1 + misc/quitcd/quitcd.fish | 1 + misc/quitcd/quitcd.zsh | 1 + nnn.1 | 2 +- diff --git a/README.md b/README.md index 9e776c2356e5f5ebfe85e790344556fa043780c0..69d095106ebd8cff129d68a60bd8132a0c4e2187 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,7 @@ - Create (with parents), rename, duplicate (anywhere) files and dirs - Spawn a shell, run apps, run commands, execute file - Hovered file set as `$nnn` at prompt and spawned shell - Lock terminal (needs a locker) +- Privacy-aware (no user information stored) - Minimal deps, minimal config - Widely available - Unicode support @@ -149,7 +150,7 @@ | Example `export` | Description | | --- | --- | | `NNN_OPENER=mimeopen` | custom file opener | | `NNN_BMS='d:~/Documents;D:~/Docs archive/'` | key-bookmark pairs [max 10] | -| `NNN_PLUG='m:nmount;t:imgthumb;x:_chmod +x $nnn'` | key-plugin (or cmd) pairs (:key to run) [max 15] | +| `NNN_PLUG='o:fzopen;m:nmount;x:_chmod +x $nnn'` | key-plugin (or cmd) pairs (:key to run) [max 15] | | `NNN_USE_EDITOR=1` | open text files in `$VISUAL` (else `$EDITOR`, fallback vi) | | `NNN_CONTEXT_COLORS='1234'` | specify per context color [default: '4444' (all blue)] | | `NNN_SSHFS_OPTS='sshfs -o reconnect,idmap=user'` | specify SSHFS options | diff --git a/misc/quitcd/quitcd.bash b/misc/quitcd/quitcd.bash index 5ea82c4519cff73c1ed571682b02e5c62b055ef8..43908dbdec8d194ce7334f634c4dbc502b9e7c46 100644 --- a/misc/quitcd/quitcd.bash +++ b/misc/quitcd/quitcd.bash @@ -8,6 +8,7 @@ fi # The default behaviour is to cd on quit (nnn checks if NNN_TMPFILE is set) # To cd on quit only on ^G, export NNN_TMPFILE after the call to nnn + # NOTE: NNN_TMPFILE is fixed, should not be modified export NNN_TMPFILE="${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd" # Unmask ^Q (, ^V etc.) (if required, see `stty -a`) to Quit nnn diff --git a/misc/quitcd/quitcd.csh b/misc/quitcd/quitcd.csh index 9806cefb6b41e872ccacf32c86034460f82d7588..5341b19a5f85ac2c8b3bcfd020e6241557d6499f 100644 --- a/misc/quitcd/quitcd.csh +++ b/misc/quitcd/quitcd.csh @@ -2,6 +2,7 @@ # NOTE: set NNN_TMPFILE correctly if you use 'XDG_CONFIG_HOME' # The default behaviour is to cd on quit (nnn checks if NNN_TMPFILE is set) # To cd on quit only on ^G, export NNN_TMPFILE after the call to nnn +# NOTE: NNN_TMPFILE is fixed, should not be modified set NNN_TMPFILE=~/.config/nnn/.lastd # Unmask ^Q (, ^V etc.) (if required, see `stty -a`) to Quit nnn diff --git a/misc/quitcd/quitcd.fish b/misc/quitcd/quitcd.fish index 3053656ab3ce71d7ef1eff5da833df84749f2fb1..5b9cd62b8e492f8ce74f35012ee0586ca3b2809b 100644 --- a/misc/quitcd/quitcd.fish +++ b/misc/quitcd/quitcd.fish @@ -11,6 +11,7 @@ end # The default behaviour is to cd on quit (nnn checks if NNN_TMPFILE is set) # To cd on quit only on ^G, export NNN_TMPFILE after the call to nnn + # NOTE: NNN_TMPFILE is fixed, should not be modified if test -n "$XDG_CONFIG_HOME" set -x NNN_TMPFILE "$XDG_CONFIG_HOME/nnn/.lastd" else diff --git a/misc/quitcd/quitcd.zsh b/misc/quitcd/quitcd.zsh index 5ea82c4519cff73c1ed571682b02e5c62b055ef8..43908dbdec8d194ce7334f634c4dbc502b9e7c46 100644 --- a/misc/quitcd/quitcd.zsh +++ b/misc/quitcd/quitcd.zsh @@ -8,6 +8,7 @@ fi # The default behaviour is to cd on quit (nnn checks if NNN_TMPFILE is set) # To cd on quit only on ^G, export NNN_TMPFILE after the call to nnn + # NOTE: NNN_TMPFILE is fixed, should not be modified export NNN_TMPFILE="${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd" # Unmask ^Q (, ^V etc.) (if required, see `stty -a`) to Quit nnn diff --git a/nnn.1 b/nnn.1 index 7e7f3eb2939c1c9ead2c7b60c73533e5273f56c8..04904844fd8199ceb4a93973c00935973171a6ac 100644 --- a/nnn.1 +++ b/nnn.1 @@ -192,7 +192,7 @@ .Pp To assign keys to arbitrary non-background non-shell-interpreted cli commands and invoke like plugins, add \fI_\fR (underscore) before the command. .Bd -literal - export NNN_PLUG='x:_chmod +x $nnn;g:_git log;s:_smplayer $nnn;o:fzopen' + export NNN_PLUG='x:_chmod +x $nnn;g:_git log;s:_smplayer $nnn;o:fzopen;m:nmount' NOTES: 1. Use single quotes for $NNN_PLUG so $nnn is not interpreted