Browse Source

Update docs

master
Arun Prakash Jana 5 years ago
parent
commit
f231c35ef9
No known key found for this signature in database GPG Key ID: A75979F35C080412
6 changed files with 7 additions and 2 deletions
  1. +2
    -1
      README.md
  2. +1
    -0
      misc/quitcd/quitcd.bash
  3. +1
    -0
      misc/quitcd/quitcd.csh
  4. +1
    -0
      misc/quitcd/quitcd.fish
  5. +1
    -0
      misc/quitcd/quitcd.zsh
  6. +1
    -1
      nnn.1

+ 2
- 1
README.md View File

@@ -60,6 +60,7 @@ Add to that an awesome [Wiki](https://github.com/jarun/nnn/wiki)!
- 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 @@ There is no config file. Associated files are stored under `${XDG_CONFIG_HOME:-$
| --- | --- |
| `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 (<kbd>:key</kbd> to run) [max 15] |
| `NNN_PLUG='o:fzopen;m:nmount;x:_chmod +x $nnn'` | key-plugin (or cmd) pairs (<kbd>:key</kbd> 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 |


+ 1
- 0
misc/quitcd/quitcd.bash View File

@@ -8,6 +8,7 @@ n ()

# 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


+ 1
- 0
misc/quitcd/quitcd.csh View File

@@ -2,6 +2,7 @@

# 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


+ 1
- 0
misc/quitcd/quitcd.fish View File

@@ -11,6 +11,7 @@ function n --description 'support nnn quit and change directory'

# 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


+ 1
- 0
misc/quitcd/quitcd.zsh View File

@@ -8,6 +8,7 @@ n ()

# 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


+ 1
- 1
nnn.1 View File

@@ -192,7 +192,7 @@ when dealing with the !, e and p commands respectively. A single combination to
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


Loading…
Cancel
Save