mirror of
https://github.com/l0ng-ai/tty7.git
synced 2026-09-22 00:02:23 +00:00
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:
+2
-1
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user