docs/src/basic_usage.md

v0.5.3
youtube-tui/docs/src/basic_usage.md rendered · source · history · blame · raw

58 lines · 2030 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![](./images/cursor-showcasae.png)
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|Quit|`q`|
27
28## Selection
29
30Selecting an item allows you to move the cursor within that item, to select an item, press `Enter`.
31
32When nothing is selected, you can move the cursor between items, to deselect from an item, hit `Esc`.
33
34## Searching
35
36Type the search query when the search bar and press `Enter`, use arrow keys to move the cursor around.
37
38To 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.
39
40![](./images/search-filters-showcase.png)
41
42## Playing videos and playlists
43
44> This part assumes that you use `mpv` as your video player, `konsole` as your terminal emulator, `yt-dlp` as your YouTube video downloader, and `firefox` as your browser.
45> 
46> If that is not the case, you can learn how to change that in the *custom commands* section.
47
48Press `Enter` to select a video or playlist from any lists, then move the cursor to the *bottom item* where you can play, download and open the webpage in browser.
49
50### Playlist views
51
52The playlist page allows two different view modes, the first of which is *commands view* - similar to what the video page offers.
53
54The other one is *videos view*, which allows you to look at each videos in the playlist individually.
55
56## Buttons
57
58Buttons have no use on their own, but allows you to navigate between pages.