@@ -25,8 +25,31 @@ j = { k = "normal_mode" } # Maps `jk` to exit insert mode
26> NOTE: Typable commands can also be remapped, remember to keep the `:` prefix to indicate it's a typable command.
26> NOTE: Typable commands can also be remapped, remember to keep the `:` prefix to indicate it's a typable command.
28−> NOTE: Bindings can be nested, to create (or edit) minor modes: `g = { a = "code_action"}` adds a new entry to
28+## Minor modes
30+Minor modes are accessed by pressing a key (usually from normal mode), giving access to dedicated bindings. Bindings
31+can be modified or added by nesting definitions.
35+k = "normal_mode" # Maps `jk` to exit insert mode
38+a = "code_action" # Maps `ga` to show possible code actions
40+# invert `j` and `k` in view mode
45+# create a new minor mode bound to `+`
47+m = ":run-shell-command make"
48+c = ":run-shell-command cargo build"
49+t = ":run-shell-command cargo test"
52+## Special keys and modifiers
31Ctrl, Shift and Alt modifiers are encoded respectively with the prefixes
54Ctrl, Shift and Alt modifiers are encoded respectively with the prefixes
32`C-`, `S-` and `A-`. Special keys are encoded as follows:
55`C-`, `S-` and `A-`. Special keys are encoded as follows: