add sticky mode for 'alter window' pane

This commit is contained in:
Termina94 2022-07-21 19:11:24 +01:00
parent 6891014241
commit 5aaaf137cb

View File

@ -27,13 +27,21 @@ pub fn default() -> HashMap<Mode, KeyTrie> {
"end" => goto_line_end, "end" => goto_line_end,
"A-w" => { "Alter Window" "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-l"|"A-right" => grow_buffer_width,
"A-j"|"A-down" => shrink_buffer_height, "A-j"|"A-down" => shrink_buffer_height,
"A-k"|"A-up" => grow_buffer_height, "A-k"|"A-up" => grow_buffer_height,
"A-f" => buffer_expand_mode, "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, "w" => move_next_word_start,
"b" => move_prev_word_start, "b" => move_prev_word_start,
"e" => move_next_word_end, "e" => move_next_word_end,