mirror of https://github.com/helix-editor/helix
feat!: remap switch_to_alternate_case from ~ to `a
parent
f8b9497dbc
commit
c1c63a0e55
|
@ -356,7 +356,7 @@ impl MappableCommand {
|
||||||
extend_prev_char, "Extend to previous occurrence of char",
|
extend_prev_char, "Extend to previous occurrence of char",
|
||||||
repeat_last_motion, "Repeat last motion",
|
repeat_last_motion, "Repeat last motion",
|
||||||
replace, "Replace with new char",
|
replace, "Replace with new char",
|
||||||
switch_case, "Switch to aLTERNATE cASE",
|
switch_to_alternate_case, "Switch to aLTERNATE cASE",
|
||||||
switch_to_uppercase, "Switch to UPPERCASE",
|
switch_to_uppercase, "Switch to UPPERCASE",
|
||||||
switch_to_lowercase, "Switch to lowercase",
|
switch_to_lowercase, "Switch to lowercase",
|
||||||
switch_to_pascal_case, "Switch to PascalCase",
|
switch_to_pascal_case, "Switch to PascalCase",
|
||||||
|
@ -1803,7 +1803,7 @@ fn switch_to_uppercase(cx: &mut Context) {
|
||||||
switch_case_impl(cx, |chars| to_uppercase(chars))
|
switch_case_impl(cx, |chars| to_uppercase(chars))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn switch_case(cx: &mut Context) {
|
fn switch_to_alternate_case(cx: &mut Context) {
|
||||||
switch_case_impl(cx, |chars| to_alternate_case(chars))
|
switch_case_impl(cx, |chars| to_alternate_case(chars))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,8 +19,8 @@ pub fn default() -> HashMap<Mode, KeyTrie> {
|
||||||
"R" => replace_with_yanked,
|
"R" => replace_with_yanked,
|
||||||
"A-." => repeat_last_motion,
|
"A-." => repeat_last_motion,
|
||||||
|
|
||||||
"~" => switch_case,
|
|
||||||
"`" => { "Case"
|
"`" => { "Case"
|
||||||
|
"a" => switch_to_alternate_case,
|
||||||
"l" => switch_to_lowercase,
|
"l" => switch_to_lowercase,
|
||||||
"u" => switch_to_uppercase,
|
"u" => switch_to_uppercase,
|
||||||
"p" => switch_to_pascal_case,
|
"p" => switch_to_pascal_case,
|
||||||
|
|
Loading…
Reference in New Issue