aboutsummaryrefslogtreecommitdiff
path: root/book/src
diff options
context:
space:
mode:
authorGokul Soumya2021-07-24 10:14:25 +0000
committerBlaž Hrastnik2021-07-24 11:11:19 +0000
commit6a8a01df6b54f7c169b2c22d4e057eb4925c8a1b (patch)
tree2b41cb2d3a48af23fac13a9ab0846788fc74dadb /book/src
parent48e344a2a813b875ca813be726387692b7ba0762 (diff)
Add missing keybinds to docs
Diffstat (limited to 'book/src')
-rw-r--r--book/src/keymap.md72
1 files changed, 41 insertions, 31 deletions
diff --git a/book/src/keymap.md b/book/src/keymap.md
index 5d6e5795..d1d23a6d 100644
--- a/book/src/keymap.md
+++ b/book/src/keymap.md
@@ -41,29 +41,29 @@
### Changes
-| Key | Description |
-| ----- | ----------- |
-| `r` | Replace with a character |
-| `R` | Replace with yanked text |
-| `~` | Switch case of the selected text |
-| `\`` | Set the selected text to upper case |
-| `Alt-\`` | Set the selected text to lower case |
-| `i` | Insert before selection |
-| `a` | Insert after selection (append) |
-| `I` | Insert at the start of the line |
-| `A` | Insert at the end of the line |
-| `o` | Open new line below selection |
-| `o` | Open new line above selection |
-| `u` | Undo change |
-| `U` | Redo change |
-| `y` | Yank selection |
-| `p` | Paste after selection |
-| `P` | Paste before selection |
-| `>` | Indent selection |
-| `<` | Unindent selection |
-| `=` | Format selection |
-| `d` | Delete selection |
-| `c` | Change selection (delete and enter insert mode) |
+| Key | Description |
+| ----- | ----------- |
+| `r` | Replace with a character |
+| `R` | Replace with yanked text |
+| `~` | Switch case of the selected text |
+| `` ` `` | Set the selected text to lower case |
+| `` Alt-` `` | Set the selected text to upper case |
+| `i` | Insert before selection |
+| `a` | Insert after selection (append) |
+| `I` | Insert at the start of the line |
+| `A` | Insert at the end of the line |
+| `o` | Open new line below selection |
+| `o` | Open new line above selection |
+| `u` | Undo change |
+| `U` | Redo change |
+| `y` | Yank selection |
+| `p` | Paste after selection |
+| `P` | Paste before selection |
+| `>` | Indent selection |
+| `<` | Unindent selection |
+| `=` | Format selection |
+| `d` | Delete selection |
+| `c` | Change selection (delete and enter insert mode) |
### Selection manipulation
@@ -78,11 +78,19 @@
| `x` | Select current line, if already selected, extend to next line |
| `X` | Extend selection to line bounds (line-wise selection) |
| | Expand selection to parent syntax node TODO: pick a key |
-| `J` | join lines inside selection |
-| `K` | keep selections matching the regex TODO: overlapped by hover help |
-| `Space` | keep only the primary selection TODO: overlapped by space mode |
+| `J` | Join lines inside selection |
+| `K` | Keep selections matching the regex TODO: overlapped by hover help |
+| `Space` | Keep only the primary selection TODO: overlapped by space mode |
| `Ctrl-c` | Comment/uncomment the selections |
+### Insert Mode
+
+| Key | Description |
+| ----- | ----------- |
+| `Escape` | Switch to normal mode |
+| `Ctrl-x` | Autocomplete |
+| `Ctrl-w` | Delete previous word |
+
### Search
> 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.
| `f` | Open file picker |
| `b` | Open buffer picker |
| `s` | Open symbol picker (current document) |
+| `a` | Apply code action |
+| `'` | Open last fuzzy picker |
| `w` | Enter [window mode](#window-mode) |
| `space` | Keep primary selection TODO: it's here because space mode replaced it |
-| `p` | paste system clipboard after selections |
-| `P` | paste system clipboard before selections |
-| `y` | join and yank selections to clipboard |
-| `Y` | yank main selection to clipboard |
-| `R` | replace selections by clipboard contents |
+| `p` | Paste system clipboard after selections |
+| `P` | Paste system clipboard before selections |
+| `y` | Join and yank selections to clipboard |
+| `Y` | Yank main selection to clipboard |
+| `R` | Replace selections by clipboard contents |
# Picker