From 54dbc1bd44e304132b5343bf7a8b4fb4e770c286 Mon Sep 17 00:00:00 2001 From: Nikita Revenco <154856872+NikitaRevenco@users.noreply.github.com> Date: Mon, 3 Feb 2025 21:43:32 +0000 Subject: [PATCH] feat: restore default `~` keymap for switch to alternate text --- book/src/keymap.md | 1 + helix-term/src/keymap/default.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/book/src/keymap.md b/book/src/keymap.md index 3707f828b..82a0fb6e3 100644 --- a/book/src/keymap.md +++ b/book/src/keymap.md @@ -70,6 +70,7 @@ Normal mode is the default mode when you launch helix. You can return to it from | ----- | ----------- | ------- | | `r` | Replace with a character | `replace` | | `R` | Replace with yanked text | `replace_with_yanked` | +| `~` | Switch case of the selected text | `switch_to_alternate_case`| | `i` | Insert before selection | `insert_mode` | | `a` | Insert after selection (append) | `append_mode` | | `I` | Insert at the start of the line | `insert_at_line_start` | diff --git a/helix-term/src/keymap/default.rs b/helix-term/src/keymap/default.rs index 1643ca185..f801dbbd1 100644 --- a/helix-term/src/keymap/default.rs +++ b/helix-term/src/keymap/default.rs @@ -19,6 +19,7 @@ pub fn default() -> HashMap { "R" => replace_with_yanked, "A-." => repeat_last_motion, + "~" => switch_to_alternate_case, "`" => { "Case" "a" => switch_to_alternate_case, "l" => switch_to_lowercase,