diff options
author | Omnikar | 2021-11-11 04:44:50 +0000 |
---|---|---|
committer | GitHub | 2021-11-11 04:44:50 +0000 |
commit | d131a9dd0efc5ff271f8b78cd65a8dc30c193af4 (patch) | |
tree | d7083b42822d6d37ea04eb291674909d1fb9d3fe /book | |
parent | bf70cfd050d961ce7b8d5a95fe663dff9eb1e66e (diff) |
Allow keys to be mapped to sequences of commands (#589)
* Allow keys to be mapped to sequences of commands
* Handle `Sequence` at the start of `Keymap::get`
* Use `"[Multiple commands]"` as command sequence doc
* Add command sequence example to `remapping.md`
Diffstat (limited to 'book')
-rw-r--r-- | book/src/remapping.md | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/book/src/remapping.md b/book/src/remapping.md index 5ca6cd1b..532f502a 100644 --- a/book/src/remapping.md +++ b/book/src/remapping.md @@ -15,6 +15,7 @@ a = "move_char_left" # Maps the 'a' key to the move_char_left command w = "move_line_up" # Maps the 'w' key move_line_up "C-S-esc" = "extend_line" # Maps Control-Shift-Escape to extend_line g = { a = "code_action" } # Maps `ga` to show possible code actions +"ret" = ["open_below", "normal_mode"] # Maps the enter key to open_below then re-enter normal mode [keys.insert] "A-x" = "normal_mode" # Maps Alt-X to enter normal mode |