summaryrefslogtreecommitdiff
path: root/book/src/remapping.md
diff options
context:
space:
mode:
authorGokul Soumya2021-08-18 00:53:50 +0000
committerGitHub2021-08-18 00:53:50 +0000
commitb59b2485613089595522377c87a392c859ee31a0 (patch)
tree385c1b0ad737af5df604a67aaf724acce1c74da6 /book/src/remapping.md
parentfdd6530df7fa849b86e4fdd3c7d696d89aaf4012 (diff)
Add docs for registers, multi key remaps (#557)
Diffstat (limited to 'book/src/remapping.md')
-rw-r--r--book/src/remapping.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/book/src/remapping.md b/book/src/remapping.md
index b4f4005b..3f25e364 100644
--- a/book/src/remapping.md
+++ b/book/src/remapping.md
@@ -13,10 +13,12 @@ this:
[keys.normal]
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
+"C-S-esc" = "extend_line" # Maps Control-Shift-Escape to extend_line
+g = { a = "code_action" } # Maps `ga` to show possible code actions
[keys.insert]
-A-x = "normal_mode" # Maps Alt-X to enter normal mode
+"A-x" = "normal_mode" # Maps Alt-X to enter normal mode
+j = { k = "normal_mode" } # Maps `jk` to exit insert mode
```
Control, Shift and Alt modifiers are encoded respectively with the prefixes