Repository navigation
Turn a single workspace into a group (promote in place) #5633
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
468315f
84cdbbb
9b38aa9
5630220
6b763de
f50a194
7bcf7fd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -107,6 +107,7 @@ enum KeyboardShortcutSettings { | |
| case closeWorkspace | ||
| case groupSelectedWorkspaces | ||
| case toggleFocusedWorkspaceGroupCollapsed | ||
| case renameFocusedWorkspaceGroup | ||
| case reopenClosedBrowserPanel | ||
| case newSurface | ||
| case toggleTerminalCopyMode | ||
|
|
@@ -207,6 +208,7 @@ enum KeyboardShortcutSettings { | |
| case .closeWorkspace: return String(localized: "shortcut.closeWorkspace.label", defaultValue: "Close Workspace") | ||
| case .groupSelectedWorkspaces: return String(localized: "shortcut.groupSelectedWorkspaces.label", defaultValue: "Group Selected Workspaces") | ||
| case .toggleFocusedWorkspaceGroupCollapsed: return String(localized: "shortcut.toggleFocusedWorkspaceGroupCollapsed.label", defaultValue: "Toggle Focused Workspace's Group Collapse") | ||
| case .renameFocusedWorkspaceGroup: return String(localized: "shortcut.renameFocusedWorkspaceGroup.label", defaultValue: "Rename Focused Workspace's Group") | ||
| case .reopenClosedBrowserPanel: return String(localized: "menu.history.reopenLastClosed", defaultValue: "Reopen Last Closed") | ||
| case .newSurface: return String(localized: "shortcut.newSurface.label", defaultValue: "New Surface") | ||
| case .toggleTerminalCopyMode: return String(localized: "shortcut.toggleTerminalCopyMode.label", defaultValue: "Toggle Terminal Copy Mode") | ||
|
|
@@ -366,6 +368,13 @@ enum KeyboardShortcutSettings { | |
| // mnemonic. No-ops gracefully when the focused workspace | ||
| // isn't in a group. | ||
| return StoredShortcut(key: ".", command: true, shift: false, option: false, control: true) | ||
| case .renameFocusedWorkspaceGroup: | ||
| // Cmd+Shift+P. Shares the chord with commandPalettePrevious, | ||
| // but that only acts while the command palette is OPEN (it's | ||
| // in-palette navigation, dispatched earlier), so this fires | ||
| // only when the palette is closed. No-ops gracefully when the | ||
| // focused workspace isn't in a group. Rebind in Settings. | ||
| return StoredShortcut(key: "p", command: true, shift: true, option: false, control: false) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Rename group shortcut blockedMedium Severity The new Additional Locations (1)Reviewed by Cursor Bugbot for commit 7bcf7fd. Configure here. |
||
| case .reopenClosedBrowserPanel: | ||
| return StoredShortcut(key: "t", command: true, shift: true, option: false, control: false) | ||
| case .focusLeft: | ||
|
|
||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When a promoted workspace is the group anchor, this special-case only fixes the command-palette rename flow. Other rename entrypoints still call
setCustomTitledirectly (for example socket/CLIworkspace.renameinSources/TerminalController.swift:5446and the workspace rename alert inSources/AppDelegate.swift:12436), but anchor display is sourced fromgroup.name(TabManager.resolvedWorkspaceDisplayTitle), so those renames report success while the sidebar header/window title keep the old group name. Please move this anchor-aware behavior into a shared TabManager action used by every workspace rename path.Useful? React with 👍 / 👎.