#
# Fish completion definition for buku.
#
# Author:
#   Arun Prakash Jana <engineerarun@gmail.com>
#
complete -c buku -s a -l add     -r --description 'add bookmark'
complete -c buku -s c -l comment    --description 'comment on bookmark'
complete -c buku -l deep            --description 'search matching substrings'
complete -c buku -s d -l delete     --description 'delete bookmark'
complete -c buku -s e -l export  -r --description 'export bookmarks'
complete -c buku -s h -l help       --description 'show help'
complete -c buku -l immutable    -r --description 'disable title update from web'
complete -c buku -s i -l import  -r --description 'import bookmarks'
complete -c buku -l markdown        --description 'markdown mode'
complete -c buku -s k -l unlock     --description 'decrypt database'
complete -c buku -s l -l lock       --description 'encrypt database'
complete -c buku -s m -l merge   -r --description 'merge another buku database'
complete -c buku -l noprompt        --description 'noninteractive mode'
complete -c buku -s o -l open    -r --description 'open bookmark in browser'
complete -c buku -s p -l print      --description 'show bookmark details'
complete -c buku -s r -l replace -r --description 'replace a tag'
complete -c buku -s s -l sany    -r --description 'search any keyword'
complete -c buku -s S -l sall    -r --description 'search all keywords'
complete -c buku -l shorten      -r --description 'shorten a URL'
complete -c buku -l sreg            --description 'search by a regular expression'
complete -c buku -l stag            --description 'search by tag or show tags'
complete -c buku -l tacit           --description 'reduce verbosity'
complete -c buku -l tag             --description 'set tags, use + to append, - to remove'
complete -c buku -s t -l title      --description 'set custom title'
complete -c buku -s u -l update     --description 'update bookmark'
complete -c buku -l upstream        --description 'check latest upstream release'
complete -c buku -l url             --description 'set url'
