docs/src/config/commandbindings.md
35 lines · 1008 bytes
2 symbols in this file
1# Command bindings
2
3Commands can be binded to keys (just like normal keybindings), it allows functionalities such as <u>playing hovered videos</u>. Bindings can be either *global* or *page specific*, it is located in `~/.config/youtube-tui/commandbindings.yml`.
4
5## Example commandbindings config
6
7```yml
8global:
9 'f':
10 2: run ${browser} '${url}'
11 'c':
12 2: cp ${url}
13video: {}
14search:
15 'a':
16 2: run ${terminal-emulator} mpv '${hover-url}' --no-video
17 'A':
18 1: run ${terminal-emulator} mpv '${hover-url}' --no-video --loop-playlist=inf --shuffle
19 'p':
20 2: run mpv '${hover-url}'
21watchhistory:
22 'A':
23 1: run ${terminal-emulator} mpv '${hover-url}' --no-video --loop-playlist=inf --shuffle
24 'p':
25 2: run mpv '${hover-url}'
26 'a':
27 2: run ${terminal-emulator} mpv '${hover-url}' --no-video
28# etc
29```
30
31<hr>
32
33Specifications are same as [`comamnds.yml`](commands.md), the exact same envs can be used.
34
35Default bindings can be found in [this section](../commands.md#command-bindings).