Auto-completion script update for --noprompt.

This commit is contained in:
Arun Prakash Jana 2016-05-28 21:17:25 +05:30
parent acd8f30056
commit 54bdb9fe0b
No known key found for this signature in database
GPG Key ID: C0A712ED95043DCB
3 changed files with 5 additions and 2 deletions

View File

@ -10,8 +10,9 @@ _buku () {
local IFS=$' \n'
local cur=$2 prev=$3
local -a opts opts_with_args
opts=(-a --add -c --comment -d --delete -h --help -i --import -k --unlock -l --lock -o --open
-p --print -r --replace -s --sany -S --sall --st --stag --tag -t --title -u --update --url)
opts=(-a --add -c --comment -d --delete -h --help -i --import -k --unlock
-l --lock --noprompt -o --open -p --print -r --replace -s --sany
-S --sall --st --stag --tag -t --title -u --update --url)
opts_with_arg=(-a --add -i --import -o --open -r --replace -s --sany -S --sall)
# Do not complete non option names

View File

@ -11,6 +11,7 @@ complete -c buku -s h -l help --description 'show help'
complete -c buku -s i -l import -r --description 'import bookmarks'
complete -c buku -s k -l unlock --description 'decrypt database'
complete -c buku -s l -l lock --description 'encrypt database'
complete -c buku -l noprompt --description 'noninteractive mode'
complete -c buku -s o -l open -r --description 'open bookmark in browser'
complete -c buku -s p -l print --description 'show bookmark details'
complete -c buku -s r -l replace -r --description 'replace a tag'

View File

@ -16,6 +16,7 @@ args=(
'(-h --help)'{-i,--import}'[import bookmarks]:html bookmark file'
'(-k --unlock)'{-k,--unlock}'[decrypt database]'
'(-l --lock)'{-l,--lock}'[encrypt database]'
'(--noprompt)'{--noprompt}'[noninteractive mode]'
'(-o --open)'{-o,--open}'[open bookmark in browser]:bookmark index'
'(-p --print)'{-p,--print}'[show bookmark details]'
'(-r --replace)'{-r,--replace}'[replace a tag]:tag to replace'