help: add "help" command in case of

This commit is contained in:
dece 2021-05-28 13:26:41 +02:00
parent b22981cef6
commit 46ec9879e6
2 changed files with 4 additions and 1 deletions

View file

@ -306,7 +306,9 @@ class Browser:
command = words[0]
if num_words == 1:
if command in ("q", "quit"):
if command == "help":
self.open_help()
elif command in ("q", "quit"):
self.running = False
elif command in ("h", "home"):
self.open_home()

View file

@ -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.
* help: show this help page
* o(pen) <url>: open this URL
* q(uit): well, quit
* h(ome): open your home page