From ab6a00e196832d3a2b942641f914a0c9727129e4 Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Fri, 29 Apr 2022 14:49:15 +0800 Subject: Make A-hjkl tree-sitter nav A-pion (#2205) A-hl currently is not very consistent with hl when next object is selected, since it may go up/down or left/right and this behavior is confusing such that some people think it should swap the keys with A-jk, so it is better to use A-pn since that only specifies two direction. A-jk have the same issue as in it usually moves right and is not consistent with the behavior of jk so people may think A-hl is better, maybe A-oi is better here since A-hl will be swapped to A-pn, A-oi can convey the meaning of in and out, similar to some window manager keys?--- book/src/keymap.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'book/src') diff --git a/book/src/keymap.md b/book/src/keymap.md index 2abe4f74..77682a38 100644 --- a/book/src/keymap.md +++ b/book/src/keymap.md @@ -111,10 +111,10 @@ | `K` | Keep selections matching the regex | `keep_selections` | | `Alt-K` | Remove selections matching the regex | `remove_selections` | | `Ctrl-c` | Comment/uncomment the selections | `toggle_comments` | -| `Alt-k`, `Alt-up` | Expand selection to parent syntax node (**TS**) | `expand_selection` | -| `Alt-j`, `Alt-down` | Shrink syntax tree object selection (**TS**) | `shrink_selection` | -| `Alt-h`, `Alt-left` | Select previous sibling node in syntax tree (**TS**) | `select_prev_sibling` | -| `Alt-l`, `Alt-right` | Select next sibling node in syntax tree (**TS**) | `select_next_sibling` | +| `Alt-o`, `Alt-up` | Expand selection to parent syntax node (**TS**) | `expand_selection` | +| `Alt-i`, `Alt-down` | Shrink syntax tree object selection (**TS**) | `shrink_selection` | +| `Alt-p`, `Alt-left` | Select previous sibling node in syntax tree (**TS**) | `select_prev_sibling` | +| `Alt-n`, `Alt-right` | Select next sibling node in syntax tree (**TS**) | `select_next_sibling` | ### Search -- cgit v1.2.3-70-g09d2