docs/src/basic_usage.md
109 lines · 3710 bytes
1# Basic usage
2
3Here is a basic how-to guide on the TUI.
4
5## Cursor
6
7The *cursor* can be moved using arrow keys, or Vim keybindings (hjkl).
8
9
10
11The item with the cursor hovering will have a <u>red outline</u>.
12
13> Everything here refers to the *latest default config*, including the keybindings.
14
15|Function|Key(s)|
16|---|---|
17|Select|Enter|
18|Deselect|Esc|
19|Cursor up|Up arrow / `k`|
20|Cursor down|Down arrow / `j`|
21|Cursor left|Left arrow / `h`|
22|Cursor right|Right arrow / `l`|
23|Previous page|Backspace / Alt + Left arrow|
24|First page history|Home|
25|Clear page history|End|
26|Paste from clipboard|`Ctrl` + `V`|
27|Next/previous entry on search and command|`Ctrl` + up/down arrow|
28|Next song|`Ctrl` + `Shift` + Right arrow|
29|Seek audio|`Ctrl` + left/right arrow|
30|Pause/resume audio|Space|
31|Enter command mode|`:`|
32|Quit|`q`|
33
34## Selection
35
36Selecting an item allows you to move the cursor within that item, to select an item, press `Enter`.
37
38When nothing is selected, you can move the cursor between items, to deselect from an item, hit `Esc`.
39
40## Searching
41
42Type the search query when the search bar and press `Enter`, use arrow keys to move the cursor around.
43
44To apply search filters, select the button with 3 dots (`...`) to the right of the search bar, hit enter to start modifying and enter again to save. Pressing `Esc` should reload the current search page to apply the filters.
45
46
47
48> You may use `Ctrl + Up/Down arrow` to cycle through previously searched queries (when focused on the search bar).
49
50## Playing media with embedded player
51
52By default, running any "play video" options in video or playlist view will open a new mpv player window.
53
54While any "play audio" options will start playing the audio in the embedded audio player,
55
56- seek and rewind using `Ctrl + Left/Right arrow`
57- skip with `Ctrl + Shift + Right arrow`
58- pause and resume with space
59
60## Playing videos and playlists externally
61
62You can also play audio and videos externally.
63
64> This part assumes that you use `mpv` as your video player, `konsole` as your terminal emulator and `yt-dlp` as your YouTube video downloader.
65>
66> If that is not the case, you can learn how to change that in the *custom commands* section.
67
68You can press keybindings like `Shift` + `A` to run a command which opens a new terminal screen, and in that terminal screen it runs an mpv command to play the media.
69
70## Feeds
71
72Feeds allows you to view updates from subscribed channels, similar to how subscriptions works on YouTube.
73
74
75
76## Command mode
77
78Command mode is like that of Vim, it can be started by pressing `:` when nothing is selected.
79
80More about commands in the [next chapter](commands.md).
81
82## Command bindings
83
84Keys can be bind to a command, more about it in the next chapter.
85
86For example `Ctrl + F` launches your web browser.
87
88## Buttons
89
90Buttons are similar to hyperlinks, it allows you to navigate between pages.
91
92## Mouse click control
93
94
95
96Mouse click controls has been added, you can now use your mouse to navigate around the TUI. Here are the general rules:
97
981. Clicking an item *moves the cursor* to that item, clicking again *selects* the item
992. Clicking on buttons, or items on a list has the same effect as pressing `Enter` on them
1003. Clicking outside a popup closes the popup
101
102However, there are some downsides to not using your keyboard.
103
1041. Cannot move up or down to items not on screen in a list (you can do that with `Up` or `Down arrow`)
1052. Cannot access function keys like `Backspace` or `Q`
106
107## Library
108
109Items can be bookmarked and saved to library, they can also be saved to be viewed offline.