From c8d79cc3946d6388227339c060000760c4910fe5 Mon Sep 17 00:00:00 2001 From: Daniel Poulin Date: Tue, 1 Mar 2022 00:03:25 -0500 Subject: [PATCH] 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. --- helix-term/src/keymap.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/helix-term/src/keymap.rs b/helix-term/src/keymap.rs index 0147f58e1473..91eb5fd3c593 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,