feat: restore default `~` keymap for switch to alternate text

pull/12043/head
Nikita Revenco 2025-02-03 21:43:32 +00:00
parent fdd1a1c78f
commit 54dbc1bd44
2 changed files with 2 additions and 0 deletions

View File

@ -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` |

View File

@ -19,6 +19,7 @@ pub fn default() -> HashMap<Mode, KeyTrie> {
"R" => replace_with_yanked,
"A-." => repeat_last_motion,
"~" => switch_to_alternate_case,
"`" => { "Case"
"a" => switch_to_alternate_case,
"l" => switch_to_lowercase,