From b1027150ed09ddeb9acab56a29e216c7196be4e1 Mon Sep 17 00:00:00 2001 From: lvgx Date: Sat, 23 May 2020 14:03:37 +0200 Subject: Add -a option to generate a temporary NNN_FIFO (#588) * Add -a option to generate a temporary NNN_FIFO * Add documentation for -a option * plugins/README.md: promote the use of -a This obsoletes the global FIFO unlink trick, so I remove mentions of it. @jarun update: Polish -a --- misc/auto-completion/bash/nnn-completion.bash | 1 + misc/auto-completion/fish/nnn.fish | 1 + misc/auto-completion/zsh/_nnn | 1 + 3 files changed, 3 insertions(+) (limited to 'misc') diff --git a/misc/auto-completion/bash/nnn-completion.bash b/misc/auto-completion/bash/nnn-completion.bash index e8f2548..820e1c7 100644 --- a/misc/auto-completion/bash/nnn-completion.bash +++ b/misc/auto-completion/bash/nnn-completion.bash @@ -12,6 +12,7 @@ _nnn () local cur=$2 prev=$3 local -a opts opts=( + -a -A -b -c diff --git a/misc/auto-completion/fish/nnn.fish b/misc/auto-completion/fish/nnn.fish index 1b6455b..ac6e462 100644 --- a/misc/auto-completion/fish/nnn.fish +++ b/misc/auto-completion/fish/nnn.fish @@ -11,6 +11,7 @@ else set sessions_dir $HOME/.config/nnn/sessions end +complete -c nnn -s a -d 'auto-setup NNN_FIFO' complete -c nnn -s A -d 'disable dir auto-select' complete -c nnn -s b -r -d 'bookmark key to open' -x -a '(echo $NNN_BMS | awk -F: -v RS=\; \'{print $1"\t"$2}\')' complete -c nnn -s c -d 'cli-only opener' diff --git a/misc/auto-completion/zsh/_nnn b/misc/auto-completion/zsh/_nnn index 441589a..d130b16 100644 --- a/misc/auto-completion/zsh/_nnn +++ b/misc/auto-completion/zsh/_nnn @@ -9,6 +9,7 @@ setopt localoptions noshwordsplit noksharrays local -a args args=( + '(-a)-a[auto-setup NNN_FIFO]' '(-A)-A[disable dir auto-select]' '(-b)-b[bookmark key to open]:key char' '(-c)-c[cli-only opener]' -- cgit v1.2.3-70-g09d2