on master help sign in
Add missing keybinds to docs
commit6a8a01df6b54f7c169b2c22d4e057eb4925c8a1b authorGokul Soumya <gokulps15@gmail.com> dateSat 24 Jul 2021, 15:44 (5 years ago) parent48e344a
1 file changed+41−31
book/src/keymap.md+41−31
book/src/keymap.md+41−31
@@ -41,29 +41,29 @@
4141
4242### Changes
4343
44−| Key | Description |
45−| ----- | ----------- |
46−| `r` | Replace with a character |
47−| `R` | Replace with yanked text |
48−| `~` | Switch case of the selected text |
49−| `\`` | Set the selected text to upper case |
50−| `Alt-\`` | Set the selected text to lower case |
51−| `i` | Insert before selection |
52−| `a` | Insert after selection (append) |
53−| `I` | Insert at the start of the line |
54−| `A` | Insert at the end of the line |
55−| `o` | Open new line below selection |
56−| `o` | Open new line above selection |
57−| `u` | Undo change |
58−| `U` | Redo change |
59−| `y` | Yank selection |
60−| `p` | Paste after selection |
61−| `P` | Paste before selection |
62−| `>` | Indent selection |
63−| `<` | Unindent selection |
64−| `=` | Format selection |
65−| `d` | Delete selection |
66−| `c` | Change selection (delete and enter insert mode) |
44+| Key | Description |
45+| ----- | ----------- |
46+| `r` | Replace with a character |
47+| `R` | Replace with yanked text |
48+| `~` | Switch case of the selected text |
49+| `` ` `` | Set the selected text to lower case |
50+| `` Alt-` `` | Set the selected text to upper case |
51+| `i` | Insert before selection |
52+| `a` | Insert after selection (append) |
53+| `I` | Insert at the start of the line |
54+| `A` | Insert at the end of the line |
55+| `o` | Open new line below selection |
56+| `o` | Open new line above selection |
57+| `u` | Undo change |
58+| `U` | Redo change |
59+| `y` | Yank selection |
60+| `p` | Paste after selection |
61+| `P` | Paste before selection |
62+| `>` | Indent selection |
63+| `<` | Unindent selection |
64+| `=` | Format selection |
65+| `d` | Delete selection |
66+| `c` | Change selection (delete and enter insert mode) |
6767
6868### Selection manipulation
6969
@@ -78,11 +78,19 @@
7878| `x` | Select current line, if already selected, extend to next line |
7979| `X` | Extend selection to line bounds (line-wise selection) |
8080| | Expand selection to parent syntax node TODO: pick a key |
81−| `J` | join lines inside selection |
82−| `K` | keep selections matching the regex TODO: overlapped by hover help |
83−| `Space` | keep only the primary selection TODO: overlapped by space mode |
81+| `J` | Join lines inside selection |
82+| `K` | Keep selections matching the regex TODO: overlapped by hover help |
83+| `Space` | Keep only the primary selection TODO: overlapped by space mode |
8484| `Ctrl-c` | Comment/uncomment the selections |
8585
86+### Insert Mode
87+
88+| Key | Description |
89+| ----- | ----------- |
90+| `Escape` | Switch to normal mode |
91+| `Ctrl-x` | Autocomplete |
92+| `Ctrl-w` | Delete previous word |
93+
8694### Search
8795
8896> TODO: The search implementation isn't ideal yet -- we don't support searching
@@ -190,13 +198,15 @@ This layer is a kludge of mappings I had under leader key in neovim.
190198| `f` | Open file picker |
191199| `b` | Open buffer picker |
192200| `s` | Open symbol picker (current document) |
201+| `a` | Apply code action |
202+| `'` | Open last fuzzy picker |
193203| `w` | Enter [window mode](#window-mode) |
194204| `space` | Keep primary selection TODO: it's here because space mode replaced it |
195−| `p` | paste system clipboard after selections |
196−| `P` | paste system clipboard before selections |
197−| `y` | join and yank selections to clipboard |
198−| `Y` | yank main selection to clipboard |
199−| `R` | replace selections by clipboard contents |
205+| `p` | Paste system clipboard after selections |
206+| `P` | Paste system clipboard before selections |
207+| `y` | Join and yank selections to clipboard |
208+| `Y` | Yank main selection to clipboard |
209+| `R` | Replace selections by clipboard contents |
200210
201211# Picker
202212