Update auto-completion scripts on search tags.
This commit is contained in:
parent
7f0dbd972c
commit
6d7333d822
@ -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
|
||||
|
@ -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'
|
||||
|
@ -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]'
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user