help: add "help" command in case of
This commit is contained in:
parent
b22981cef6
commit
46ec9879e6
|
@ -306,7 +306,9 @@ class Browser:
|
||||||
|
|
||||||
command = words[0]
|
command = words[0]
|
||||||
if num_words == 1:
|
if num_words == 1:
|
||||||
if command in ("q", "quit"):
|
if command == "help":
|
||||||
|
self.open_help()
|
||||||
|
elif command in ("q", "quit"):
|
||||||
self.running = False
|
self.running = False
|
||||||
elif command in ("h", "home"):
|
elif command in ("h", "home"):
|
||||||
self.open_home()
|
self.open_home()
|
||||||
|
|
|
@ -43,6 +43,7 @@ Keybinds using the SHIFT key are written uppercase. Keybinds using the ALT (or M
|
||||||
|
|
||||||
Commands are mostly for actions requiring user input. You can type a command with arguments by pressing the corresponding keybind above.
|
Commands are mostly for actions requiring user input. You can type a command with arguments by pressing the corresponding keybind above.
|
||||||
|
|
||||||
|
* help: show this help page
|
||||||
* o(pen) <url>: open this URL
|
* o(pen) <url>: open this URL
|
||||||
* q(uit): well, quit
|
* q(uit): well, quit
|
||||||
* h(ome): open your home page
|
* h(ome): open your home page
|
||||||
|
|
Reference in a new issue