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 {
584584 @AppStorage("prettyEntities") private var prettyEntities = true
585585 @AppStorage("startupTruncated") private var startupTruncated = false
586586 @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
587591 @AppStorage("enforceTodoDependencies") private var enforceTodoDependencies = false
588592 @AppStorage("enforceTodoCheckboxDependencies") private var enforceTodoCheckboxDependencies = false
589593 @AppStorage("agendaSpan") private var agendaSpan = 10
@@ -723,9 +727,32 @@ struct SettingsView: View {
723727 Text("Under a parent with the ORDERED property (Toggle ORDERED Property, C-c C-x o), TODO children are also done in order.")
724728 .settingsFooter()
725729 }
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 }
726748 }
727749 .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" : "" })
729756 }
730757
731758 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-
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, 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=.
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
docs/manual/guide/03-keys.org +1 −1
@@ -142,7 +142,7 @@ With Settings ▸ Capture ▸ "⌃⌥Space opens Capture from any app" on (the d
142142
143143* Speed keys
144144
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.
146146
147147Speed 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]].
148148
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
180180
181181Later sources override earlier ones:
182182
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.
1841842. Keyword flags such as =DONE(d!)=.
1851853. =#+STARTUP= words in the file or its setup files.
1861864. The =LOGGING= property, inherited from ancestors.
@@ -338,9 +338,9 @@ The =COOKIE_DATA= property changes what the parent's cookie counts:
338338| Setting | Where | Default |
339339|-------------------------+-------------------------------------------+----------------------------|
340340| =org-todo-keywords= | Settings ▸ Editing, =config.toml= | See "The default keywords" above |
341| =org-log-done= | =config.toml= | =nil= |
342| =org-log-into-drawer= | =config.toml= | =""= (no drawer) |
341| =org-log-done= | Settings ▸ Editing, =config.toml= | =nil= |
342| =org-log-into-drawer= | Settings ▸ Editing, =config.toml= | =""= (no drawer) |
343343| =org-enforce-todo-dependencies= | Settings ▸ Editing (iOS: Settings ▸ TODO Dependencies), =config.toml= | =false= |
344344| =org-enforce-todo-checkbox-dependencies= | Settings ▸ Editing (iOS: Settings ▸ TODO Dependencies), =config.toml= | =false= |
345345| =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
7777| Default TODO keywords | Text in =#+TODO= syntax, one sequence per line | See below | =org-todo-keywords= |
7878| Entries can't be done before their TODO children (org-enforce-todo-dependencies) | On or off | Off | =org-enforce-todo-dependencies= |
7979| 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= |
8084
8185The 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.
8286
@@ -88,6 +92,8 @@ Default TODO keywords apply to files without a =#+TODO= line. orgstar reads them
8892
8993The two dependency switches are described under Dependencies in [[file:05-todos-and-tags.org][TODOs and tags]].
9094
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
9197** Language
9298
9399orgstar'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
145151
146152| Key | Also in |
147153|----------------------------------+----------------------------|
148| =org-log-done= | |
149154| =org-log-reschedule= | |
150155| =org-log-redeadline= | |
151| =org-log-into-drawer= | |
152156| =org-startup-indented= | |
153157| =org-hide-leading-stars= | |
154158| =org-startup-align-all-tables= | |
@@ -157,8 +161,6 @@ These settings have no control in the Settings window. Some are in the View menu
157161| =org-display-remote-inline-images= | |
158162| =org-cycle-hide-drawer-startup= | |
159163| =org-cycle-hide-block-startup= | |
160| =org-use-speed-commands= | |
161| =spell-check= | |
162164| =electric-pair-mode= | |
163165| =display-line-numbers-type= | View ▸ Show Line Numbers (=⇧⌘L=), View ▸ Line Numbers |
164166| =tab-bar= | View ▸ Show Tab Bar |