Skip to content

Commit

Permalink
Add arrow key mappings for tree-sitter parent/child/sibling nav
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
EpocSquadron committed Mar 3, 2022
1 parent 0ff3e3e commit c8d79cc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions helix-term/src/keymap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c8d79cc

Please # to comment.