From 12669be90081d3a124996554c66abc6f33d8e836 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sat, 30 Nov 2019 18:14:39 +0530 Subject: [PATCH] Update auto-completion scripts --- misc/auto-completion/bash/nnn-completion.bash | 2 ++ misc/auto-completion/fish/nnn.fish | 1 + misc/auto-completion/zsh/_nnn | 6 ++++-- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/misc/auto-completion/bash/nnn-completion.bash b/misc/auto-completion/bash/nnn-completion.bash index 6b73d059..75586d22 100644 --- a/misc/auto-completion/bash/nnn-completion.bash +++ b/misc/auto-completion/bash/nnn-completion.bash @@ -16,6 +16,8 @@ _nnn () -b -c -d + -e + -E -f -H -i diff --git a/misc/auto-completion/fish/nnn.fish b/misc/auto-completion/fish/nnn.fish index 172a6b1c..ac73654b 100644 --- a/misc/auto-completion/fish/nnn.fish +++ b/misc/auto-completion/fish/nnn.fish @@ -16,6 +16,7 @@ complete -c nnn -s b -r -d 'bookmark key to open' -x -a '(echo $NNN_BMS | awk -F complete -c nnn -s c -d 'cli-only opener' complete -c nnn -s d -d 'start in detail mode' complete -c nnn -s e -r -d 'load session by name' -x -a '@\t"last session" (ls $sessions_dir)' +complete -c nnn -s E -d 'use EDITOR for undetached edits' complete -c nnn -s f -d 'run filter as cmd on prompt key' complete -c nnn -s H -d 'show hidden files' complete -c nnn -s i -d 'start in navigate-as-you-type mode' diff --git a/misc/auto-completion/zsh/_nnn b/misc/auto-completion/zsh/_nnn index b5ec1d11..5e9cb1c7 100644 --- a/misc/auto-completion/zsh/_nnn +++ b/misc/auto-completion/zsh/_nnn @@ -11,9 +11,11 @@ local -a args args=( '(-a)-a[use access time]' '(-b)-b[bookmark key to open]:key char' - '(-c)-d[cli-only opener]' + '(-c)-c[cli-only opener]' '(-d)-d[start in detail mode]' - '(-f)-d[run filter as cmd on prompt key]' + '(-e)-e[load session]:session name' + '(-E)-E[use EDITOR for undetached edits]' + '(-f)-f[run filter as cmd on prompt key]' '(-H)-H[show hidden files]' '(-i)-i[start in navigate-as-you-type mode]' '(-K)-K[detect key collision]'