fix(keybindings): name the switcher after the command, not the home tile

The keybindings page read ToggleSwitcher's name off the home screen's
string while TogglePalette read its own off the menu bar, so the one
action that appears in both places was the one whose name could drift.
Point it at CmdSwitchWorkspace, the name the palette shows, and pin it
with the assertion the page's other names already carry.
This commit is contained in:
l0ng-ai
2026-08-08 19:56:42 +07:00
parent fc09bb0a92
commit dd5744bbf7
+2 -1
View File
@@ -489,7 +489,7 @@ fn authored_entry(action: &str) -> Option<(CommandGroup, String)> {
),
"ToggleSwitcher" => (
CommandGroup::Workspaces,
t(L10nKey::HomeSwitchWorkspace).to_string(),
t(L10nKey::CmdSwitchWorkspace).to_string(),
),
"IncreaseFontSize" => (
CommandGroup::View,
@@ -997,6 +997,7 @@ mod tests {
assert_eq!(action_entry("CloseActiveTab").1, "Close Pane / Tab");
assert_eq!(action_entry("ClearScrollback").1, "Clear Scrollback");
assert_eq!(action_entry("TogglePalette").1, "Command Palette…");
assert_eq!(action_entry("ToggleSwitcher").1, "Switch Workspace…");
// The numbered families are templated, not nine strings per locale.
assert_eq!(action_entry("ActivateTab3").1, "Go to Tab 3");
assert_eq!(action_entry("SelectWorkspace7").1, "Go to Workspace 7");