Update auto-completion scripts

This commit is contained in:
Arun Prakash Jana 2019-11-30 18:14:39 +05:30
parent 178705a951
commit 12669be900
No known key found for this signature in database
GPG key ID: A75979F35C080412
3 changed files with 7 additions and 2 deletions

View file

@ -16,6 +16,8 @@ _nnn ()
-b
-c
-d
-e
-E
-f
-H
-i

View file

@ -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'

View file

@ -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]'