docs/src/commands.md

41 lines · 1189 bytes

 1# Commands
 2
 3Commands can be entered to the TUI by pressing the `:` key, the same as in Vim. Some commands have shorter *alternatives* that can be used instead.
 4
 5Below are the avaliable commands:
 6
 7## Loadpage
 8
 9`loadpage` can be used to load a specific page.
10
11```vim
12:loadpage popular (alt: `popular`)
13:loadpage trending (alt: `trending`)
14:loadpage watchhistory (alt: `watchhistory`)
15:loadpage search [search query] (alt: `search [search query]`)
16:loadpage video [id or url] (alt: `video [id or url]`)
17:loadpage playlist [id or url] (alt: `playlist [id or url] `)
18:loadpage channel [id or url] (alt: `channel [id or url] `)
19```
20
21## History
22
23`history` is used to manage page history (`Backspace` equivalent).
24
25```vim
26:history back (alt: `back`)
27:history clear
28```
29
30## Utility
31
32```vim
33:reload (alt `r`)
34:reload configs (alt `reload/r config/configs`)
35:flush
36:quit (alt `q`, `exit`, `x`)
37```
38
39> The `flush` command is used to run all tasks in queue immediately, this is usually done automatically.
40>
41> But for when tasks are stacked up in the *same* event loop and the order of which they are executed matters, this command can be used to force the already stacked up commands to be ran first.