docs/src/config/cmdefine.md

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

28 lines · 727 bytes

1 symbol in this file

Custom commands

Define custom commands. It can be found in ~/.config/youtube-tui/cmdefine.yml.

This is still a work in progress, perhaps in the future scripting will be allowed to control and interact with elements within the TUI.

print: echo
pause: mpv sprop pause yes ;; echo mpv Player paused
next: mpv playlist-next ;; echo mpv Skipped
resume: mpv sprop pause no ;; echo mpv Player resumed
search: loadpage search
rc: reload configs

General format:

new command: original command

This allows for alternative shorthand commands.

More about commands run youtube-tui help or check out commands.

Try not to use self referencing commands, it'll make a mess.