Add fish auto-completion file.

This commit is contained in:
Arun Prakash Jana 2016-05-15 11:33:02 +05:30
parent ecb5e390d5
commit ebf32f63eb
No known key found for this signature in database
GPG Key ID: C0A712ED95043DCB
3 changed files with 20 additions and 2 deletions

View File

@ -165,7 +165,7 @@ You may need to use `sudo` with `PREFIX` depending on your permissions on destin
replace oldtag with newtag in all bookmarks
delete oldtag, if no newtag
-j, --jason Json formatted output, works with -p, -s
-o, --open open bookmark at DB index N in web browser
-o, --open N open bookmark at DB index N in web browser
-z, --debug show debug information and additional logs
prompt keys:

View File

@ -0,0 +1,18 @@
#
# 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 u -l update --description 'update bookmark'
complete -c buku -s t -l title --description 'set custom title'
complete -c buku -s d -l delete --description 'delete bookmark'
complete -c buku -s h -l help --description 'show help'
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 -s l -l lock --description 'encrypt database'
complete -c buku -s k -l unlock --description 'decrypt database'
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 o -l open -r --description 'open bookmark in browser'

2
buku
View File

@ -1117,7 +1117,7 @@ power_group=argparser.add_argument_group(title="power toys",
replace oldtag with newtag in all bookmarks
delete oldtag, if no newtag
-j, --jason Json formatted output, works with -p, -s
-o, --open open bookmark at DB index N in web browser
-o, --open N open bookmark at DB index N in web browser
-z, --debug show debug information and additional logs''')
power_group.add_argument('-p', '--print', nargs='?', dest='printindex', type=int, const=0, metavar='N', help=argparse.SUPPRESS)
power_group.add_argument('-f', '--format', dest='showOpt', type=int, choices=[1, 2], metavar='N', help=argparse.SUPPRESS)