on master help sign in
Update keybind docs for treesitter, view mode (#1628)
f0cd02dGokul Soumya
book/src/keymap.md+9−10
@@ -89,6 +89,7 @@
89| <code>Alt-&#124;</code> | Pipe each selection into shell command, ignoring output | `shell_pipe_to` |
89| <code>Alt-&#124;</code> | Pipe each selection into shell command, ignoring output | `shell_pipe_to` |
90| `!` | Run shell command, inserting output before each selection | `shell_insert_output` |
90| `!` | Run shell command, inserting output before each selection | `shell_insert_output` |
91| `Alt-!` | Run shell command, appending output after each selection | `shell_append_output` |
91| `Alt-!` | Run shell command, appending output after each selection | `shell_append_output` |
92+| `$` | Pipe each selection into shell command, keep selections where command returned 0 | `shell_keep_pipe` |
92
93
93
94
94### Selection manipulation
95### Selection manipulation
@@ -113,16 +114,14 @@
113| `%` | Select entire file | `select_all` |
114| `%` | Select entire file | `select_all` |
114| `x` | Select current line, if already selected, extend to next line | `extend_line` |
115| `x` | Select current line, if already selected, extend to next line | `extend_line` |
115| `X` | Extend selection to line bounds (line-wise selection) | `extend_to_line_bounds` |
116| `X` | Extend selection to line bounds (line-wise selection) | `extend_to_line_bounds` |
116−| | Expand selection to parent syntax node TODO: pick a key (**TS**) | `expand_selection` |
117| `J` | Join lines inside selection | `join_selections` |
117| `J` | Join lines inside selection | `join_selections` |
118| `K` | Keep selections matching the regex | `keep_selections` |
118| `K` | Keep selections matching the regex | `keep_selections` |
119| `Alt-K` | Remove selections matching the regex | `remove_selections` |
119| `Alt-K` | Remove selections matching the regex | `remove_selections` |
120−| `$` | Pipe each selection into shell command, keep selections where command returned 0 | `shell_keep_pipe` |
121| `Ctrl-c` | Comment/uncomment the selections | `toggle_comments` |
120| `Ctrl-c` | Comment/uncomment the selections | `toggle_comments` |
122−| `Alt-k` | Expand selection to parent syntax node | `expand_selection` |
121+| `Alt-k` | Expand selection to parent syntax node (**TS**) | `expand_selection` |
123−| `Alt-j` | Shrink syntax tree object selection | `shrink_selection` |
122+| `Alt-j` | Shrink syntax tree object selection (**TS**) | `shrink_selection` |
124−| `Alt-h` | Select previous sibling node in syntax tree | `select_prev_sibling` |
123+| `Alt-h` | Select previous sibling node in syntax tree (**TS**) | `select_prev_sibling` |
125−| `Alt-l` | Select next sibling node in syntax tree | `select_next_sibling` |
124+| `Alt-l` | Select next sibling node in syntax tree (**TS**) | `select_next_sibling` |
126
125
127### Search
126### Search
128
127
@@ -155,10 +154,10 @@ over text and not actively editing it).
155| `m` | Align the line to the middle of the screen (horizontally) | `align_view_middle` |
154| `m` | Align the line to the middle of the screen (horizontally) | `align_view_middle` |
156| `j` , `down` | Scroll the view downwards | `scroll_down` |
155| `j` , `down` | Scroll the view downwards | `scroll_down` |
157| `k` , `up` | Scroll the view upwards | `scroll_up` |
156| `k` , `up` | Scroll the view upwards | `scroll_up` |
158−| `f` | Move page down | `page_down` |
157+| `Ctrl-f` | Move page down | `page_down` |
159−| `b` | Move page up | `page_up` |
158+| `Ctrl-b` | Move page up | `page_up` |
160−| `d` | Move half page down | `half_page_down` |
159+| `Ctrl-d` | Move half page down | `half_page_down` |
161−| `u` | Move half page up | `half_page_up` |
160+| `Ctrl-u` | Move half page up | `half_page_up` |
162
161
163#### Goto mode
162#### Goto mode
164
163