mirror of
https://github.com/jarun/nnn.git
synced 2025-02-26 03:01:32 +00:00
Update auto-completion scripts
This commit is contained in:
parent
1294a9caf5
commit
e13481c5b0
3 changed files with 8 additions and 8 deletions
|
@ -14,15 +14,15 @@ _nnn () {
|
||||||
-b
|
-b
|
||||||
-d
|
-d
|
||||||
-e
|
-e
|
||||||
-h
|
-H
|
||||||
-i
|
-i
|
||||||
-l
|
|
||||||
-n
|
-n
|
||||||
-p
|
-p
|
||||||
-s
|
-s
|
||||||
-S
|
-S
|
||||||
-v
|
-v
|
||||||
-w
|
-w
|
||||||
|
-h
|
||||||
)
|
)
|
||||||
if [[ $prev == -b ]]; then
|
if [[ $prev == -b ]]; then
|
||||||
local bookmarks=$(echo $NNN_BMS | awk -F: -v RS=\; '{print $1}')
|
local bookmarks=$(echo $NNN_BMS | awk -F: -v RS=\; '{print $1}')
|
||||||
|
|
|
@ -6,14 +6,14 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
complete -c nnn -s b -r -d 'bookmark key to open'
|
complete -c nnn -s b -r -d 'bookmark key to open'
|
||||||
complete -c nnn -s d -d 'show hidden files'
|
complete -c nnn -s d -d 'start in detail mode'
|
||||||
complete -c nnn -s e -d 'use exiftool instead of mediainfo'
|
complete -c nnn -s e -d 'use exiftool instead of mediainfo'
|
||||||
complete -c nnn -s h -d 'show this help and exit'
|
complete -c nnn -s H -d 'show hidden files'
|
||||||
complete -c nnn -s i -d 'start in navigate-as-you-type mode'
|
complete -c nnn -s i -d 'start in navigate-as-you-type mode'
|
||||||
complete -c nnn -s l -d 'start in light mode (fewer details)'
|
|
||||||
complete -c nnn -s n -d 'use version compare to sort files'
|
complete -c nnn -s n -d 'use version compare to sort files'
|
||||||
complete -c nnn -s p -r -d 'copy selection to file'
|
complete -c nnn -s p -r -d 'copy selection to file'
|
||||||
complete -c nnn -s s -d 'use substring match for filters'
|
complete -c nnn -s s -d 'use substring match for filters'
|
||||||
complete -c nnn -s S -d 'start in disk usage analyzer mode'
|
complete -c nnn -s S -d 'start in disk usage analyzer mode'
|
||||||
complete -c nnn -s v -d 'show program version and exit'
|
complete -c nnn -s v -d 'show program version and exit'
|
||||||
complete -c nnn -s w -d 'wild load'
|
complete -c nnn -s w -d 'wild load'
|
||||||
|
complete -c nnn -s h -d 'show program help'
|
||||||
|
|
|
@ -10,17 +10,17 @@ setopt localoptions noshwordsplit noksharrays
|
||||||
local -a args
|
local -a args
|
||||||
args=(
|
args=(
|
||||||
'(-b)-b[bookmark key to open]:key char'
|
'(-b)-b[bookmark key to open]:key char'
|
||||||
'(-d)-d[show hidden files]'
|
'(-d)-d[start in detail mode]'
|
||||||
'(-e)-e[use exiftool instead of mediainfo]'
|
'(-e)-e[use exiftool instead of mediainfo]'
|
||||||
'(-h)-h[show this help and exit]'
|
'(-H)-H[show hidden files]'
|
||||||
'(-i)-i[start in navigate-as-you-type mode]'
|
'(-i)-i[start in navigate-as-you-type mode]'
|
||||||
'(-l)-l[start in light mode (fewer details)]'
|
|
||||||
'(-n)-n[use version compare to sort files]'
|
'(-n)-n[use version compare to sort files]'
|
||||||
'(-p)-p[copy selection to file]:file name'
|
'(-p)-p[copy selection to file]:file name'
|
||||||
'(-s)-s[use substring match for filters]'
|
'(-s)-s[use substring match for filters]'
|
||||||
'(-S)-S[start in disk usage analyzer mode]'
|
'(-S)-S[start in disk usage analyzer mode]'
|
||||||
'(-v)-v[show program version and exit]'
|
'(-v)-v[show program version and exit]'
|
||||||
'(-w)-w[wild load]'
|
'(-w)-w[wild load]'
|
||||||
|
'(-h)-h[show program help]'
|
||||||
'*:filename:_files'
|
'*:filename:_files'
|
||||||
)
|
)
|
||||||
_arguments -S -s $args
|
_arguments -S -s $args
|
||||||
|
|
Loading…
Add table
Reference in a new issue