From 0c05447d49103e96fc21910d336bdc75ab96338d Mon Sep 17 00:00:00 2001 From: Daniel S Poulin Date: Sat, 21 May 2022 21:33:11 -0400 Subject: Add shrink equivalent of extend_to_line_bounds (#2450) * Add shrink equivalent of extend_to_line_bounds * Add a check for being past rope end in end position calc * Include the EOL character in calculations * Bind to `A-x` for now * Document new keybind--- helix-term/src/keymap/default.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helix-term/src/keymap/default.rs') diff --git a/helix-term/src/keymap/default.rs b/helix-term/src/keymap/default.rs index a887f4b3..0f0b09dd 100644 --- a/helix-term/src/keymap/default.rs +++ b/helix-term/src/keymap/default.rs @@ -87,7 +87,7 @@ pub fn default() -> HashMap { "%" => select_all, "x" => extend_line, "X" => extend_to_line_bounds, - // crop_to_whole_line + "A-x" => shrink_to_line_bounds, "m" => { "Match" "m" => match_brackets, -- cgit v1.2.3-70-g09d2