Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Keybindings config

The keybindings config binds each key to an action, or multiple keys for the same action. It can be found in ~/.config/youtube-tui/keybindings.yml.

Example keybindings config

'q':
  0: Exit
Down:
  0: MoveDown
'r':
  2: Reload
Enter:
  0: Select
'l':
  0: MoveRight
Up:
  0: MoveUp
'j':
  0: MoveDown
End:
  0: ClearHistory
Right:
  0: MoveRight
Backspace:
  0: Back
'h':
  0: MoveLeft
F5:
  0: Reload
'k':
  0: MoveUp
Esc:
  0: Deselect
Home:
  0: FirstHistory
Left:
  0: MoveLeft
  4: Back

Keys

Keys can be:

  • A single character (e.g. 'q')
  • Named keys (e.g. Up, Down)
  • Function keys (e.g. F5)

Key modifiers

Key modifiers are the modifier keys that are pressed along with the actual key, for instance in Ctrl + C would have the modifier Ctrl and the key C.

Each modifier has its own code, for instance Shift would be 1 and Ctrl would be 2. The final modifier will be the sum of all modifier keys. (Ctrl + Shift would be a 3).

Keys reference

All possible keys can be found here.

Key actions

All key actions can be found in KeyAction under /src/global/structs/keyaction.rs.

Modifiers reference

ModifierCode
None0
Shift1
Ctrl2
Alt4
Super/"Windows" key8
Hyper16
Meta32

All key modifiers (if any are added) will be in the code.