From 5aaaf137cbe4dd358e7f81d259fec1722856f69f Mon Sep 17 00:00:00 2001 From: Termina94 Date: Thu, 21 Jul 2022 19:11:24 +0100 Subject: [PATCH] add sticky mode for 'alter window' pane --- helix-term/src/keymap/default.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/helix-term/src/keymap/default.rs b/helix-term/src/keymap/default.rs index 47182a04b..3031c1588 100644 --- a/helix-term/src/keymap/default.rs +++ b/helix-term/src/keymap/default.rs @@ -27,13 +27,21 @@ pub fn default() -> HashMap { "end" => goto_line_end, "A-w" => { "Alter Window" - "A-w"|"A-left" => shrink_buffer_width, + "A-h"|"A-left" => shrink_buffer_width, "A-l"|"A-right" => grow_buffer_width, "A-j"|"A-down" => shrink_buffer_height, "A-k"|"A-up" => grow_buffer_height, "A-f" => buffer_expand_mode, }, + "A-W" => { "Alter Window" sticky=true + "h"|"left" => shrink_buffer_width, + "l"|"right" => grow_buffer_width, + "j"|"down" => shrink_buffer_height, + "k"|"up" => grow_buffer_height, + "f" => buffer_expand_mode, + }, + "w" => move_next_word_start, "b" => move_prev_word_start, "e" => move_next_word_end,