2020-09-12 14:17:32 -04:00
|
|
|
.. _keyboard_shortcuts:
|
|
|
|
|
|
|
|
******************
|
|
|
|
Keyboard Shortcuts
|
|
|
|
******************
|
|
|
|
Xonsh comes pre-baked with a few keyboard shortcuts. The following is only available under the prompt-toolkit shell.
|
|
|
|
|
|
|
|
.. list-table::
|
|
|
|
:widths: 40 60
|
|
|
|
:header-rows: 1
|
|
|
|
|
|
|
|
* - Shortcut
|
|
|
|
- Description
|
2021-08-01 00:38:31 +03:00
|
|
|
* - Ctrl-Backspace (or Ctrl-H)
|
|
|
|
- Delete a single word (like Alt-Backspace)
|
2020-09-12 14:17:32 -04:00
|
|
|
* - Ctrl-X + Ctrl-E
|
|
|
|
- Open the current buffer in your default text editor.
|
|
|
|
* - Ctrl-D
|
|
|
|
- Exit xonsh and return to original terminal. If not called by another terminal, then exit current terminal window. Similar to ``exit``.
|
|
|
|
* - Ctrl-J
|
|
|
|
- | Similar to enter in a few respects:
|
|
|
|
| 1. Execute the current buffer.
|
|
|
|
| 2. End and execute a multiline statement.
|
|
|
|
* - Ctrl-M
|
|
|
|
- Same as Ctrl-J
|
2021-08-16 18:42:34 +03:00
|
|
|
* - Shift-Left OR Shift-Right
|
2020-09-12 14:17:32 -04:00
|
|
|
- Highlight one character in either direction
|
2021-08-16 18:42:34 +03:00
|
|
|
* - Ctrl-Shift-Left OR Ctrl-Shift-Right
|
2020-09-12 14:17:32 -04:00
|
|
|
- Highlight one word in either direction
|
2021-08-16 18:42:34 +03:00
|
|
|
* - Ctrl-X + Ctrl-C
|
2020-09-12 14:17:32 -04:00
|
|
|
- Copy highlighted section
|
2021-08-16 18:42:34 +03:00
|
|
|
* - Ctrl-X + Ctrl-X
|
2020-09-12 14:17:32 -04:00
|
|
|
- Cut highlighted section
|
2021-08-16 18:42:34 +03:00
|
|
|
* - Ctrl-V
|
2020-09-12 14:17:32 -04:00
|
|
|
- Paste clipboard contents
|
2021-07-29 12:50:47 +03:00
|
|
|
* - Ctrl-Right
|
|
|
|
- Complete a single auto-suggestion word
|
2020-09-12 14:17:32 -04:00
|
|
|
|