aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/keymap/default.rs
diff options
context:
space:
mode:
authorDaniel S Poulin2022-05-22 01:33:11 +0000
committerGitHub2022-05-22 01:33:11 +0000
commit0c05447d49103e96fc21910d336bdc75ab96338d (patch)
tree2763895357e870ed766c039617ef6830a9e09b44 /helix-term/src/keymap/default.rs
parent5bcb31a6dfb007b31b6ba38c5a1455727904ba27 (diff)
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
Diffstat (limited to 'helix-term/src/keymap/default.rs')
-rw-r--r--helix-term/src/keymap/default.rs2
1 files changed, 1 insertions, 1 deletions
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<Mode, Keymap> {
"%" => 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,