diff options
author | Jonathan Slenders <jonathan@slenders.be> | 2016-12-17 12:28:17 +0100 |
---|---|---|
committer | Jonathan Slenders <jonathan@slenders.be> | 2016-12-17 12:28:17 +0100 |
commit | a7c224b7651b1ab014a848e910b0d78a773b3156 (patch) | |
tree | 1f379ab49d174719e238d5fa2498956e57788f90 | |
parent | 903018201e0b0f5ad4090c08879fa83f665413b3 (diff) |
Added comments to Emacs bindings.
-rw-r--r-- | prompt_toolkit/key_binding/bindings/emacs.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/prompt_toolkit/key_binding/bindings/emacs.py b/prompt_toolkit/key_binding/bindings/emacs.py index ac3389f2..eb08a813 100644 --- a/prompt_toolkit/key_binding/bindings/emacs.py +++ b/prompt_toolkit/key_binding/bindings/emacs.py @@ -146,11 +146,13 @@ def load_emacs_bindings(registry, filter=Always()): @handle(Keys.ControlSquareClose, Keys.Any) def _(event): " When Ctl-] + a character is pressed. go to that character. " + # Also named 'character-search' character_search(event.current_buffer, event.data, event.arg) @handle(Keys.Escape, Keys.ControlSquareClose, Keys.Any) def _(event): " Like Ctl-], but backwards. " + # Also named 'character-search-backward' character_search(event.current_buffer, event.data, -event.arg) @handle(Keys.Escape, 'a') |