on master help sign in
Make A-hjkl tree-sitter nav A-pion (#2205)
ab6a00eIvan Tham
book/src/keymap.md+4−4
@@ -111,10 +111,10 @@
111| `K` | Keep selections matching the regex | `keep_selections` |
111| `K` | Keep selections matching the regex | `keep_selections` |
112| `Alt-K` | Remove selections matching the regex | `remove_selections` |
112| `Alt-K` | Remove selections matching the regex | `remove_selections` |
113| `Ctrl-c` | Comment/uncomment the selections | `toggle_comments` |
113| `Ctrl-c` | Comment/uncomment the selections | `toggle_comments` |
114−| `Alt-k`, `Alt-up` | Expand selection to parent syntax node (**TS**) | `expand_selection` |
114+| `Alt-o`, `Alt-up` | Expand selection to parent syntax node (**TS**) | `expand_selection` |
115−| `Alt-j`, `Alt-down` | Shrink syntax tree object selection (**TS**) | `shrink_selection` |
115+| `Alt-i`, `Alt-down` | Shrink syntax tree object selection (**TS**) | `shrink_selection` |
116−| `Alt-h`, `Alt-left` | Select previous sibling node in syntax tree (**TS**) | `select_prev_sibling` |
116+| `Alt-p`, `Alt-left` | Select previous sibling node in syntax tree (**TS**) | `select_prev_sibling` |
117−| `Alt-l`, `Alt-right` | Select next sibling node in syntax tree (**TS**) | `select_next_sibling` |
117+| `Alt-n`, `Alt-right` | Select next sibling node in syntax tree (**TS**) | `select_next_sibling` |
118
118
119### Search
119### Search
120
120
helix-term/src/keymap/default.rs+4−4
@@ -79,10 +79,10 @@ pub fn default() -> HashMap<Mode, Keymap> {
79 "S" => split_selection,
79 "S" => split_selection,
80 ";" => collapse_selection,
80 ";" => collapse_selection,
81 "A-;" => flip_selections,
81 "A-;" => flip_selections,
82− "A-k" | "A-up" => expand_selection,
82+ "A-o" | "A-up" => expand_selection,
83− "A-j" | "A-down" => shrink_selection,
83+ "A-i" | "A-down" => shrink_selection,
84− "A-h" | "A-left" => select_prev_sibling,
84+ "A-p" | "A-left" => select_prev_sibling,
85− "A-l" | "A-right" => select_next_sibling,
85+ "A-n" | "A-right" => select_next_sibling,
86
86
87 "%" => select_all,
87 "%" => select_all,
88 "x" => extend_line,
88 "x" => extend_line,