Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 3.55 KB

keybindings.md

File metadata and controls

14 lines (10 loc) · 3.55 KB
description icon
Press any key!
keyboard

Keybindings

TermRead implements the following keybindings to interact with the input:

KeybindingAction
ENTERAccepts input
Ctrl+CCancels reading (if TreatCtrlCAsInput is enabled)
Ctrl+A / HOMEBeginning of line
Ctrl+E / ENDEnd of line
Ctrl+B / Backward one character
Ctrl+F / Forward one character
BACKSPACERemove one character from the left
UP ARROWGet the older input
DOWN ARROWGet the newer input
DELETERemove one character in current position
ALT+BOne word backward
ALT+FOne word forward
TABNext auto-completion entry (if there is one)
Insert four spaces (if no autocompletions)
SHIFT+TABPrevious auto-completion entry
CTRL+UCut to the start of the line
CTRL+KCut to the end of the line
CTRL+WCut to the end of the previous word
ALT+DCut to the end of the next word
CTRL+YYank the cut content
Alt+LMake word lowercase
Alt+UMake word uppercase
Alt+CMake character uppercase and move to the end of word
Alt+VMake character lowercase and move to the end of word
Alt+SShows all suggestions in the style akin to the Bourne Again SHell (bash)
Alt+RRefreshes the prompt, the text input, and the current cursor position.
InsertText append mode (Insert or append)
CTRL+LClears the screen and refreshes the prompt.
ALT+\Cut the whitespaces before and after the character.
CTRL+TSubstitutes two characters
ALT+TSubstitutes two words
ALT+SHIFT+#Makes your current input text a comment (visual only, but ignores your text on submit)
ALT+TAB / CTRL+IForces the tab character to be written. Writes as spaces.
ALT+SHIFT+CTemporarily conceals or reveals the whole input in normal prompts.

{% hint style="warning" %} Warning: Some of the keys conflict with the terminal emulator and/or the operating system keybindings. {% endhint %}