Update auto-completion scripts on search tags.

This commit is contained in:
Arun Prakash Jana 2016-05-18 23:26:35 +05:30
parent 7f0dbd972c
commit 6d7333d822
No known key found for this signature in database
GPG Key ID: C0A712ED95043DCB
3 changed files with 3 additions and 1 deletions

View File

@ -11,7 +11,7 @@ _buku () {
local cur=$2 prev=$3
local -a opts opts_with_args
opts=(-a --add -c --comment -d --delete -h --help -k --unlock -l --lock -o --open
-p --print -r --replace -s --sany -S --sall -t --title -u --update)
-p --print -r --replace -s --sany -S --sall --st --stag -t --title -u --update)
opts_with_arg=(-a --add -o --open -r --replace -s --sany -S --sall)
# Do not complete non option names

View File

@ -15,5 +15,6 @@ complete -c buku -s p -l print --description 'show bookmark details'
complete -c buku -s r -l replace -r --description 'replace a tag'
complete -c buku -s s -l sany -r --description 'search any keyword'
complete -c buku -s S -l sall -r --description 'search all keywords'
complete -c buku -l st -l stag --description 'search by tag or show tags'
complete -c buku -s t -l title --description 'set custom title'
complete -c buku -s u -l update --description 'update bookmark'

View File

@ -20,6 +20,7 @@ args=(
'(-r --replace)'{-r,--replace}'[replace a tag]:tag to replace'
'(-s --sany)'{-s,--sany}'[search any keyword]:keyword(s)'
'(-s --sall)'{-s,--sall}'[search all keywords]:keyword(s)'
'(-st --stag)'{--st,--stag}'[search by tag or show tags]'
'(-t --title)'{-t,--title}'[set custom title]'
'(-u --update)'{-u,--update}'[update bookmark]'
)