From ebf32f63ebfef789e3703fb85afae262572fa889 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sun, 15 May 2016 11:33:02 +0530 Subject: [PATCH] Add fish auto-completion file. --- README.md | 2 +- auto-completion/fish/buku.fish | 18 ++++++++++++++++++ buku | 2 +- 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 auto-completion/fish/buku.fish diff --git a/README.md b/README.md index 33c2c49..3f71ded 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/auto-completion/fish/buku.fish b/auto-completion/fish/buku.fish new file mode 100644 index 0000000..73eb13a --- /dev/null +++ b/auto-completion/fish/buku.fish @@ -0,0 +1,18 @@ +# +# fish completion definition for buku. +# +# Author: +# Arun Prakash Jana +# +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' diff --git a/buku b/buku index 781faac..f2849d1 100755 --- a/buku +++ b/buku @@ -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)