37 lines
1.4 KiB
Plaintext
Raw Normal View History

2016-05-15 12:53:12 +05:30
#compdef buku
#
# Completion definition for buku.
#
# Author:
# Arun Prakash Jana <engineerarun@gmail.com>
#
setopt localoptions noshwordsplit noksharrays
local -a args
args=(
'(-a --add)'{-a,--add}'[add bookmark]:URL tags'
'(-c --comment)'{-c,--comment}'[comment on bookmark]'
'(--deep)--deep[search matching substrings]'
2016-05-15 12:53:12 +05:30
'(-d --delete)'{-d,--delete}'[delete bookmark]'
'(-e --export)'{-e,--export}'[export bookmarks]:html output file'
2016-05-15 12:53:12 +05:30
'(-h --help)'{-h,--help}'[show help]'
'(-i --import)'{-i,--import}'[import bookmarks]:html imput file'
2016-05-15 12:53:12 +05:30
'(-k --unlock)'{-k,--unlock}'[decrypt database]'
'(-l --lock)'{-l,--lock}'[encrypt database]'
2016-10-22 11:55:41 +05:30
'(--markdown)--markdown[markdown mode]'
2016-07-06 03:12:16 +05:30
'(--merge)--merge[merge another buku database]:buku db file'
'(--noprompt)--noprompt[noninteractive mode]'
2016-05-15 12:53:12 +05:30
'(-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'
'(-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]'
2016-07-06 03:12:16 +05:30
'(--tag)--tag[set tags, use + to append]'
2016-05-15 12:53:12 +05:30
'(-t --title)'{-t,--title}'[set custom title]'
'(-u --update)'{-u,--update}'[update bookmark]'
'(--upstream)--upstream[check latest upstream release]'
2016-07-06 03:12:16 +05:30
'(--url)--url[set url]'
2016-05-15 12:53:12 +05:30
)
_arguments -S -s $args