diff options
author | Ivan Tham | 2022-04-29 06:49:15 +0000 |
---|---|---|
committer | GitHub | 2022-04-29 06:49:15 +0000 |
commit | ab6a00e196832d3a2b942641f914a0c9727129e4 (patch) | |
tree | 7ef3cf83d276e01aa36b6df71a835e9b7b90b679 /helix-term/src/keymap | |
parent | e10cf0851633bba1424b9211932a624c0f4c9a72 (diff) |
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?
Diffstat (limited to 'helix-term/src/keymap')
-rw-r--r-- | helix-term/src/keymap/default.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/helix-term/src/keymap/default.rs b/helix-term/src/keymap/default.rs index 10a43d12..da5127b2 100644 --- a/helix-term/src/keymap/default.rs +++ b/helix-term/src/keymap/default.rs @@ -79,10 +79,10 @@ pub fn default() -> HashMap<Mode, Keymap> { "S" => split_selection, ";" => collapse_selection, "A-;" => flip_selections, - "A-k" | "A-up" => expand_selection, - "A-j" | "A-down" => shrink_selection, - "A-h" | "A-left" => select_prev_sibling, - "A-l" | "A-right" => select_next_sibling, + "A-o" | "A-up" => expand_selection, + "A-i" | "A-down" => shrink_selection, + "A-p" | "A-left" => select_prev_sibling, + "A-n" | "A-right" => select_next_sibling, "%" => select_all, "x" => extend_line, |