This commit is contained in:
Arun Prakash Jana 2020-07-23 08:23:55 +05:30
parent 9609bc0084
commit 6afff3ab3c
No known key found for this signature in database
GPG Key ID: A75979F35C080412
3 changed files with 10 additions and 9 deletions

View File

@ -233,7 +233,7 @@ POWER TOYS:
--colors COLORS set output colors in five-letter string --colors COLORS set output colors in five-letter string
--nc disable color output --nc disable color output
-n, --count N show N results per page (default 10) -n, --count N show N results per page (default 10)
--np do not show the prompt, run and exit --np do not show the subprompt, run and exit
-o, --open [...] browse bookmarks by indices and ranges -o, --open [...] browse bookmarks by indices and ranges
open a random bookmark, if no arguments open a random bookmark, if no arguments
--oa browse all search results immediately --oa browse all search results immediately
@ -243,7 +243,7 @@ POWER TOYS:
--expand index|URL expand a tny.im shortened url --expand index|URL expand a tny.im shortened url
--cached index|URL browse a cached page from Wayback Machine --cached index|URL browse a cached page from Wayback Machine
--suggest show similar tags when adding bookmarks --suggest show similar tags when adding bookmarks
--tacit reduce verbosity --tacit reduce verbosity, skip some confirmations
--threads N max network connections in full refresh --threads N max network connections in full refresh
default N=4, min N=1, max N=10 default N=4, min N=1, max N=10
-V check latest upstream version available -V check latest upstream version available
@ -366,7 +366,7 @@ PROMPT KEYS:
$ buku -d 15012014 $ buku -d 15012014
Index 15012020 moved to 15012014 Index 15012020 moved to 15012014
The last index is moved to the deleted index to keep the DB compact. The last index is moved to the deleted index to keep the DB compact. Add `--tacit` to delete without confirmation.
14. **Delete all** bookmarks: 14. **Delete all** bookmarks:
$ buku -d $ buku -d

11
buku
View File

@ -1578,9 +1578,10 @@ class BukuDb:
bool bool
True on success, False on failure. True on success, False on failure.
""" """
resp = read_in('Delete the search results? (y/n): ') if self.chatty:
if resp != 'y': resp = read_in('Delete the search results? (y/n): ')
return False if resp != 'y':
return False
# delete records in reverse order # delete records in reverse order
pos = len(results) - 1 pos = len(results) - 1
@ -4968,7 +4969,7 @@ POSITIONAL ARGUMENTS:
--colors COLORS set output colors in five-letter string --colors COLORS set output colors in five-letter string
--nc disable color output --nc disable color output
-n, --count N show N results per page (default 10) -n, --count N show N results per page (default 10)
--np do not show the prompt, run and exit --np do not show the subprompt, run and exit
-o, --open [...] browse bookmarks by indices and ranges -o, --open [...] browse bookmarks by indices and ranges
open a random bookmark, if no arguments open a random bookmark, if no arguments
--oa browse all search results immediately --oa browse all search results immediately
@ -4978,7 +4979,7 @@ POSITIONAL ARGUMENTS:
--expand index|URL expand a tny.im shortened url --expand index|URL expand a tny.im shortened url
--cached index|URL browse a cached page from Wayback Machine --cached index|URL browse a cached page from Wayback Machine
--suggest show similar tags when adding bookmarks --suggest show similar tags when adding bookmarks
--tacit reduce verbosity --tacit reduce verbosity, skip some confirmations
--threads N max network connections in full refresh --threads N max network connections in full refresh
default N=4, min N=1, max N=10 default N=4, min N=1, max N=10
-V check latest upstream version available -V check latest upstream version available

2
buku.1
View File

@ -595,7 +595,7 @@ This operation can update the title or description fields of non-immutable bookm
.EE .EE
.PP .PP
.IP "" 4 .IP "" 4
The last index is moved to the deleted index to keep the DB compact. The last index is moved to the deleted index to keep the DB compact. Add --tacit to delete without confirmation.
.PP .PP
.IP 14. 4 .IP 14. 4
\fBDelete all\fR bookmarks: \fBDelete all\fR bookmarks: