Fix inconsistent Tab/Workspace terminology in settings and menus (#187)
Unify user-facing labels to consistently use "Workspace" instead of mixing "Tab" and "Workspace": - Settings: "New Tab" → "New Workspace" (keyboard shortcuts section) - Menu: "Tab 1"–"Tab 9" → "Workspace 1"–"Workspace 9" (Cmd+1–9) - Sidebar context menu: "Close Tabs" → "Close Workspaces", "Close Tabs Below/Above" → "Close Workspaces Below/Above" Fixes https://github.com/manaflow-ai/cmux/issues/182 Co-authored-by: austinpower1258 <austinwang115@gmail.com>
This commit is contained in:
parent
1650ba372f
commit
573cec4a75
3 changed files with 5 additions and 5 deletions
|
|
@ -1988,7 +1988,7 @@ private struct TabItemView: View {
|
|||
|
||||
Divider()
|
||||
|
||||
Button("Close Tabs") {
|
||||
Button("Close Workspaces") {
|
||||
closeTabs(targetIds, allowPinned: true)
|
||||
}
|
||||
.disabled(targetIds.isEmpty)
|
||||
|
|
@ -1998,12 +1998,12 @@ private struct TabItemView: View {
|
|||
}
|
||||
.disabled(tabManager.tabs.count <= 1 || targetIds.count == tabManager.tabs.count)
|
||||
|
||||
Button("Close Tabs Below") {
|
||||
Button("Close Workspaces Below") {
|
||||
closeTabsBelow(tabId: tab.id)
|
||||
}
|
||||
.disabled(index >= tabManager.tabs.count - 1)
|
||||
|
||||
Button("Close Tabs Above") {
|
||||
Button("Close Workspaces Above") {
|
||||
closeTabsAbove(tabId: tab.id)
|
||||
}
|
||||
.disabled(index == 0)
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ enum KeyboardShortcutSettings {
|
|||
var label: String {
|
||||
switch self {
|
||||
case .toggleSidebar: return "Toggle Sidebar"
|
||||
case .newTab: return "New Tab"
|
||||
case .newTab: return "New Workspace"
|
||||
case .newWindow: return "New Window"
|
||||
case .showNotifications: return "Show Notifications"
|
||||
case .jumpToUnread: return "Jump to Latest Unread"
|
||||
|
|
|
|||
|
|
@ -467,7 +467,7 @@ struct cmuxApp: App {
|
|||
|
||||
// Cmd+1 through Cmd+9 for workspace selection (9 = last workspace)
|
||||
ForEach(1...9, id: \.self) { number in
|
||||
Button("Tab \(number)") {
|
||||
Button("Workspace \(number)") {
|
||||
let manager = (AppDelegate.shared?.tabManager ?? tabManager)
|
||||
if let targetIndex = WorkspaceShortcutMapper.workspaceIndex(forCommandDigit: number, workspaceCount: manager.tabs.count) {
|
||||
manager.selectTab(at: targetIndex)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue