aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/keymap.rs
diff options
context:
space:
mode:
authorDaniel S Poulin2022-03-08 05:02:03 +0000
committerGitHub2022-03-08 05:02:03 +0000
commit24352b2729559533948da92098529e59cd6562fd (patch)
tree306f9f52690b9421faa782b994a0ab51b1e3ada3 /helix-term/src/keymap.rs
parentbde0307c8795d521dce4be849f38bc1808f1b9a2 (diff)
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
Diffstat (limited to 'helix-term/src/keymap.rs')
-rw-r--r--helix-term/src/keymap.rs8
1 files changed, 4 insertions, 4 deletions
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,