-
Notifications
You must be signed in to change notification settings - Fork 1
Hotkeys
This guide is based on versions before 0.1.8!
The main screen supports the next hotkeys:
-
Ctrl+Nto toggle night mode. -
Ctrl+Oto show the open dialog. -
Ctrl+Sto show the context switch dialog. -
Ctrl+Lto show the logs dialog. -
Ctrl+Cto leave Thymus, a confirmation dialog will be shown.
These dialogs have a message and one or two buttons. If there are two buttons the "Cancel" button is in the focus by default. The Enter key presses a selected button. The Tab key moves the focus between buttons. The Shift+Tab does it backward. The error dialog has only one button.
The input field of the open dialog and the working screen support the next:
-
Ctrl+Arrow Leftto move the cursor one word to the left. -
Ctrl+Arrow Rightto move the cursor one word to the right. -
Backspaceto delete the character to the left of the cursor. -
Home, andCtrl+Ato go to the beginning of the input. -
End, andCtrl+Eto go to the end of the input. -
Delete, andCtrl+Dto delete the character to the right of the cursor. -
Enterto submit the current value of the input. -
Ctrl+Wto delete the word to the left of the cursor. -
Ctrl+Uto delete everything to the left of the cursor. -
Ctrl+Fto delete the word to the right of the cursor. -
Ctrl+Kto delete everything to the right of the cursor.
The open dialog does not support any hotkeys from the main screen list. There are other options:
-
Tabto move the focus further among the elements. -
Shift+Tabto move it backward. -
Arrow Up, andArrow Downto move a selection inside the directory tree and both selectors. -
Enterto either expand any folder or copy a filename to the input field in the directory field. -
Escapeto silently close the dialog. -
pto move the focus to the Platforms switch (does not work when the focus is on any input field!). -
eto move the focus to the Encodings switch (does not work when the focus is on any input field!). -
tto move the focus to the Directory tree (does not work when the focus is on any input field!). -
lto switch tab left (does not work when the focus is on any input field!). -
rto switch tab right (does not work when the focus is on any input field!).
The Arrow Up and Arrow Down keys move the selection up and down respectively. The Enter key switches to a selected context. The Escape key closes this dialog silently.
This dialog supports only the Escape key to silently exit.
This screen supports all the hotkeys of the main screen and additional ones:
-
Ctrl+Bto toggle the left sidebar. -
Escape, andCtrl+;to close this screen with a confirmation dialog. -
nto load an additional screen for lengthy outputs explicitly (implicitly it is done by scrolling down).
The input field supports all the default keys and additional ones:
-
Arrow Up, andArrow Downto move a selection inside the left sidebar up and down respectively if a legacy Tab mode is on. When the Enhanced Tab is on, these hotkeys move the content of the Main output field. -
Ctrl+Up, andCtrl+Downto select a previously inserted command from a history list. -
Tabto accept the completion suggestion from the left sidebar if there is such a suggestion when the Input field is non-empty. If the Input field is empty, it moves the focus to the Main output field.
To select the content without elements of the Left sidebar use the Ctrl+B combination to hide it.
From the Textual documentation:
Running a Textual app puts your terminal in to application mode which disables clicking and dragging to select text.
Most terminal emulators offer a modifier key which you can hold while you click and drag to restore the behavior you
may expect from the command line. The exact modifier key depends on the terminal and platform you are running on.
- iTerm: Hold the OPTION key.
- Gnome Terminal: Hold the SHIFT key.
- Windows Terminal: Hold the SHIFT key.
Refer to the documentation for your terminal emulator, if it is not listed above.