]> Sergey Matveev's repositories - nnn.git/commitdiff
Update completion scripts
authorArun Prakash Jana <engineerarun@gmail.com>
Sun, 9 Dec 2018 03:06:00 +0000 (08:36 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sun, 9 Dec 2018 03:06:00 +0000 (08:36 +0530)
scripts/auto-completion/bash/nnn-completion.bash
scripts/auto-completion/fish/nnn.fish
scripts/auto-completion/zsh/_nnn

index b076de0418d5275a6757262151bd67b637ee41e7..f85b7fb0dcfba6604d13f21d39f664c027b537ca 100644 (file)
@@ -11,15 +11,19 @@ _nnn () {
     local cur=$2 prev=$3
     local -a opts opts_with_args
     opts=(
+        -b
         -C
         -e
         -h
         -i
         -l
+        -p
         -S
         -v
     )
     opts_with_arg=(
+        -b
+        -p
     )
 
     # Do not complete non option names
index 924b842eed2dfa1210dc68487932acdbb8bea372..82509569bf9ad7842aa35d3b9b1fd2762df488ab 100644 (file)
@@ -5,10 +5,12 @@
 #   Arun Prakash Jana <engineerarun@gmail.com>
 #
 
+complete -c nnn -s b -r -d 'bookmark key to open'
 complete -c nnn -s C    -d 'disable directory color'
 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'
 complete -c nnn -s l    -d 'start in light mode (fewer details)'
+complete -c nnn -s p -r -d 'copy selection to file'
 complete -c nnn -s S    -d 'start in disk usage analyzer mode'
 complete -c nnn -s v    -d 'show program version and exit'
index 8fcf4fa9b0a3d51d1e6e3d728f3efa79cebe8c7f..9516d8de2b467c1fa94391b0a114a5d9d4705fc6 100644 (file)
@@ -9,11 +9,13 @@
 setopt localoptions noshwordsplit noksharrays
 local -a args
 args=(
+    '(-b)-b[bookmark key to open]:key char'
     '(-C)-C[disable directory color]'
     '(-e)-e[use exiftool instead of mediainfo]'
     '(-h)-h[show this help and exit]'
     '(-i)-i[start in navigate-as-you-type mode]'
     '(-l)-l[start in light mode (fewer details)]'
+    '(-p)-p[copy selection to file]:file name'
     '(-S)-S[start in disk usage analyzer mode]'
     '(-v)-v[show program version and exit]'
     '*:filename:_files'