]> Sergey Matveev's repositories - nnn.git/commitdiff
Auto-completion for option `-d`
authorArun Prakash Jana <engineerarun@gmail.com>
Mon, 11 Mar 2019 14:54:44 +0000 (20:24 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Mon, 11 Mar 2019 14:54:44 +0000 (20:24 +0530)
scripts/auto-completion/bash/nnn-completion.bash
scripts/auto-completion/fish/nnn.fish
scripts/auto-completion/zsh/_nnn

index 8364271a09f62ee624fb2295cdc21d9a448b4eb2..25bbed08cbd0b359be5bf522549f9a053bed6c29 100644 (file)
@@ -12,6 +12,7 @@ _nnn () {
     local -a opts opts_with_args
     opts=(
         -b
+        -d
         -e
         -h
         -i
index cfdf0252f6d9576051c4eb6b092e1cd34904c119..59182b566b17df1f3a5d57c60866e6d78a48e91c 100644 (file)
@@ -6,6 +6,7 @@
 #
 
 complete -c nnn -s b -r -d 'bookmark key to open'
+complete -c nnn -s d    -d 'show hidden files'
 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 i    -d 'start in navigate-as-you-type mode'
index be2bed61511fe6b5f40a02f9193b771ba54ee34a..bda285bef622285059cc8206518c5f40615925a9 100644 (file)
@@ -10,6 +10,7 @@ setopt localoptions noshwordsplit noksharrays
 local -a args
 args=(
     '(-b)-b[bookmark key to open]:key char'
+    '(-d)-d[show hidden files]'
     '(-e)-e[use exiftool instead of mediainfo]'
     '(-h)-h[show this help and exit]'
     '(-i)-i[start in navigate-as-you-type mode]'