buku/auto-completion/zsh/_buku

54 lines
2.4 KiB
Plaintext
Raw Normal View History

2016-05-15 02:23:12 -05:00
#compdef buku
#
# 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]'
'(-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]'
'(--deep)--deep[search matching substrings]'
2017-09-17 01:23:18 -05:00
'(-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 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'
'(--immutable)--immutable[disable title update from web]:value'
'(-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]'
'(-o --open)'{-o,--open}'[open bookmarks in browser]'
'(--oa)--oa[browse all search results immediately]'
2016-05-15 02:23:12 -05:00
'(-p --print)'{-p,--print}'[show bookmark details]'
'(-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'
'(-s --sany)'{-s,--sany}'[match any keyword]:keyword(s)'
2020-11-27 07:38:23 -06:00
'(-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 09:30:45 -06:00
'(--tacit)--tacit[reduce verbosity]'
'(--tag)--tag[set tags, use + to append, - to remove]'
'(--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]'
'(--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