Commit 89b81af663

89b81af663dcd1159640dd65c83c3a28257fc1b9

parent: 439b0aed64

Verified · cmc

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

Logging, speed keys and spell check in Settings ▸ Editing

org-log-done as a picker, org-log-into-drawer as a LOGBOOK switch,
org-use-speed-commands and spell-check as switches, bound to the same
defaults config.toml syncs. The manual's Editing table gains the rows and
the "Settings only in config.toml" table loses them.

Closes #69

Layout: unified · split

Sources/Orgstar/OrgstarApp.swift +28 −1
@@ -584,6 +584,10 @@ struct SettingsView: View {
584 @AppStorage("prettyEntities") private var prettyEntities = true 584 @AppStorage("prettyEntities") private var prettyEntities = true
585 @AppStorage("startupTruncated") private var startupTruncated = false 585 @AppStorage("startupTruncated") private var startupTruncated = false
586 @AppStorage("todoKeywords") private var todoKeywords = Preferences.defaultTodoKeywords 586 @AppStorage("todoKeywords") private var todoKeywords = Preferences.defaultTodoKeywords
587 @AppStorage("logDone") private var logDone = "nil"
588 @AppStorage("logIntoDrawer") private var logIntoDrawer = ""
589 @AppStorage("useSpeedCommands") private var useSpeedCommands = false
590 @AppStorage("spellCheck") private var spellCheck = false
587 @AppStorage("enforceTodoDependencies") private var enforceTodoDependencies = false 591 @AppStorage("enforceTodoDependencies") private var enforceTodoDependencies = false
588 @AppStorage("enforceTodoCheckboxDependencies") private var enforceTodoCheckboxDependencies = false 592 @AppStorage("enforceTodoCheckboxDependencies") private var enforceTodoCheckboxDependencies = false
589 @AppStorage("agendaSpan") private var agendaSpan = 10 593 @AppStorage("agendaSpan") private var agendaSpan = 10
@@ -723,9 +727,32 @@ struct SettingsView: View {
723 Text("Under a parent with the ORDERED property (Toggle ORDERED Property, C-c C-x o), TODO children are also done in order.") 727 Text("Under a parent with the ORDERED property (Toggle ORDERED Property, C-c C-x o), TODO children are also done in order.")
724 .settingsFooter() 728 .settingsFooter()
725 } 729 }
730 Section {
731 Picker("When an entry is done (org-log-done)", selection: $logDone) {
732 Text("Record nothing").tag("nil")
733 Text("Record the time, as CLOSED").tag("time")
734 Text("Record the time and ask for a note").tag("note")
735 }
736 Toggle("State notes go in a LOGBOOK drawer (org-log-into-drawer)", isOn: logIntoDrawerOn)
737 } footer: {
738 Text("Keyword flags such as DONE(d!) and #+STARTUP words in a file override these. org-log-reschedule and org-log-redeadline are in config.toml.")
739 .settingsFooter()
740 }
741 Section {
742 Toggle("Speed keys: single letters at the start of a heading line run commands (org-use-speed-commands)", isOn: $useSpeedCommands)
743 Toggle("Check spelling while typing (spell-check)", isOn: $spellCheck)
744 } footer: {
745 Text("Spell checking applies to files as they open; Check Spelling While Typing switches the current file. Code, links, dates, tags and keywords aren't checked.")
746 .settingsFooter()
747 }
726 } 748 }
727 .formStyle(.grouped) 749 .formStyle(.grouped)
728 .frame(height: 640) 750 .frame(height: 860)
751 }
752
753 /// `org-log-into-drawer` as a switch: on is "LOGBOOK" (Emacs's t); a drawer name of its own counts as on.
754 private var logIntoDrawerOn: Binding<Bool> {
755 Binding(get: { !logIntoDrawer.isEmpty }, set: { logIntoDrawer = $0 ? "LOGBOOK" : "" })
729 } 756 }
730 757
731 private var appearance: some View { 758 private var appearance: some View {
docs/manual/guide/02-the-editor.org +1 −1
@@ -278,7 +278,7 @@ Electric pairs are on by default and work in org files only. Set =electric-pair-
278 278
279* Spell checking 279* Spell checking
280 280
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, set =spell-check = true= in =config.toml=. 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=.
282 282
283Misspelt 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. 283Misspelt 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.
284 284
docs/manual/guide/03-keys.org +1 −1
@@ -142,7 +142,7 @@ With Settings ▸ Capture ▸ "⌃⌥Space opens Capture from any app" on (the d
142 142
143* Speed keys 143* Speed keys
144 144
145With =org-use-speed-commands= set to =true= in =config.toml=, single letters typed at the very start of a heading line, before the stars, run commands instead of inserting text (=org-speed-commands=). Anywhere else the letters type as usual. The setting is off by default and has no checkbox in Settings. 145With Settings ▸ Editing ▸ Speed keys on (=org-use-speed-commands= in =config.toml=), single letters typed at the very start of a heading line, before the stars, run commands instead of inserting text (=org-speed-commands=). Anywhere else the letters type as usual. The setting is off by default.
146 146
147Speed keys work in the Emacs and Mac presets, and in the Doom preset in insert state. The full list is in the [[*Speed keys reference][speed keys reference]]. 147Speed keys work in the Emacs and Mac presets, and in the Doom preset in insert state. The full list is in the [[*Speed keys reference][speed keys reference]].
148 148
docs/manual/guide/05-todos-and-tags.org +4 −4
@@ -180,7 +180,7 @@ In =config.toml=, ="LOGBOOK"= is the equivalent of Emacs's =t=, and =""= (the de
180 180
181Later sources override earlier ones: 181Later sources override earlier ones:
182 182
1831. =config.toml=: =org-log-done=, =org-log-reschedule=, =org-log-redeadline= (each =nil=, =time= or =note=, default =nil=) and =org-log-into-drawer= (default =""=). These have no control in the Settings window. =org-log-repeat= is always =time= unless the file changes it. 1831. =config.toml=: =org-log-done=, =org-log-reschedule=, =org-log-redeadline= (each =nil=, =time= or =note=, default =nil=) and =org-log-into-drawer= (default =""=). =org-log-done= and =org-log-into-drawer= are also in Settings ▸ Editing; the other two are in the file only. =org-log-repeat= is always =time= unless the file changes it.
1842. Keyword flags such as =DONE(d!)=. 1842. Keyword flags such as =DONE(d!)=.
1853. =#+STARTUP= words in the file or its setup files. 1853. =#+STARTUP= words in the file or its setup files.
1864. The =LOGGING= property, inherited from ancestors. 1864. The =LOGGING= property, inherited from ancestors.
@@ -338,9 +338,9 @@ The =COOKIE_DATA= property changes what the parent's cookie counts:
338| Setting | Where | Default | 338| Setting | Where | Default |
339|-------------------------+-------------------------------------------+----------------------------| 339|-------------------------+-------------------------------------------+----------------------------|
340| =org-todo-keywords= | Settings ▸ Editing, =config.toml= | See "The default keywords" above | 340| =org-todo-keywords= | Settings ▸ Editing, =config.toml= | See "The default keywords" above |
341| =org-log-done= | =config.toml= | =nil= | 341| =org-log-done= | Settings ▸ Editing, =config.toml= | =nil= |
342| =org-log-into-drawer= | =config.toml= | =""= (no drawer) | 342| =org-log-into-drawer= | Settings ▸ Editing, =config.toml= | =""= (no drawer) |
343| =org-enforce-todo-dependencies= | Settings ▸ Editing (iOS: Settings ▸ TODO Dependencies), =config.toml= | =false= | 343| =org-enforce-todo-dependencies= | Settings ▸ Editing (iOS: Settings ▸ TODO Dependencies), =config.toml= | =false= |
344| =org-enforce-todo-checkbox-dependencies= | Settings ▸ Editing (iOS: Settings ▸ TODO Dependencies), =config.toml= | =false= | 344| =org-enforce-todo-checkbox-dependencies= | Settings ▸ Editing (iOS: Settings ▸ TODO Dependencies), =config.toml= | =false= |
345| =org-tags-column= | Settings ▸ Editing, =config.toml= | =-77= | 345| =org-tags-column= | Settings ▸ Editing, =config.toml= | =-77= |
346| =org-use-speed-commands= | =config.toml= | =false= | 346| =org-use-speed-commands= | Settings ▸ Editing, =config.toml= | =false= |
docs/manual/guide/13-configuration.org +6 −4
@@ -77,6 +77,10 @@ Automatic saving writes a file one second after you stop typing. The keymap pres
77| Default TODO keywords | Text in =#+TODO= syntax, one sequence per line | See below | =org-todo-keywords= | 77| Default TODO keywords | Text in =#+TODO= syntax, one sequence per line | See below | =org-todo-keywords= |
78| Entries can't be done before their TODO children (org-enforce-todo-dependencies) | On or off | Off | =org-enforce-todo-dependencies= | 78| Entries can't be done before their TODO children (org-enforce-todo-dependencies) | On or off | Off | =org-enforce-todo-dependencies= |
79| Entries can't be done with unchecked boxes (org-enforce-todo-checkbox-dependencies) | On or off | Off | =org-enforce-todo-checkbox-dependencies= | 79| Entries can't be done with unchecked boxes (org-enforce-todo-checkbox-dependencies) | On or off | Off | =org-enforce-todo-checkbox-dependencies= |
80| When an entry is done (org-log-done) | Record nothing; Record the time, as CLOSED; Record the time and ask for a note | Record nothing | =org-log-done= |
81| State notes go in a LOGBOOK drawer (org-log-into-drawer) | On or off | Off | =org-log-into-drawer= |
82| Speed keys (org-use-speed-commands) | On or off | Off | =org-use-speed-commands= |
83| Check spelling while typing (spell-check) | On or off | Off | =spell-check= |
80 84
81The two "Emacs hides" and "Emacs shows" switches describe your Emacs, not orgstar's display. Tag alignment, table alignment and =M-q= measure text the way your Emacs displays it, so a file edited in both keeps the same layout. Set them to match your Emacs configuration. They also control whether orgstar hides markers and shows entities when markup is hidden. 85The two "Emacs hides" and "Emacs shows" switches describe your Emacs, not orgstar's display. Tag alignment, table alignment and =M-q= measure text the way your Emacs displays it, so a file edited in both keeps the same layout. Set them to match your Emacs configuration. They also control whether orgstar hides markers and shows entities when markup is hidden.
82 86
@@ -88,6 +92,8 @@ Default TODO keywords apply to files without a =#+TODO= line. orgstar reads them
88 92
89The two dependency switches are described under Dependencies in [[file:05-todos-and-tags.org][TODOs and tags]]. 93The two dependency switches are described under Dependencies in [[file:05-todos-and-tags.org][TODOs and tags]].
90 94
95The LOGBOOK switch writes =org-log-into-drawer= as ="LOGBOOK"= or =""=. A drawer name of your own in =config.toml= shows the switch on; turning it off and on again replaces the name with =LOGBOOK=. Logging is described under Logging in [[file:05-todos-and-tags.org][TODOs and tags]], speed keys in [[file:03-keys.org][Keys and commands]] and spell checking in [[file:02-the-editor.org][The editor]].
96
91** Language 97** Language
92 98
93orgstar's menus, settings and agenda are in English and German, and follow the language chosen in System Settings ▸ General ▸ Language & Region on the Mac and Settings ▸ General ▸ Language & Region on iOS (or the app's own language there). What orgstar writes into your files, such as clock tables, is in the language Org would use: a clock table's =:lang=, else =org-export-default-language=. Exports use the file's =#+LANGUAGE:=; see [[file:12-export.org][Export]]. 99orgstar's menus, settings and agenda are in English and German, and follow the language chosen in System Settings ▸ General ▸ Language & Region on the Mac and Settings ▸ General ▸ Language & Region on iOS (or the app's own language there). What orgstar writes into your files, such as clock tables, is in the language Org would use: a clock table's =:lang=, else =org-export-default-language=. Exports use the file's =#+LANGUAGE:=; see [[file:12-export.org][Export]].
@@ -145,10 +151,8 @@ These settings have no control in the Settings window. Some are in the View menu
145 151
146| Key | Also in | 152| Key | Also in |
147|----------------------------------+----------------------------| 153|----------------------------------+----------------------------|
148| =org-log-done= | |
149| =org-log-reschedule= | | 154| =org-log-reschedule= | |
150| =org-log-redeadline= | | 155| =org-log-redeadline= | |
151| =org-log-into-drawer= | |
152| =org-startup-indented= | | 156| =org-startup-indented= | |
153| =org-hide-leading-stars= | | 157| =org-hide-leading-stars= | |
154| =org-startup-align-all-tables= | | 158| =org-startup-align-all-tables= | |
@@ -157,8 +161,6 @@ These settings have no control in the Settings window. Some are in the View menu
157| =org-display-remote-inline-images= | | 161| =org-display-remote-inline-images= | |
158| =org-cycle-hide-drawer-startup= | | 162| =org-cycle-hide-drawer-startup= | |
159| =org-cycle-hide-block-startup= | | 163| =org-cycle-hide-block-startup= | |
160| =org-use-speed-commands= | |
161| =spell-check= | |
162| =electric-pair-mode= | | 164| =electric-pair-mode= | |
163| =display-line-numbers-type= | View ▸ Show Line Numbers (=⇧⌘L=), View ▸ Line Numbers | 165| =display-line-numbers-type= | View ▸ Show Line Numbers (=⇧⌘L=), View ▸ Line Numbers |
164| =tab-bar= | View ▸ Show Tab Bar | 166| =tab-bar= | View ▸ Show Tab Bar |