Auto-completion script update for immutable flag.
This commit is contained in:
parent
870bdd6957
commit
14ae5a506c
@ -11,10 +11,10 @@ _buku () {
|
||||
local cur=$2 prev=$3
|
||||
local -a opts opts_with_args
|
||||
opts=(-a --add -c --comment --deep -d --delete -e --export -h --help
|
||||
-i --import -k --unlock -l --lock --markdown -m --merge --noprompt
|
||||
-o --open -p --print -r --replace -s --sany -S --sall --st --stag
|
||||
--tag -t --title -u --update --upstream --url)
|
||||
opts_with_arg=(-a --add -e --export -i --import -m --merge
|
||||
--immutable -i --import -k --unlock -l --lock --markdown -m --merge
|
||||
--noprompt -o --open -p --print -r --replace -s --sany -S --sall
|
||||
--st --stag --tag -t --title -u --update --upstream --url)
|
||||
opts_with_arg=(-a --add -e --export --immutable -i --import -m --merge
|
||||
-o --open -r --replace -s --sany -S --sall --url)
|
||||
|
||||
# Do not complete non option names
|
||||
|
@ -10,6 +10,7 @@ complete -c buku -l deep --description 'search matching substrings'
|
||||
complete -c buku -s d -l delete --description 'delete bookmark'
|
||||
complete -c buku -s e -l export -r --description 'export bookmarks'
|
||||
complete -c buku -s h -l help --description 'show help'
|
||||
complete -c buku -l immutable -r --description 'disable title update from web'
|
||||
complete -c buku -s i -l import -r --description 'import bookmarks'
|
||||
complete -c buku -l markdown --description 'markdown mode'
|
||||
complete -c buku -s k -l unlock --description 'decrypt database'
|
||||
@ -22,7 +23,7 @@ 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 -l tag --description 'set tags, use + to append'
|
||||
complete -c buku -l tag --description 'set tags, use + to append, - to remove'
|
||||
complete -c buku -s t -l title --description 'set custom title'
|
||||
complete -c buku -s u -l update --description 'update bookmark'
|
||||
complete -c buku -l upstream --description 'check latest upstream release'
|
||||
|
@ -15,6 +15,7 @@ args=(
|
||||
'(-d --delete)'{-d,--delete}'[delete bookmark]'
|
||||
'(-e --export)'{-e,--export}'[export bookmarks]:html output file'
|
||||
'(-h --help)'{-h,--help}'[show help]'
|
||||
'(--immutable)--immutable[disable title update from web]:value'
|
||||
'(-i --import)'{-i,--import}'[import bookmarks]:html imput file'
|
||||
'(-k --unlock)'{-k,--unlock}'[decrypt database]'
|
||||
'(-l --lock)'{-l,--lock}'[encrypt database]'
|
||||
@ -27,7 +28,7 @@ args=(
|
||||
'(-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]'
|
||||
'(--tag)--tag[set tags, use + to append]'
|
||||
'(--tag)--tag[set tags, use + to append, - to remove]'
|
||||
'(-t --title)'{-t,--title}'[set custom title]'
|
||||
'(-u --update)'{-u,--update}'[update bookmark]'
|
||||
'(--upstream)--upstream[check latest upstream release]'
|
||||
|
Loading…
x
Reference in New Issue
Block a user