diff --git a/README.md b/README.md index 15eebaf..9b5c6c9 100644 --- a/README.md +++ b/README.md @@ -210,7 +210,7 @@ POWER TOYS: -1 shows the bookmark with highest index -f, --format N limit fields in -p or Json search output N=1: URL, N=2: URL and tag, N=3: title - -r, --replace oldtag [newtag ...] + --replace oldtag [newtag ...] replace oldtag with newtag everywhere delete oldtag, if newtag not specified -j, --json Json formatted output for -p and search @@ -462,10 +462,10 @@ The same number of iterations must be specified for one lock & unlock instance. $ buku -p | more 25. **Replace tag** 'old tag' with 'new tag': - $ buku -r 'old tag' new tag + $ buku --replace 'old tag' new tag 26. **Delete tag** 'old tag' from DB: - $ buku -r 'old tag' + $ buku --replace 'old tag' 27. **Append (or delete) tags** 'tag 1', 'tag 2' to (or from) existing tags of bookmark at index 15012014: $ buku -u 15012014 --tag + tag 1, tag 2 diff --git a/auto-completion/bash/buku-completion.bash b/auto-completion/bash/buku-completion.bash index 0c21807..8bed34d 100644 --- a/auto-completion/bash/buku-completion.bash +++ b/auto-completion/bash/buku-completion.bash @@ -30,7 +30,7 @@ _buku () { -o --open --oa -p --print - -r --replace + --replace -s --sany -S --sall --shorten @@ -55,7 +55,7 @@ _buku () { -i --import --immutable -m --merge - -r --replace + --replace -s --sany -S --sall --shorten diff --git a/auto-completion/fish/buku.fish b/auto-completion/fish/buku.fish index 179f8d8..d89a5c8 100644 --- a/auto-completion/fish/buku.fish +++ b/auto-completion/fish/buku.fish @@ -23,7 +23,7 @@ complete -c buku -l np --description 'non-interactive mode' complete -c buku -s o -l open --description 'open bookmarks in browser' complete -c buku -l oa --description 'browse all search results immediately' 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 -l replace -r --description 'replace a tag' complete -c buku -s s -l sany -r --description 'match any keyword' complete -c buku -s S -l sall -r --description 'match all keywords' complete -c buku -l shorten -r --description 'shorten a URL using tny.im' diff --git a/auto-completion/zsh/_buku b/auto-completion/zsh/_buku index b4dfe6f..13ffa29 100644 --- a/auto-completion/zsh/_buku +++ b/auto-completion/zsh/_buku @@ -28,7 +28,7 @@ args=( '(-o --open)'{-o,--open}'[open bookmarks in browser]' '(--oa)--oa[browse all search results immediately]' '(-p --print)'{-p,--print}'[show bookmark details]' - '(-r --replace)'{-r,--replace}'[replace a tag]:tag to replace' + '(--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' diff --git a/buku.1 b/buku.1 index a36bdb2..4e26249 100644 --- a/buku.1 +++ b/buku.1 @@ -188,7 +188,7 @@ Show selective monochrome output with specific fields. Works with --print. Searc .I N = 3, show only title. .TP -.BI \-r " " \--replace " oldtag [newtag ...]" +.BI \--replace " oldtag [newtag ...]" Replace .I oldtag with @@ -535,7 +535,7 @@ The same number of iterations must be specified for one lock & unlock instance. .PP .EX .IP -.B buku -r 'old tag' new tag +.B buku --replace 'old tag' new tag .EE .PP .IP 26. 4 @@ -543,7 +543,7 @@ The same number of iterations must be specified for one lock & unlock instance. .PP .EX .IP -.B buku -r 'old tag' +.B buku --replace 'old tag' .EE .PP .IP 27. 4 diff --git a/buku.py b/buku.py index 53a0593..2d20c3b 100755 --- a/buku.py +++ b/buku.py @@ -2636,7 +2636,7 @@ POSITIONAL ARGUMENTS: -1 shows the bookmark with highest index -f, --format N limit fields in -p or Json search output N=1: URL, N=2: URL and tag, N=3: title - -r, --replace oldtag [newtag ...] + --replace oldtag [newtag ...] replace oldtag with newtag everywhere delete oldtag, if newtag not specified -j, --json Json formatted output for -p and search @@ -2658,7 +2658,7 @@ POSITIONAL ARGUMENTS: addarg('-m', '--merge', nargs=1, help=HIDE) addarg('-p', '--print', nargs='*', help=HIDE) addarg('-f', '--format', type=int, default=0, choices={1, 2, 3}, help=HIDE) - addarg('-r', '--replace', nargs='+', help=HIDE) + addarg('--replace', nargs='+', help=HIDE) addarg('-j', '--json', action='store_true', help=HIDE) addarg('--nc', action='store_true', help=HIDE) addarg('--np', action='store_true', help=HIDE)