Remove the task Project tab; ⌘P selects the project

This commit is contained in:
Ian Gulliver
2026-10-21 20:53:54 -07:00
parent f0213e2aed
commit e6da67087e
10 changed files with 230 additions and 281 deletions
+5 -5
View File
@@ -17,10 +17,10 @@ func runGo(_ key: String, _ store: Store, _ overlays: Overlays) {
createTask(project.id, .init(), store, overlays)
}
case "p":
overlays.window?.makeFirstResponder(nil)
overlays.projectFocus += 1
if let id = store.selectedTaskId {
store.sheet = Sheet(owner: .task(id), view: .tab(.project))
overlays.switcher?.close()
store.sheet = nil
if let project = store.focusedProject() ?? store.projects.first {
store.focusProject(project.id)
}
case "l":
overlays.switcher?.close()
@@ -71,7 +71,7 @@ private let shortcuts: [(String, [(String, String)])] = [
("Anywhere", [
("⌘K", "Switch task, or create one"),
("⌘N", "New task in the current project"),
("⌘P", "Open the Project tab"),
("⌘P", "Show the current project's dashboard"),
("⌘L", "Open the Lead tab and its composer, closing any view opened over a pane"),
("⌘S", "Merge the right pane's task, or discard it when the agent suggests discarding"),
("⌘[ ⌘]", "Bring the previous or next server's window forward"),