Add prompt help

This commit is contained in:
Arun Prakash Jana 2017-07-25 09:28:32 +05:30
parent 50e89f58b7
commit bb9810c093
No known key found for this signature in database
GPG Key ID: A75979F35C080412
2 changed files with 30 additions and 14 deletions

View File

@ -233,6 +233,22 @@ SYMBOLS:
> url > url
+ comment + comment
# tags # tags
keys:
1-N browse search result indices and/or ranges
a open all results in browser
s keyword [...] search for records with ANY keyword
S keyword [...] search for records with ALL keywords
d match substrings ('pen' matches 'opened')
r expression run a regex search
t [...] search bookmarks by a tag or show tag list
g [...][>>|>|<<][...] append, remove tags to/from indices and/or ranges
o [...] browse bookmarks by indices and/or ranges
p [...] print bookmarks by indices and/or ranges
w [editor|index] edit and add or update a bookmark
(tag list index fetches bookmarks by tag)
? show this help
q, ^D, double Enter exit buku
``` ```
#### Operational notes #### Operational notes

28
buku.py
View File

@ -1890,20 +1890,20 @@ Webpage: https://github.com/jarun/Buku
def prompt_help(file=sys.stdout): def prompt_help(file=sys.stdout):
file.write(''' file.write('''
keys: keys:
1-N browse search result indices and/or ranges 1-N browse search result indices and/or ranges
a open all results in browser a open all results in browser
s keyword [...] search for records with ANY keyword s keyword [...] search for records with ANY keyword
S keyword [...] search for records with ALL keywords S keyword [...] search for records with ALL keywords
d match substrings ('pen' matches 'opened') d match substrings ('pen' matches 'opened')
r expression run a regex search r expression run a regex search
t [...] search bookmarks by a tag or show tag list t [...] search bookmarks by a tag or show tag list
g [...][>>|>|<<][...] append, remove tags to/from indices and/or ranges g [...][>>|>|<<][...] append, remove tags to/from indices and/or ranges
o [...] browse bookmarks by indices and/or ranges o [...] browse bookmarks by indices and/or ranges
p [...] print bookmarks by indices and/or ranges p [...] print bookmarks by indices and/or ranges
w [editor|index] edit and add or update a bookmark w [editor|index] edit and add or update a bookmark
(tag list index fetches bookmarks by tag) (tag list index fetches bookmarks by tag)
? show this help ? show this help
q, ^D, double Enter exit buku q, ^D, double Enter exit buku
''') ''')