Commit cc2ed5c2b6

cc2ed5c2b61a55a3a4d932add582f53e496c6d2b

parent: 7c1313ad9f

Verified · cmc

cmc <hello@cleberg.net> · 2026-11-26 00:37 UTC

One way to end a sheet: an action and Cancel, or Done

Sheets that decide something end with their actions and Cancel: the conflict
sheet (was Decide Later / Later), sync conflict copies and recovery versions
(were Close), and the iOS command list. Sheets that only show things end with
Done, as the default action on the Mac and in the confirmation position on
iOS: the empty sync-copies and recovery sheets, the orgstar+ sheet and the
clock report (were Close), and the graph, export, backlinks, outline and
board sheets. The iOS entry sheet's checkmark, which writes the changes, is
Save. The Mac recovery sheet has a title.

Ref #223

Layout: unified · split

Changed files (14)
Sources/Orgstar/VersionViews.swift +9 −4 · view
@@ -33,7 +33,7 @@ struct ConflictSheet: View {
3333 ThemedDiff(old: versions.disk, new: versions.mine)
3434 }
3535 HStack {
36 Button("Decide Later") { dismiss() }.keyboardShortcut(.cancelAction)
36 Button("Cancel") { dismiss() }.keyboardShortcut(.cancelAction)
3737 Spacer()
3838 Button("Use Disk Version") { session.useDiskVersion(); dismiss() }
3939 Button("Merge with Markers") { session.mergeConflictWithMarkers(); dismiss() }
@@ -70,7 +70,11 @@ struct SyncConflictSheet: View {
7070 }
7171 }
7272 HStack {
73 Button("Close") { dismiss() }.keyboardShortcut(.cancelAction)
73 if copies.isEmpty {
74 Button("Done") { dismiss() }.keyboardShortcut(.defaultAction)
75 } else {
76 Button("Cancel") { dismiss() }.keyboardShortcut(.cancelAction)
77 }
7478 Spacer()
7579 if let selected {
7680 Button("Keep File") { resolve(selected, .keepFile) }
@@ -114,7 +118,7 @@ struct RecoverySheet: View {
114118 )
115119 HStack {
116120 Spacer()
117 Button("Close") { dismiss() }.keyboardShortcut(.cancelAction)
121 Button("Done") { dismiss() }.keyboardShortcut(.defaultAction)
118122 }
119123 }
120124 .padding()
@@ -140,6 +144,7 @@ struct RecoverySheet: View {
140144 }
141145 .frame(minWidth: 200, idealWidth: 220)
142146 VStack(alignment: .leading, spacing: 10) {
147 Text("Recovery Versions").font(.headline)
143148 Text("Lines marked - are in the buffer, + in the kept version.").foregroundStyle(.secondary)
144149 if let selected, let kept = session.recoveryText(selected), let mine = session.document?.text {
145150 ThemedDiff(old: mine, new: kept)
@@ -147,7 +152,7 @@ struct RecoverySheet: View {
147152 Spacer()
148153 }
149154 HStack {
150 Button("Close") { dismiss() }.keyboardShortcut(.cancelAction)
155 Button("Cancel") { dismiss() }.keyboardShortcut(.cancelAction)
151156 if let selected {
152157 Button("Show in Finder") { NSWorkspace.shared.activateFileViewerSelecting([selected]) }
153158 }
Sources/OrgstarMobile/BacklinksScreen.swift +1 −1 · view
@@ -32,7 +32,7 @@ struct BacklinksScreen: View {
3232 }
3333 .navigationTitle("Backlinks")
3434 .navigationBarTitleDisplayMode(.inline)
35 .toolbar { ToolbarItem(placement: .cancellationAction) { Button("Done") { dismiss() } } }
35 .toolbar { ToolbarItem(placement: .confirmationAction) { Button("Done") { dismiss() } } }
3636 }
3737 .task { await refresh() }
3838 }
Sources/OrgstarMobile/BoardScreen.swift +1 −1 · view
@@ -67,7 +67,7 @@ struct BoardScreen: View {
6767 .navigationTitle("Board")
6868 .navigationBarTitleDisplayMode(.inline)
6969 .toolbar {
70 ToolbarItem(placement: .cancellationAction) { Button("Done", action: done) }
70 ToolbarItem(placement: .confirmationAction) { Button("Done", action: done) }
7171 ToolbarItem(placement: .principal) {
7272 Picker("View", selection: $kanban) {
7373 Label("List", systemImage: "list.bullet").tag(false)
Sources/OrgstarMobile/ClockScreens.swift +1 −1 · view
@@ -268,7 +268,7 @@ struct ClockReportScreen: View {
268268 .navigationTitle("Clock Report")
269269 .navigationBarTitleDisplayMode(.inline)
270270 .toolbar {
271 ToolbarItem(placement: .cancellationAction) { Button("Close") { dismiss() } }
271 ToolbarItem(placement: .confirmationAction) { Button("Done") { dismiss() } }
272272 ToolbarItem(placement: .primaryAction) {
273273 ShareLink(item: report, preview: SharePreview("Clock Report")).disabled(report.isEmpty)
274274 }
Sources/OrgstarMobile/EditorScreen.swift +1 −1 · view
@@ -1197,7 +1197,7 @@ struct CommandPalette: View {
11971197 .searchable(text: $query, placement: .navigationBarDrawer(displayMode: .always))
11981198 .navigationTitle("Commands")
11991199 .navigationBarTitleDisplayMode(.inline)
1200 .toolbar { ToolbarItem(placement: .cancellationAction) { Button("Close") { dismiss() } } }
1200 .toolbar { ToolbarItem(placement: .cancellationAction) { Button("Cancel") { dismiss() } } }
12011201 }
12021202 .onAppear {
12031203 guard applicable == nil else { return }
Sources/OrgstarMobile/EntrySheet.swift +1 −1 · view
@@ -79,7 +79,7 @@ struct EntrySheet: View {
7979 .disabled(draft == nil)
8080 }
8181 ToolbarItem(placement: .confirmationAction) {
82 Button("Done", systemImage: "checkmark") { save() }.disabled(draft == nil)
82 Button("Save", systemImage: "checkmark") { save() }.disabled(draft == nil)
8383 }
8484 }
8585 .confirmationDialog("Discard your changes?", isPresented: $confirmingDiscard, titleVisibility: .visible) {
Sources/OrgstarMobile/ExportMenu.swift +1 −1 · view
@@ -301,7 +301,7 @@ struct SubtreeExportScreen: View {
301301 }
302302 .navigationTitle("Export Subtree")
303303 .navigationBarTitleDisplayMode(.inline)
304 .toolbar { ToolbarItem(placement: .cancellationAction) { Button("Done") { dismiss() } } }
304 .toolbar { ToolbarItem(placement: .confirmationAction) { Button("Done") { dismiss() } } }
305305 }
306306 }
307307}
Sources/OrgstarMobile/ProScreen.swift +1 −1 · view
@@ -177,7 +177,7 @@ struct ProSheet: View {
177177 var body: some View {
178178 NavigationStack {
179179 ProScreen(feature: feature)
180 .toolbar { ToolbarItem(placement: .cancellationAction) { Button("Close") { dismiss() } } }
180 .toolbar { ToolbarItem(placement: .confirmationAction) { Button("Done") { dismiss() } } }
181181 }
182182 .onChange(of: ProAccess.shared.isUnlocked) { _, unlocked in if unlocked { dismiss() } }
183183 }
Sources/OrgstarMobile/ReaderScreen.swift +1 −1 · view
@@ -516,7 +516,7 @@ struct ReaderScreen: View {
516516 }
517517 .navigationTitle("Outline")
518518 .navigationBarTitleDisplayMode(.inline)
519 .toolbar { ToolbarItem(placement: .cancellationAction) { Button("Done") { showingOutline = false } } }
519 .toolbar { ToolbarItem(placement: .confirmationAction) { Button("Done") { showingOutline = false } } }
520520 }
521521 }
522522}
Sources/OrgstarMobile/RoamGraphScreen.swift +1 −1 · view
@@ -26,7 +26,7 @@ struct RoamGraphScreen: View {
2626 }
2727 .navigationTitle("Node Graph")
2828 .navigationBarTitleDisplayMode(.inline)
29 .toolbar { ToolbarItem(placement: .cancellationAction) { Button("Done") { dismiss() } } }
29 .toolbar { ToolbarItem(placement: .confirmationAction) { Button("Done") { dismiss() } } }
3030 }
3131 }
3232}
Sources/OrgstarMobile/VersionScreens.swift +3 −3 · view
@@ -31,7 +31,7 @@ struct ConflictSheet: View {
3131 .padding()
3232 .navigationTitle("Conflicting Changes")
3333 .navigationBarTitleDisplayMode(.inline)
34 .toolbar { ToolbarItem(placement: .cancellationAction) { Button("Later") { dismiss() } } }
34 .toolbar { ToolbarItem(placement: .cancellationAction) { Button("Cancel") { dismiss() } } }
3535 }
3636 }
3737}
@@ -75,7 +75,7 @@ struct SyncConflictSheet: View {
7575 .padding()
7676 .navigationTitle("Sync Conflict Copies")
7777 .navigationBarTitleDisplayMode(.inline)
78 .toolbar { ToolbarItem(placement: .cancellationAction) { Button("Close") { dismiss() } } }
78 .toolbar { ToolbarItem(placement: .cancellationAction) { Button(copies.isEmpty ? "Done" : "Cancel") { dismiss() } } }
7979 }
8080 .onAppear(perform: reload)
8181 }
@@ -116,7 +116,7 @@ struct RecoverySheet: View {
116116 }
117117 .navigationTitle("Recovery Versions")
118118 .navigationBarTitleDisplayMode(.inline)
119 .toolbar { ToolbarItem(placement: .cancellationAction) { Button("Close") { dismiss() } } }
119 .toolbar { ToolbarItem(placement: .cancellationAction) { Button(versions.isEmpty ? "Done" : "Cancel") { dismiss() } } }
120120 }
121121 .onAppear { versions = session.recoveryVersions() }
122122 }
docs/manual/guide/01-files-and-folders.org +1 −1 · view
@@ -254,7 +254,7 @@ When a buffer conflicts with its file, automatic saving stops for that buffer, t
254254| Keep Mine | Writes your version over the file. The disk version goes to recovery. This is the default button. |
255255| Use Disk Version | Loads the file as it is on disk. Your version goes to recovery. |
256256| Merge with Markers | Puts both sets of changes in the buffer, as =git merge= leaves a conflict: non-conflicting changes merged, conflicting lines between markers. Your version as it was goes to recovery. |
257| Decide Later | Closes the sheet. The conflict stays; click =Conflict= in the toolbar to reopen it. |
257| Cancel | Closes the sheet. The conflict stays; click =Conflict= in the toolbar to reopen it. |
258258
259259After Merge with Markers the buffer holds blocks like this, which you edit and save:
260260
docs/manual/guide/14-ios.org +2 −2 · view
@@ -214,7 +214,7 @@ The Agenda tab shows the agenda over all your folders, with the span and start d
214214- The bar at the bottom :: Earlier, Today, the span (Day, Week, Month or the configured span, and Log Mode, which adds closed entries and clocked time) and Later. At accessibility text sizes Today is in the span's menu, and each entry's time or status is on a line of its own above it.
215215- Filter :: keep or leave out tags and categories of the entries shown, or type a filter as Org's =/= takes it: =+keep= and =-drop= tags or categories, =<0:30= for effort, =/regexp/=. The filter in use shows above the bar.
216216- + on a day's header :: captures an entry scheduled on that day (see [[file:08-capture.org][Capture]]).
217- Tap :: an entry to open it in a sheet: its title, TODO state, priority, scheduled date, deadline, tags and notes. Changes use the same commands as the editor and are written to the file together on Done, or dropped on Cancel; Undo and Redo step through them. More ▸ Open in File saves and shows the entry in the reader.
217- Tap :: an entry to open it in a sheet: its title, TODO state, priority, scheduled date, deadline, tags and notes. Changes use the same commands as the editor and are written to the file together on Save, or dropped on Cancel; Undo and Redo step through them. More ▸ Open in File saves and shows the entry in the reader.
218218- Swipe left :: on a TODO entry for Done, which sets the first done keyword of its sequence, or Next State; on any entry with a heading for Delete, which asks first.
219219- Swipe right :: for Tomorrow, Next Week (next Monday) or Pick Date, which move the entry's scheduled date, or its deadline on a deadline row.
220220- Touch and hold :: an entry for TODO State…, Reschedule, Schedule…, Deadline…, Tags…, Priority…, Clock In, Add to Calendar…, Refile…, Archive…, and Delete…. Delete… removes the heading and every line under it, after asking. Refile… lists each file and the headings in it down to level 3, as the Mac's prompt does; the entry goes to the end of the file, or under the heading, you choose. Search narrows the list by file and heading path.
@@ -387,7 +387,7 @@ When a file changes on disk while you have unsaved edits, orgstar merges the cha
387387- Keep Mine :: write your version over the disk version.
388388- Use Disk Version :: replace your edits with the disk version.
389389- Merge with Markers :: put both versions in the editor, with conflicting lines between =<<<<<<<= and =>>>>>>>= markers, to fix and save.
390- Later :: decide later. The Conflict button in the toolbar opens the sheet again. Nothing is saved until you decide.
390- Cancel :: decide later. The Conflict button in the toolbar opens the sheet again. Nothing is saved until you decide.
391391
392392The version you don't keep goes to the recovery folder.
393393
docs/manual/guide/15-alongside-emacs.org +1 −1 · view
@@ -58,7 +58,7 @@ The sheet shows what differs, with lines marked - on disk and + in your version,
5858| Keep Mine | Writes your version over the disk version. The disk version goes to the recovery folder. |
5959| Use Disk Version | Loads the disk version. Your version goes to the recovery folder. |
6060| Merge with Markers | Puts both sets of changes in the buffer, with conflicting lines between =<<<<<<< yours= and =>>>>>>> disk= markers, as =git merge= leaves them. Edit and save. Your version as it was goes to the recovery folder. |
61| Decide Later | Closes the sheet. Automatic saving stops for the file until you decide; the Conflict button in the toolbar opens the sheet again. On iOS the button is Later. |
61| Cancel | Closes the sheet. Automatic saving stops for the file until you decide; the Conflict button in the toolbar opens the sheet again. |
6262
6363On the Mac, File ▸ Revert to File on Disk loads the disk version at any time; unsaved changes go to the recovery folder.
6464
Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form