From 24352b2729559533948da92098529e59cd6562fd Mon Sep 17 00:00:00 2001 From: Daniel S Poulin Date: Tue, 8 Mar 2022 00:02:03 -0500 Subject: Add arrow key mappings for tree-sitter parent/child/sibling nav (#1724) * Add arrow key mappings for tree-sitter parent/child/sibling nav This helps my use case, where I use a non-qwerty layout with a programmable mechanical keyboard, and use a layer switching key (think fn) to send left down up right from the traditional hjkl positions. * Add new bindings to docs--- helix-term/src/keymap.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'helix-term') diff --git a/helix-term/src/keymap.rs b/helix-term/src/keymap.rs index a203b4e2..1fe1f633 100644 --- a/helix-term/src/keymap.rs +++ b/helix-term/src/keymap.rs @@ -584,10 +584,10 @@ impl Default for Keymaps { "S" => split_selection, ";" => collapse_selection, "A-;" => flip_selections, - "A-k" => expand_selection, - "A-j" => shrink_selection, - "A-h" => select_prev_sibling, - "A-l" => select_next_sibling, + "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, "%" => select_all, "x" => extend_line, -- cgit v1.2.3-70-g09d2