2016-05-15 02:23:12 -05:00
|
|
|
#compdef buku
|
|
|
|
#
|
2020-01-07 21:07:17 -06:00
|
|
|
# Completion definition for buku.
|
2016-05-15 02:23:12 -05:00
|
|
|
#
|
|
|
|
# Author:
|
|
|
|
# Arun Prakash Jana <engineerarun@gmail.com>
|
|
|
|
#
|
|
|
|
|
|
|
|
setopt localoptions noshwordsplit noksharrays
|
|
|
|
local -a args
|
|
|
|
args=(
|
|
|
|
'(-a --add)'{-a,--add}'[add bookmark]:URL tags'
|
2017-08-12 17:15:56 -05:00
|
|
|
'(--ai)--ai[auto-import bookmarks]'
|
2016-05-18 11:13:49 -05:00
|
|
|
'(-c --comment)'{-c,--comment}'[comment on bookmark]'
|
2019-01-10 21:13:20 -06:00
|
|
|
'(--cached)--cached[visit Wayback Machine cached version]:index/url'
|
2017-08-22 23:43:55 -05:00
|
|
|
'(--colors)--colors[set output colors in 5-letter string]:color string'
|
2016-05-15 02:23:12 -05:00
|
|
|
'(-d --delete)'{-d,--delete}'[delete bookmark]'
|
2017-01-03 18:43:47 -06:00
|
|
|
'(--deep)--deep[search matching substrings]'
|
2017-09-17 01:23:18 -05:00
|
|
|
'(-e --export)'{-e,--export}'[export bookmarks]:html/md/db output file'
|
2017-01-03 18:43:47 -06:00
|
|
|
'(--expand)--expand[expand a tny.im shortened URL]:index/shorturl'
|
2019-01-10 21:13:20 -06:00
|
|
|
'(-f --format)'{-f,--format}'[limit fields in print and JSON output]:value'
|
2016-05-15 02:23:12 -05:00
|
|
|
'(-h --help)'{-h,--help}'[show help]'
|
2017-09-16 22:03:06 -05:00
|
|
|
'(-i --import)'{-i,--import}'[import bookmarks]:html/md/db input file'
|
2017-01-03 18:43:47 -06:00
|
|
|
'(--immutable)--immutable[disable title update from web]:value'
|
2020-04-20 11:15:04 -05:00
|
|
|
'(-j --json)'{-j,--json}'[show JSON output for print and search]:file'
|
2016-05-15 02:23:12 -05:00
|
|
|
'(-k --unlock)'{-k,--unlock}'[decrypt database]'
|
|
|
|
'(-l --lock)'{-l,--lock}'[encrypt database]'
|
2018-09-23 09:57:28 -05:00
|
|
|
'(-n --count)'{-n,--count}'[results per page]:value'
|
2017-02-10 07:59:02 -06:00
|
|
|
'(--nc)--nc[disable color output]'
|
|
|
|
'(--np)--np[noninteractive mode]'
|
2017-01-03 18:43:47 -06:00
|
|
|
'(-o --open)'{-o,--open}'[open bookmarks in browser]'
|
2017-02-04 21:40:38 -06:00
|
|
|
'(--oa)--oa[browse all search results immediately]'
|
2016-05-15 02:23:12 -05:00
|
|
|
'(-p --print)'{-p,--print}'[show bookmark details]'
|
2017-03-16 13:45:12 -05:00
|
|
|
'(-r --sreg)'{-r,--sreg}'[match a regular exression]:regex'
|
2017-03-16 13:37:51 -05:00
|
|
|
'(--replace)--replace[replace a tag]:tag to replace'
|
2017-01-03 18:43:47 -06:00
|
|
|
'(-s --sany)'{-s,--sany}'[match any keyword]:keyword(s)'
|
|
|
|
'(-s --sall)'{-s,--sall}'[match all keywords]:keyword(s)'
|
|
|
|
'(--shorten)--shorten[shorten a URL using tny.im]:index/url'
|
2017-08-01 10:37:03 -05:00
|
|
|
'(--suggest)--suggest[show a list of similar tags]'
|
2017-03-16 13:45:12 -05:00
|
|
|
'(-t --stag)'{-t,--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]'
|
2017-01-03 18:43:47 -06:00
|
|
|
'(--threads)--threads[max connections for full refresh]:value'
|
2017-03-16 13:15:37 -05:00
|
|
|
'(--title)--title[set custom title]'
|
2016-05-15 02:23:12 -05:00
|
|
|
'(-u --update)'{-u,--update}'[update bookmark]'
|
2017-01-03 18:43:47 -06:00
|
|
|
'(--url)--url[set url]:url'
|
2017-02-10 09:04:24 -06:00
|
|
|
'(-V)-V[check latest upstream release]'
|
2016-12-18 08:25:35 -06:00
|
|
|
'(-v --version)'{-v,--version}'[show program version]'
|
2017-02-04 08:45:33 -06:00
|
|
|
'(-w --write)'{-w,--write}'[open editor]'
|
2018-03-25 22:33:46 -05:00
|
|
|
'(-x --exclude)'{-x,--exclude}'[exclude keywords]:keyword(s)'
|
2020-10-13 04:26:49 -05:00
|
|
|
'(-g --debug)'{-g,--debug}'[enable debugging mode]'
|
2016-05-15 02:23:12 -05:00
|
|
|
)
|
|
|
|
_arguments -S -s $args
|