Commit 1900873c42

1900873c42a90656ffad9bdb70fb430087de6d1d

parent: 89b81af663

Verified · cmc

cmc <hello@cleberg.net> · 2026-10-14 03:38 UTC

File and View menu items for recovery, sync conflicts, revert and spell check

Revert to File on Disk, Resolve Sync Conflicts… and Recovery Versions… go
in the File menu after Export and Publish; Check Spelling While Typing goes
in the View menu after Turn Auto Fill On or Off. All four were palette-only.

Closes #70

Layout: unified · split

Sources/Orgstar/OrgstarApp.swift +9
@@ -401,6 +401,13 @@ struct OrgstarApp: App {
401401 Button(command.title) { commands.run(command.id) }
402402 }
403403 }
404 Divider()
405 Button("Revert to File on Disk") { commands.run("app.revert") }
406 .disabled(session.path == nil)
407 Button("Resolve Sync Conflicts…") { commands.run("app.sync-conflicts") }
408 .disabled(session.path == nil)
409 Button("Recovery Versions…") { commands.run("app.recovery") }
410 .disabled(session.path == nil)
404411 }
405412 CommandGroup(replacing: .saveItem) {
406413 Button("Close Buffer") {
@@ -444,6 +451,8 @@ struct OrgstarApp: App {
444451 MarkupToggle()
445452 Button("Truncate or Wrap Long Lines") { commands.run("editor.toggle-truncate-lines") }
446453 Button("Turn Auto Fill On or Off") { commands.run("editor.toggle-auto-fill") }
454 Button("Check Spelling While Typing") { commands.editor?.run("editor.toggle-spell-check") }
455 .disabled(commands.editor == nil)
447456 }
448457 CommandGroup(after: .pasteboard) {
449458 Divider()
docs/manual/guide/01-files-and-folders.org +4 −4
@@ -25,7 +25,7 @@ Most commands are in the menu bar. The =Org= menu lists every org command, each
2525
2626File ▸ Command Palette… (=⇧⌘P=; =M-x= in the Emacs and Doom presets; =SPC := in Doom normal state) lists every command by title with its keys. Type to filter (characters match in order, as in Quick Open), then press =Return= to run the top match or click one. =Escape= closes it. Text movement and editing commands (forward character, kill line and so on) are not listed; they are only on keys.
2727
28Several commands in this chapter are only in the palette, not in a menu: Close Other Buffers, Close All Buffers, Last Buffer, Show or Hide Tab Bar, Revert to File on Disk, Resolve Sync Conflicts… and Recovery Versions….
28Several commands in this chapter are only in the palette, not in a menu: Close Other Buffers, Close All Buffers, Last Buffer and Show or Hide Tab Bar.
2929
3030** Showing and hiding panes
3131
@@ -241,7 +241,7 @@ Reloading or merging clears the buffer's undo history.
241241
242242If an open file is deleted on disk, its buffer stays open with its text. Saving it writes the file again.
243243
244To throw away your unsaved edits and load the file as it is on disk, run Revert to File on Disk from the palette (=:e= in Doom). Your edits go to recovery.
244To throw away your unsaved edits and load the file as it is on disk, choose File ▸ Revert to File on Disk (also in the palette; =:e= in Doom). Your edits go to recovery.
245245
246246** Conflicts
247247
@@ -270,7 +270,7 @@ While a conflict is unresolved, saving that buffer does nothing except reopen th
270270
271271When two devices change a file before Syncthing syncs them, Syncthing keeps one version as a conflict copy beside the file, named like =notes.sync-conflict-20260301-142233-ABCDEF7.org=. orgstar lists these in the sidebar in orange with a warning icon, and leaves them out of search, the agenda, ID lookup and Quick Open.
272272
273When you open a file that has conflict copies, the echo area says how many there are. Run Resolve Sync Conflicts… from the palette to compare them. Pick a copy from the menu at the top; lines marked =-= are in the file (as the buffer holds it) and lines marked =+= are in the copy. Then choose:
273When you open a file that has conflict copies, the echo area says how many there are. Choose File ▸ Resolve Sync Conflicts… to compare them. Pick a copy from the menu at the top; lines marked =-= are in the file (as the buffer holds it) and lines marked =+= are in the copy. Then choose:
274274
275275| Button | What it does |
276276|--------------------+------------------------------------------------------------------------------------|
@@ -284,7 +284,7 @@ Each choice moves the copy to recovery and deletes it from the folder. The buffe
284284
285285Whenever orgstar replaces a version of a file, it keeps a copy: your buffer when you take the disk version, the disk version when you keep yours, a version another program wrote while orgstar saved, and resolved Syncthing copies. orgstar keeps the last 20 versions per file in =~/Library/Application Support/Orgstar/Recovery=.
286286
287Run Recovery Versions… from the palette to see the open file's versions, newest first, each with its date and why it was kept:
287Choose File ▸ Recovery Versions… to see the open file's versions, newest first, each with its date and why it was kept:
288288
289289| Label | Meaning |
290290|-------------------------+-------------------------------------------------|
docs/manual/guide/02-the-editor.org +2 −2
@@ -278,7 +278,7 @@ Electric pairs are on by default and work in org files only. Set =electric-pair-
278278
279279* Spell checking
280280
281Spell checking is off by default. Turn it on for the current buffer with Check Spelling While Typing from the palette (=SPC t s= in Doom normal state); the echo area says whether it is now on or off. To have it on in every file, turn on Settings ▸ Editing ▸ Check spelling while typing, or set =spell-check = true= in =config.toml=.
281Spell checking is off by default. Turn it on for the current buffer with View ▸ Check Spelling While Typing (also in the palette; =SPC t s= in Doom normal state); the echo area says whether it is now on or off. To have it on in every file, turn on Settings ▸ Editing ▸ Check spelling while typing, or set =spell-check = true= in =config.toml=.
282282
283283Misspelt words are underlined, using the macOS spelling dictionary. In org files, orgstar doesn't mark words where spell-fu skips them: code, verbatim, links, timestamps, tags, TODO keywords, priorities, list bullets, checkboxes, keywords and affiliated keywords, planning and clock lines, property drawers, the first and last lines of drawers and blocks, the whole of src, example, export and comment blocks, LaTeX, entities, macros, targets, footnote references, citations, table formulas and fixed-width lines.
284284
@@ -311,7 +311,7 @@ Wrapping is display only. To rewrap the text of a paragraph, use Org ▸ Fill Pa
311311| Auto fill | View ▸ Turn Auto Fill On or Off | palette | off | =auto-fill-mode= | current buffer |
312312| Inline images | Org ▸ Show or Hide Inline Images | =C-c C-x C-v= (Emacs, Doom) | off | =org-startup-with-inline-images= | current buffer |
313313| LaTeX previews | palette | =C-c C-x C-l= (Emacs, Doom) | off | =org-startup-with-latex-preview= | current buffer |
314| Spell checking | palette | =SPC t s= (Doom) | off | =spell-check= | current buffer |
314| Spell checking | View ▸ Check Spelling While Typing | =SPC t s= (Doom) | off | =spell-check= | current buffer |
315315| Truncate long lines | View ▸ Truncate or Wrap Long Lines | =C-x x t= (Emacs), =SPC t w= (Doom) | off | =org-startup-truncated= | current buffer |
316316
317317Toggles that apply to the current buffer last until it closes; the =config.toml= setting decides how each file starts. Changing those settings, and =org-startup-indented= and =org-hide-leading-stars=, affects files opened afterwards, not buffers already open.
docs/manual/guide/15-alongside-emacs.org +3 −3
@@ -58,7 +58,7 @@ The sheet shows what differs, with lines marked - on disk and + in your version,
5858| 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. |
5959| Decide Later | Closes the sheet. Automatic saving stops for the file until you decide; the Conflict button in the toolbar opens the sheet again. |
6060
61On the Mac, Revert to File on Disk (in the command palette) loads the disk version at any time; unsaved changes go to the recovery folder.
61On the Mac, File ▸ Revert to File on Disk loads the disk version at any time; unsaved changes go to the recovery folder.
6262
6363* Sync tools
6464
@@ -74,7 +74,7 @@ Syncthing writes files without file coordination. orgstar sees its changes throu
7474- Its folders =.stfolder= and =.stversions= are in the default =ignored-folders=.
7575- Conflict copies (=name.sync-conflict-YYYYMMDD-HHMMSS-ID.org=) are listed in the sidebar but never indexed, so they don't appear in the agenda, search or ID links.
7676
77When a file with conflict copies opens, a message says how many there are. Resolve Sync Conflicts… in the command palette (More ▸ Sync Conflict Copies on iOS) lists each copy against the file, with lines marked - in the file and + in the copy:
77When a file with conflict copies opens, a message says how many there are. File ▸ Resolve Sync Conflicts… (More ▸ Sync Conflict Copies on iOS) lists each copy against the file, with lines marked - in the file and + in the copy:
7878
7979| Button | Effect |
8080|--------------------+--------------------------------------------------------------------------------------------|
@@ -107,7 +107,7 @@ Each file has a subfolder named from a hash of its path, holding its last 20 kep
107107| =local= | orgstar's version was replaced, or set aside by Use Disk Version, Merge with Markers or Restore |
108108| =sync-conflict= | A Syncthing conflict copy was resolved |
109109
110Recovery Versions… in the command palette (More ▸ Recovered Versions on iOS) lists the open file's kept versions, newest first, each compared with the buffer (lines marked - in the buffer, + in the kept version). Restore puts a version's text in the buffer as an edit you can undo; the buffer as it was goes to the recovery folder first. On the Mac, Show in Finder selects the version's file.
110File ▸ Recovery Versions… (More ▸ Recovered Versions on iOS) lists the open file's kept versions, newest first, each compared with the buffer (lines marked - in the buffer, + in the kept version). Restore puts a version's text in the buffer as an edit you can undo; the buffer as it was goes to the recovery folder first. On the Mac, Show in Finder selects the version's file.
111111
112112* Features that use Emacs on the Mac
113113