docs/src/config/commandbindings.md

84c4617332578aaf4e9ee68a0a2d7d6258e48243
youtube-tui/docs/src/config/commandbindings.md rendered · source · history · blame · raw

35 lines · 1008 bytes

2 symbols in this file

Command bindings

Commands can be binded to keys (just like normal keybindings), it allows functionalities such as playing hovered videos. Bindings can be either global or page specific, it is located in ~/.config/youtube-tui/commandbindings.yml.

Example commandbindings config

global:
  'f':
    2: run ${browser} '${url}'
  'c':
    2: cp ${url}
video: {}
search:
  'a':
    2: run ${terminal-emulator} mpv '${hover-url}' --no-video
  'A':
    1: run ${terminal-emulator} mpv '${hover-url}' --no-video --loop-playlist=inf --shuffle
  'p':
    2: run mpv '${hover-url}'
watchhistory:
  'A':
    1: run ${terminal-emulator} mpv '${hover-url}' --no-video --loop-playlist=inf --shuffle
  'p':
    2: run mpv '${hover-url}'
  'a':
    2: run ${terminal-emulator} mpv '${hover-url}' --no-video
# etc

Specifications are same as comamnds.yml, the exact same envs can be used.

Default bindings can be found in this section.