Update auto-completion scripts

This commit is contained in:
Arun Prakash Jana 2020-09-01 23:06:26 +05:30
parent 02bb398550
commit 0b0605813d
No known key found for this signature in database
GPG key ID: A75979F35C080412
3 changed files with 6 additions and 0 deletions

View file

@ -18,12 +18,14 @@ _nnn ()
-c -c
-C -C
-d -d
-D
-e -e
-E -E
-f -f
-F -F
-g -g
-H -H
-J
-K -K
-l -l
-n -n

View file

@ -17,12 +17,14 @@ 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 c -d 'cli-only opener'
complete -c nnn -s C -d 'color by context' complete -c nnn -s C -d 'color by context'
complete -c nnn -s d -d 'start in detail mode' complete -c nnn -s d -d 'start in detail mode'
complete -c nnn -s D -d 'dirs in context color'
complete -c nnn -s e -d 'open text files in $VISUAL/$EDITOR/vi' complete -c nnn -s e -d 'open text files in $VISUAL/$EDITOR/vi'
complete -c nnn -s E -d 'use EDITOR for undetached edits' complete -c nnn -s E -d 'use EDITOR for undetached edits'
complete -c nnn -s f -d 'use readline history file' complete -c nnn -s f -d 'use readline history file'
complete -c nnn -s F -d 'show fortune' complete -c nnn -s F -d 'show fortune'
complete -c nnn -s g -d 'regex filters' complete -c nnn -s g -d 'regex filters'
complete -c nnn -s H -d 'show hidden files' complete -c nnn -s H -d 'show hidden files'
complete -c nnn -s J -d 'no auto-proceed on select'
complete -c nnn -s K -d 'detect key collision' complete -c nnn -s K -d 'detect key collision'
complete -c nnn -s l -r -d 'lines to move per scroll' complete -c nnn -s l -r -d 'lines to move per scroll'
complete -c nnn -s n -d 'start in type-to-nav mode' complete -c nnn -s n -d 'start in type-to-nav mode'

View file

@ -15,12 +15,14 @@ args=(
'(-c)-c[cli-only opener]' '(-c)-c[cli-only opener]'
'(-C)-C[color by context]' '(-C)-C[color by context]'
'(-d)-d[start in detail mode]' '(-d)-d[start in detail mode]'
'(-D)-D[dirs in context color]'
'(-e)-e[open text files in $VISUAL/$EDITOR/vi]' '(-e)-e[open text files in $VISUAL/$EDITOR/vi]'
'(-E)-E[use EDITOR for undetached edits]' '(-E)-E[use EDITOR for undetached edits]'
'(-f)-f[use readline history file]' '(-f)-f[use readline history file]'
'(-F)-F[show fortune]' '(-F)-F[show fortune]'
'(-g)-g[regex filters]' '(-g)-g[regex filters]'
'(-H)-H[show hidden files]' '(-H)-H[show hidden files]'
'(-J)-J[no auto-proceed on select]'
'(-K)-K[detect key collision]' '(-K)-K[detect key collision]'
'(-l)-l[lines to move per scroll]:val' '(-l)-l[lines to move per scroll]:val'
'(-n)-n[start in type-to-nav mode]' '(-n)-n[start in type-to-nav mode]'