]> Sergey Matveev's repositories - nnn.git/commitdiff
Update auto-completion scripts
authorArun Prakash Jana <engineerarun@gmail.com>
Fri, 16 Aug 2019 17:45:29 +0000 (23:15 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Fri, 16 Aug 2019 17:45:29 +0000 (23:15 +0530)
misc/auto-completion/bash/nnn-completion.bash
misc/auto-completion/fish/nnn.fish
misc/auto-completion/zsh/_nnn

index c30887a2a31cf7db53f5b8d325c390d89c65542f..d15ee3b7b81bb9cca566c714ae39de25e2a143f5 100644 (file)
@@ -14,15 +14,15 @@ _nnn () {
         -b
         -d
         -e
-        -h
+        -H
         -i
-        -l
         -n
         -p
         -s
         -S
         -v
         -w
+        -h
     )
     if [[ $prev == -b ]]; then
         local bookmarks=$(echo $NNN_BMS | awk -F: -v RS=\; '{print $1}')
index 02f80246dedf0f1922e1b8aadde8e63023acd733..a3d836a1927e8aa10056438b0e4e15df7e21da61 100644 (file)
@@ -6,14 +6,14 @@
 #
 
 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 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 l    -d 'start in light mode (fewer details)'
 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 s    -d 'use substring match for filters'
 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 w    -d 'wild load'
+complete -c nnn -s h    -d 'show program help'
index 20a313fc209c8e221ea17d0d1ec8cc9e0680d358..900b20e440c34b9a418162642ec0eb119aa9ea42 100644 (file)
@@ -10,17 +10,17 @@ setopt localoptions noshwordsplit noksharrays
 local -a args
 args=(
     '(-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]'
-    '(-h)-h[show this help and exit]'
+    '(-H)-H[show hidden files]'
     '(-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]'
     '(-p)-p[copy selection to file]:file name'
     '(-s)-s[use substring match for filters]'
     '(-S)-S[start in disk usage analyzer mode]'
     '(-v)-v[show program version and exit]'
     '(-w)-w[wild load]'
+    '(-h)-h[show program help]'
     '*:filename:_files'
 )
 _arguments -S -s $args