docs/src/config/cmdefine.md

28 lines · 727 bytes

 1# Custom commands
 2
 3Define custom commands. It can be found in `~/.config/youtube-tui/cmdefine.yml`.
 4
 5> This is still a work in progress, perhaps in the future scripting will be allowed to control and interact with elements within the TUI.
 6
 7```yml
 8print: echo
 9pause: mpv sprop pause yes ;; echo mpv Player paused
10next: mpv playlist-next ;; echo mpv Skipped
11resume: mpv sprop pause no ;; echo mpv Player resumed
12search: loadpage search
13rc: reload configs
14```
15
16---
17
18General format:
19
20```yml
21new command: original command
22```
23
24This allows for alternative shorthand commands.
25
26<sub>More about commands run `youtube-tui help` or check out [commands](commands.md).</sub>
27
28> Try not to use self referencing commands, it'll make a mess.