2016-05-15 02:23:12 -05:00
|
|
|
#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'
|
2016-05-18 11:13:49 -05:00
|
|
|
'(-c --comment)'{-c,--comment}'[comment on bookmark]'
|
2016-09-05 10:09:20 -05:00
|
|
|
'(--deep)--deep[search matching substrings]'
|
2016-05-15 02:23:12 -05:00
|
|
|
'(-d --delete)'{-d,--delete}'[delete bookmark]'
|
2016-06-02 10:39:16 -05:00
|
|
|
'(-e --export)'{-e,--export}'[export bookmarks]:html output file'
|
2016-05-15 02:23:12 -05:00
|
|
|
'(-h --help)'{-h,--help}'[show help]'
|
2016-11-05 17:43:03 -05:00
|
|
|
'(--immutable)--immutable[disable title update from web]:value'
|
2016-06-02 10:39:16 -05:00
|
|
|
'(-i --import)'{-i,--import}'[import bookmarks]:html imput file'
|
2016-05-15 02:23:12 -05:00
|
|
|
'(-k --unlock)'{-k,--unlock}'[decrypt database]'
|
|
|
|
'(-l --lock)'{-l,--lock}'[encrypt database]'
|
2016-10-22 01:25:41 -05:00
|
|
|
'(--markdown)--markdown[markdown mode]'
|
2016-07-05 16:42:16 -05:00
|
|
|
'(--merge)--merge[merge another buku database]:buku db file'
|
|
|
|
'(--noprompt)--noprompt[noninteractive mode]'
|
2016-05-15 02:23:12 -05:00
|
|
|
'(-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)'
|
2016-11-07 11:35:02 -06:00
|
|
|
'(--stag)--stag[search by tag or show tags]'
|
2016-11-06 09:30:45 -06:00
|
|
|
'(--tacit)--tacit[reduce verbosity]'
|
2016-11-05 17:43:03 -05:00
|
|
|
'(--tag)--tag[set tags, use + to append, - to remove]'
|
2016-05-15 02:23:12 -05:00
|
|
|
'(-t --title)'{-t,--title}'[set custom title]'
|
|
|
|
'(-u --update)'{-u,--update}'[update bookmark]'
|
2016-10-23 13:11:31 -05:00
|
|
|
'(--upstream)--upstream[check latest upstream release]'
|
2016-07-05 16:42:16 -05:00
|
|
|
'(--url)--url[set url]'
|
2016-05-15 02:23:12 -05:00
|
|
|
)
|
|
|
|
_arguments -S -s $args
|