Keyboard Shortcuts¶
Xonsh comes pre-baked with a few keyboard shortcuts. The following is only available under the prompt-toolkit shell.
Editing¶
Shortcut |
Description |
|---|---|
|
Cancel the current command if nothing is selected. |
|
Select one character in either direction. |
|
Select one word in either direction. |
|
Paste clipboard contents. |
|
Delete a single word (like |
|
Open the current buffer in your default text editor. |
|
Complete a single auto-suggestion word. |
|
Start new line without execution. Terminal must support xterm modifyOtherKeys mode 1 or Kitty keyboard protocol. |
Selection Actions¶
The following shortcuts work when text is selected (e.g. via Shift+Arrow keys):
Shortcut |
Description |
|---|---|
|
Copy selected text. |
|
Copy selected text (alternative). |
|
Cut selected text. |
|
Indent selected lines. |
|
Unindent selected lines. |
|
Cancel selection. |
Execution¶
Shortcut |
Description |
|---|---|
|
Similar to enter in a few respects:
1. Execute the current buffer.
2. End and execute a multiline statement.
|
|
Same as |
Exit¶
Press Ctrl-D to exit xonsh and return to original terminal.
If not called by another terminal, then exit current terminal window.
Similar to exit.