Updated keybindings for Emacs and Vi in the interactive prompt.

This commit is contained in:
Paul Gauthier 2024-06-10 21:16:04 -07:00
parent eddf31b38f
commit 66f5042ff5

View file

@ -38,7 +38,9 @@ cog.out(get_help_md())
# Keybindings
The interactive prompt is built with [prompt-toolkit](https://github.com/prompt-toolkit/python-prompt-toolkit) which provides a lot of Emacs and Vi-style keyboard. Some emacs bindings you may find useful are
The interactive prompt is built with [prompt-toolkit](https://github.com/prompt-toolkit/python-prompt-toolkit) which provides emacs and vi keybindings.
## Emacs
- `Ctrl-A` : Move cursor to the start of the line.
- `Ctrl-B` : Move cursor back one character.
@ -51,3 +53,6 @@ The interactive prompt is built with [prompt-toolkit](https://github.com/prompt-
- `Ctrl-P` : Move up to the previous history entry.
- `Ctrl-R` : Reverse search in command history.
## Vi