Commit cc2ed5c2b6
Verified · cmc
Changed files (14)
- Sources/Orgstar/VersionViews.swift +9 −4
- Sources/OrgstarMobile/BacklinksScreen.swift +1 −1
- Sources/OrgstarMobile/BoardScreen.swift +1 −1
- Sources/OrgstarMobile/ClockScreens.swift +1 −1
- Sources/OrgstarMobile/EditorScreen.swift +1 −1
- Sources/OrgstarMobile/EntrySheet.swift +1 −1
- Sources/OrgstarMobile/ExportMenu.swift +1 −1
- Sources/OrgstarMobile/ProScreen.swift +1 −1
- Sources/OrgstarMobile/ReaderScreen.swift +1 −1
- Sources/OrgstarMobile/RoamGraphScreen.swift +1 −1
- Sources/OrgstarMobile/VersionScreens.swift +3 −3
- docs/manual/guide/01-files-and-folders.org +1 −1
- docs/manual/guide/14-ios.org +2 −2
- docs/manual/guide/15-alongside-emacs.org +1 −1
Sources/Orgstar/VersionViews.swift +9 −4 · view
| @@ -33,7 +33,7 @@ struct ConflictSheet: View { | |||
| 33 | ThemedDiff(old: versions.disk, new: versions.mine) | 33 | ThemedDiff(old: versions.disk, new: versions.mine) |
| 34 | } | 34 | } |
| 35 | HStack { | 35 | HStack { |
| 36 | Button("Decide Later") { dismiss() }.keyboardShortcut(.cancelAction) | 36 | Button("Cancel") { dismiss() }.keyboardShortcut(.cancelAction) |
| 37 | Spacer() | 37 | Spacer() |
| 38 | Button("Use Disk Version") { session.useDiskVersion(); dismiss() } | 38 | Button("Use Disk Version") { session.useDiskVersion(); dismiss() } |
| 39 | Button("Merge with Markers") { session.mergeConflictWithMarkers(); dismiss() } | 39 | Button("Merge with Markers") { session.mergeConflictWithMarkers(); dismiss() } |
| @@ -70,7 +70,11 @@ struct SyncConflictSheet: View { | |||
| 70 | } | 70 | } |
| 71 | } | 71 | } |
| 72 | HStack { | 72 | 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 | } | ||
| 74 | Spacer() | 78 | Spacer() |
| 75 | if let selected { | 79 | if let selected { |
| 76 | Button("Keep File") { resolve(selected, .keepFile) } | 80 | Button("Keep File") { resolve(selected, .keepFile) } |
| @@ -114,7 +118,7 @@ struct RecoverySheet: View { | |||
| 114 | ) | 118 | ) |
| 115 | HStack { | 119 | HStack { |
| 116 | Spacer() | 120 | Spacer() |
| 117 | Button("Close") { dismiss() }.keyboardShortcut(.cancelAction) | 121 | Button("Done") { dismiss() }.keyboardShortcut(.defaultAction) |
| 118 | } | 122 | } |
| 119 | } | 123 | } |
| 120 | .padding() | 124 | .padding() |
| @@ -140,6 +144,7 @@ struct RecoverySheet: View { | |||
| 140 | } | 144 | } |
| 141 | .frame(minWidth: 200, idealWidth: 220) | 145 | .frame(minWidth: 200, idealWidth: 220) |
| 142 | VStack(alignment: .leading, spacing: 10) { | 146 | VStack(alignment: .leading, spacing: 10) { |
| 147 | Text("Recovery Versions").font(.headline) | ||
| 143 | Text("Lines marked - are in the buffer, + in the kept version.").foregroundStyle(.secondary) | 148 | Text("Lines marked - are in the buffer, + in the kept version.").foregroundStyle(.secondary) |
| 144 | if let selected, let kept = session.recoveryText(selected), let mine = session.document?.text { | 149 | if let selected, let kept = session.recoveryText(selected), let mine = session.document?.text { |
| 145 | ThemedDiff(old: mine, new: kept) | 150 | ThemedDiff(old: mine, new: kept) |
| @@ -147,7 +152,7 @@ struct RecoverySheet: View { | |||
| 147 | Spacer() | 152 | Spacer() |
| 148 | } | 153 | } |
| 149 | HStack { | 154 | HStack { |
| 150 | Button("Close") { dismiss() }.keyboardShortcut(.cancelAction) | 155 | Button("Cancel") { dismiss() }.keyboardShortcut(.cancelAction) |
| 151 | if let selected { | 156 | if let selected { |
| 152 | Button("Show in Finder") { NSWorkspace.shared.activateFileViewerSelecting([selected]) } | 157 | Button("Show in Finder") { NSWorkspace.shared.activateFileViewerSelecting([selected]) } |
| 153 | } | 158 | } |
Sources/OrgstarMobile/BacklinksScreen.swift +1 −1 · view
| @@ -32,7 +32,7 @@ struct BacklinksScreen: View { | |||
| 32 | } | 32 | } |
| 33 | .navigationTitle("Backlinks") | 33 | .navigationTitle("Backlinks") |
| 34 | .navigationBarTitleDisplayMode(.inline) | 34 | .navigationBarTitleDisplayMode(.inline) |
| 35 | .toolbar { ToolbarItem(placement: .cancellationAction) { Button("Done") { dismiss() } } } | 35 | .toolbar { ToolbarItem(placement: .confirmationAction) { Button("Done") { dismiss() } } } |
| 36 | } | 36 | } |
| 37 | .task { await refresh() } | 37 | .task { await refresh() } |
| 38 | } | 38 | } |
Sources/OrgstarMobile/BoardScreen.swift +1 −1 · view
| @@ -67,7 +67,7 @@ struct BoardScreen: View { | |||
| 67 | .navigationTitle("Board") | 67 | .navigationTitle("Board") |
| 68 | .navigationBarTitleDisplayMode(.inline) | 68 | .navigationBarTitleDisplayMode(.inline) |
| 69 | .toolbar { | 69 | .toolbar { |
| 70 | ToolbarItem(placement: .cancellationAction) { Button("Done", action: done) } | 70 | ToolbarItem(placement: .confirmationAction) { Button("Done", action: done) } |
| 71 | ToolbarItem(placement: .principal) { | 71 | ToolbarItem(placement: .principal) { |
| 72 | Picker("View", selection: $kanban) { | 72 | Picker("View", selection: $kanban) { |
| 73 | Label("List", systemImage: "list.bullet").tag(false) | 73 | Label("List", systemImage: "list.bullet").tag(false) |
Sources/OrgstarMobile/ClockScreens.swift +1 −1 · view
| @@ -268,7 +268,7 @@ struct ClockReportScreen: View { | |||
| 268 | .navigationTitle("Clock Report") | 268 | .navigationTitle("Clock Report") |
| 269 | .navigationBarTitleDisplayMode(.inline) | 269 | .navigationBarTitleDisplayMode(.inline) |
| 270 | .toolbar { | 270 | .toolbar { |
| 271 | ToolbarItem(placement: .cancellationAction) { Button("Close") { dismiss() } } | 271 | ToolbarItem(placement: .confirmationAction) { Button("Done") { dismiss() } } |
| 272 | ToolbarItem(placement: .primaryAction) { | 272 | ToolbarItem(placement: .primaryAction) { |
| 273 | ShareLink(item: report, preview: SharePreview("Clock Report")).disabled(report.isEmpty) | 273 | ShareLink(item: report, preview: SharePreview("Clock Report")).disabled(report.isEmpty) |
| 274 | } | 274 | } |
Sources/OrgstarMobile/EditorScreen.swift +1 −1 · view
| @@ -1197,7 +1197,7 @@ struct CommandPalette: View { | |||
| 1197 | .searchable(text: $query, placement: .navigationBarDrawer(displayMode: .always)) | 1197 | .searchable(text: $query, placement: .navigationBarDrawer(displayMode: .always)) |
| 1198 | .navigationTitle("Commands") | 1198 | .navigationTitle("Commands") |
| 1199 | .navigationBarTitleDisplayMode(.inline) | 1199 | .navigationBarTitleDisplayMode(.inline) |
| 1200 | .toolbar { ToolbarItem(placement: .cancellationAction) { Button("Close") { dismiss() } } } | 1200 | .toolbar { ToolbarItem(placement: .cancellationAction) { Button("Cancel") { dismiss() } } } |
| 1201 | } | 1201 | } |
| 1202 | .onAppear { | 1202 | .onAppear { |
| 1203 | guard applicable == nil else { return } | 1203 | guard applicable == nil else { return } |
Sources/OrgstarMobile/EntrySheet.swift +1 −1 · view
| @@ -79,7 +79,7 @@ struct EntrySheet: View { | |||
| 79 | .disabled(draft == nil) | 79 | .disabled(draft == nil) |
| 80 | } | 80 | } |
| 81 | ToolbarItem(placement: .confirmationAction) { | 81 | ToolbarItem(placement: .confirmationAction) { |
| 82 | Button("Done", systemImage: "checkmark") { save() }.disabled(draft == nil) | 82 | Button("Save", systemImage: "checkmark") { save() }.disabled(draft == nil) |
| 83 | } | 83 | } |
| 84 | } | 84 | } |
| 85 | .confirmationDialog("Discard your changes?", isPresented: $confirmingDiscard, titleVisibility: .visible) { | 85 | .confirmationDialog("Discard your changes?", isPresented: $confirmingDiscard, titleVisibility: .visible) { |
Sources/OrgstarMobile/ExportMenu.swift +1 −1 · view
| @@ -301,7 +301,7 @@ struct SubtreeExportScreen: View { | |||
| 301 | } | 301 | } |
| 302 | .navigationTitle("Export Subtree") | 302 | .navigationTitle("Export Subtree") |
| 303 | .navigationBarTitleDisplayMode(.inline) | 303 | .navigationBarTitleDisplayMode(.inline) |
| 304 | .toolbar { ToolbarItem(placement: .cancellationAction) { Button("Done") { dismiss() } } } | 304 | .toolbar { ToolbarItem(placement: .confirmationAction) { Button("Done") { dismiss() } } } |
| 305 | } | 305 | } |
| 306 | } | 306 | } |
| 307 | } | 307 | } |
Sources/OrgstarMobile/ProScreen.swift +1 −1 · view
| @@ -177,7 +177,7 @@ struct ProSheet: View { | |||
| 177 | var body: some View { | 177 | var body: some View { |
| 178 | NavigationStack { | 178 | NavigationStack { |
| 179 | ProScreen(feature: feature) | 179 | ProScreen(feature: feature) |
| 180 | .toolbar { ToolbarItem(placement: .cancellationAction) { Button("Close") { dismiss() } } } | 180 | .toolbar { ToolbarItem(placement: .confirmationAction) { Button("Done") { dismiss() } } } |
| 181 | } | 181 | } |
| 182 | .onChange(of: ProAccess.shared.isUnlocked) { _, unlocked in if unlocked { dismiss() } } | 182 | .onChange(of: ProAccess.shared.isUnlocked) { _, unlocked in if unlocked { dismiss() } } |
| 183 | } | 183 | } |
Sources/OrgstarMobile/ReaderScreen.swift +1 −1 · view
| @@ -516,7 +516,7 @@ struct ReaderScreen: View { | |||
| 516 | } | 516 | } |
| 517 | .navigationTitle("Outline") | 517 | .navigationTitle("Outline") |
| 518 | .navigationBarTitleDisplayMode(.inline) | 518 | .navigationBarTitleDisplayMode(.inline) |
| 519 | .toolbar { ToolbarItem(placement: .cancellationAction) { Button("Done") { showingOutline = false } } } | 519 | .toolbar { ToolbarItem(placement: .confirmationAction) { Button("Done") { showingOutline = false } } } |
| 520 | } | 520 | } |
| 521 | } | 521 | } |
| 522 | } | 522 | } |
Sources/OrgstarMobile/RoamGraphScreen.swift +1 −1 · view
| @@ -26,7 +26,7 @@ struct RoamGraphScreen: View { | |||
| 26 | } | 26 | } |
| 27 | .navigationTitle("Node Graph") | 27 | .navigationTitle("Node Graph") |
| 28 | .navigationBarTitleDisplayMode(.inline) | 28 | .navigationBarTitleDisplayMode(.inline) |
| 29 | .toolbar { ToolbarItem(placement: .cancellationAction) { Button("Done") { dismiss() } } } | 29 | .toolbar { ToolbarItem(placement: .confirmationAction) { Button("Done") { dismiss() } } } |
| 30 | } | 30 | } |
| 31 | } | 31 | } |
| 32 | } | 32 | } |
Sources/OrgstarMobile/VersionScreens.swift +3 −3 · view
| @@ -31,7 +31,7 @@ struct ConflictSheet: View { | |||
| 31 | .padding() | 31 | .padding() |
| 32 | .navigationTitle("Conflicting Changes") | 32 | .navigationTitle("Conflicting Changes") |
| 33 | .navigationBarTitleDisplayMode(.inline) | 33 | .navigationBarTitleDisplayMode(.inline) |
| 34 | .toolbar { ToolbarItem(placement: .cancellationAction) { Button("Later") { dismiss() } } } | 34 | .toolbar { ToolbarItem(placement: .cancellationAction) { Button("Cancel") { dismiss() } } } |
| 35 | } | 35 | } |
| 36 | } | 36 | } |
| 37 | } | 37 | } |
| @@ -75,7 +75,7 @@ struct SyncConflictSheet: View { | |||
| 75 | .padding() | 75 | .padding() |
| 76 | .navigationTitle("Sync Conflict Copies") | 76 | .navigationTitle("Sync Conflict Copies") |
| 77 | .navigationBarTitleDisplayMode(.inline) | 77 | .navigationBarTitleDisplayMode(.inline) |
| 78 | .toolbar { ToolbarItem(placement: .cancellationAction) { Button("Close") { dismiss() } } } | 78 | .toolbar { ToolbarItem(placement: .cancellationAction) { Button(copies.isEmpty ? "Done" : "Cancel") { dismiss() } } } |
| 79 | } | 79 | } |
| 80 | .onAppear(perform: reload) | 80 | .onAppear(perform: reload) |
| 81 | } | 81 | } |
| @@ -116,7 +116,7 @@ struct RecoverySheet: View { | |||
| 116 | } | 116 | } |
| 117 | .navigationTitle("Recovery Versions") | 117 | .navigationTitle("Recovery Versions") |
| 118 | .navigationBarTitleDisplayMode(.inline) | 118 | .navigationBarTitleDisplayMode(.inline) |
| 119 | .toolbar { ToolbarItem(placement: .cancellationAction) { Button("Close") { dismiss() } } } | 119 | .toolbar { ToolbarItem(placement: .cancellationAction) { Button(versions.isEmpty ? "Done" : "Cancel") { dismiss() } } } |
| 120 | } | 120 | } |
| 121 | .onAppear { versions = session.recoveryVersions() } | 121 | .onAppear { versions = session.recoveryVersions() } |
| 122 | } | 122 | } |
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 | |||
| 254 | | Keep Mine | Writes your version over the file. The disk version goes to recovery. This is the default button. | | 254 | | Keep Mine | Writes your version over the file. The disk version goes to recovery. This is the default button. | |
| 255 | | Use Disk Version | Loads the file as it is on disk. Your version goes to recovery. | | 255 | | Use Disk Version | Loads the file as it is on disk. Your version goes to recovery. | |
| 256 | | 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. | | 256 | | 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. | |
| 258 | 258 | ||
| 259 | After Merge with Markers the buffer holds blocks like this, which you edit and save: | 259 | After Merge with Markers the buffer holds blocks like this, which you edit and save: |
| 260 | 260 | ||
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 | |||
| 214 | - 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. | 214 | - 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. |
| 215 | - 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. | 215 | - 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. |
| 216 | - + on a day's header :: captures an entry scheduled on that day (see [[file:08-capture.org][Capture]]). | 216 | - + 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. |
| 218 | - 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. | 218 | - 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. |
| 219 | - 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. | 219 | - 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. |
| 220 | - 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. | 220 | - 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 | |||
| 387 | - Keep Mine :: write your version over the disk version. | 387 | - Keep Mine :: write your version over the disk version. |
| 388 | - Use Disk Version :: replace your edits with the disk version. | 388 | - Use Disk Version :: replace your edits with the disk version. |
| 389 | - Merge with Markers :: put both versions in the editor, with conflicting lines between =<<<<<<<= and =>>>>>>>= markers, to fix and save. | 389 | - 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. |
| 391 | 391 | ||
| 392 | The version you don't keep goes to the recovery folder. | 392 | The version you don't keep goes to the recovery folder. |
| 393 | 393 | ||
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, | |||
| 58 | | Keep Mine | Writes your version over the disk version. The disk version goes to the recovery folder. | | 58 | | Keep Mine | Writes your version over the disk version. The disk version goes to the recovery folder. | |
| 59 | | Use Disk Version | Loads the disk version. Your version goes to the recovery folder. | | 59 | | Use Disk Version | Loads the disk version. Your version goes to the recovery folder. | |
| 60 | | 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. | | 60 | | 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. | |
| 62 | 62 | ||
| 63 | On the Mac, File ▸ Revert to File on Disk loads the disk version at any time; unsaved changes go to the recovery folder. | 63 | On the Mac, File ▸ Revert to File on Disk loads the disk version at any time; unsaved changes go to the recovery folder. |
| 64 | 64 | ||