54 lines
2.4 KiB
Plaintext
Raw Normal View History

2016-05-15 12:53:12 +05:30
#compdef buku
#
# Completion definition for buku.
2016-05-15 12:53:12 +05:30
#
# 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-13 03:45:56 +05:30
'(--ai)--ai[auto-import bookmarks]'
'(-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-23 10:13:55 +05:30
'(--colors)--colors[set output colors in 5-letter string]:color string'
2016-05-15 12:53:12 +05:30
'(-d --delete)'{-d,--delete}'[delete bookmark]'
'(--deep)--deep[search matching substrings]'
2017-09-17 11:53:18 +05:30
'(-e --export)'{-e,--export}'[export bookmarks]:html/md/db output file'
'(--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 12:53:12 +05:30
'(-h --help)'{-h,--help}'[show help]'
2017-09-17 08:33:06 +05:30
'(-i --import)'{-i,--import}'[import bookmarks]:html/md/db input file'
'(--immutable)--immutable[disable title update from web]:value'
'(-j --json)'{-j,--json}'[show JSON output for print and search]:file'
2016-05-15 12:53:12 +05:30
'(-k --unlock)'{-k,--unlock}'[decrypt database]'
'(-l --lock)'{-l,--lock}'[encrypt database]'
2018-09-23 20:27:28 +05:30
'(-n --count)'{-n,--count}'[results per page]:value'
2017-02-10 19:29:02 +05:30
'(--nc)--nc[disable color output]'
'(--np)--np[noninteractive mode]'
'(-o --open)'{-o,--open}'[open bookmarks in browser]'
'(--oa)--oa[browse all search results immediately]'
2016-05-15 12:53:12 +05:30
'(-p --print)'{-p,--print}'[show bookmark details]'
'(-r --sreg)'{-r,--sreg}'[match a regular exression]:regex'
2017-03-17 00:07:51 +05:30
'(--replace)--replace[replace a tag]:tag to replace'
'(-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'
'(--suggest)--suggest[show a list of similar tags]'
'(-t --stag)'{-t,--stag}'[search by tag or show tags]'
2016-11-06 21:00:45 +05:30
'(--tacit)--tacit[reduce verbosity]'
'(--tag)--tag[set tags, use + to append, - to remove]'
'(--threads)--threads[max connections for full refresh]:value'
2017-03-16 23:45:37 +05:30
'(--title)--title[set custom title]'
2016-05-15 12:53:12 +05:30
'(-u --update)'{-u,--update}'[update bookmark]'
'(--url)--url[set url]:url'
2017-02-10 20:34:24 +05:30
'(-V)-V[check latest upstream release]'
2016-12-18 19:55:35 +05:30
'(-v --version)'{-v,--version}'[show program version]'
2017-02-04 20:15:33 +05:30
'(-w --write)'{-w,--write}'[open editor]'
2018-03-26 09:03:46 +05:30
'(-x --exclude)'{-x,--exclude}'[exclude keywords]:keyword(s)'
'(-z --debug)'{-z,--debug}'[enable debugging mode]'
2016-05-15 12:53:12 +05:30
)
_arguments -S -s $args