Commit cba778d55e

cba778d55e19c2c7a8dce862eb5d5f46d3d8c792

parent: 4490568b51

Verified · cmc

cmc <hello@cleberg.net> · 2026-10-10 18:10 UTC

Name the app orgstar, in lowercase

- Display and bundle names in the iOS and Mac Info.plists (the app, its
  extensions and widgets); the productivity category in the plists
  instead of build settings Xcode ignores with a custom Info.plist.
- The Mac and Simulator script builds make orgstar.app.
- Every user-facing string in both apps, the config.toml and theme file
  headers, the README and the manual.
- Unchanged: executables, modules, the Xcode project and scheme names,
  and the Application Support folder, so existing data stays found.

Layout: unified · split

Package.swift +1 −1
@@ -85,7 +85,7 @@ let package = Package(
8585 .executableTarget(name: "Orgstar", dependencies: ["OrgApp", "OrgEditorAppKit", "OrgHighlight"]),
8686 // The iOS app, bundled by scripts/build-ios-app.sh.
8787 .executableTarget(name: "OrgstarMobile", dependencies: ["OrgApp", "OrgHighlight"]),
88 // App extensions, bundled into Orgstar.app by scripts/build-app.sh.
88 // App extensions, bundled into orgstar.app by scripts/build-app.sh.
8989 .executableTarget(name: "OrgstarQuickLook", dependencies: ["OrgCore"], linkerSettings: extensionEntry),
9090 .executableTarget(name: "OrgstarSpotlight", dependencies: ["OrgCore"], linkerSettings: extensionEntry),
9191 // The iOS share extension, bundled into the iOS app by scripts/build-ios-app.sh.
README.md +11 −11
@@ -1,8 +1,8 @@
1# Orgstar
1# orgstar
22
33A native macOS editor for org-mode files, with an iOS app for iPhone and iPad.
44
5The files are the source of truth: Orgstar edits them in place and leaves
5The files are the source of truth: orgstar edits them in place and leaves
66every byte you didn't change as it was, so Emacs and sync tools can work on
77the same folder.
88
@@ -17,13 +17,13 @@ and tangling, Simulator builds only so far.
1717Requires macOS 26 and Xcode 27 (Swift 6.2 tools).
1818
1919```sh
20scripts/build-app.sh # builds .build/app/Orgstar.app, signed ad hoc
21open .build/app/Orgstar.app
20scripts/build-app.sh # builds .build/app/orgstar.app, signed ad hoc
21open .build/app/orgstar.app
2222```
2323
2424Add a folder with File > Add Folder… (⇧⌘O). ⌘P opens a file by name, ⇧⌘F
2525searches, ⇧⌘A shows the agenda. In the editor, TAB on a heading cycles its
26folding and Shift-TAB cycles the whole file. Orgstar opens `.org` files from
26folding and Shift-TAB cycles the whole file. orgstar opens `.org` files from
2727Finder once the app has been launched.
2828
2929C-c C-v t tangles the file's source blocks into the files their `:tangle`
@@ -32,7 +32,7 @@ header names, as `org-babel-tangle` does.
3232`org-protocol://capture?template=…&url=…&title=…&body=…` and
3333`org-protocol://store-link?url=…&title=…` links work as in Emacs, so browser
3434bookmarklets written for org-protocol work unchanged. Shortcuts has a
35"Capture to Orgstar" action that files text with a capture template.
35"Capture to orgstar" action that files text with a capture template.
3636
3737The iOS app (iOS 26) is the "Orgstar iOS" scheme in `ios/Orgstar.xcodeproj`, with the
3838share and Quick Look extensions. It builds from the package's sources and signs
@@ -40,15 +40,15 @@ automatically with the team set in the project; choose a device or Simulator and
4040For the Simulator without Xcode:
4141
4242```sh
43scripts/build-ios-app.sh # builds .build/ios-app/Orgstar.app
44xcrun simctl install booted .build/ios-app/Orgstar.app
43scripts/build-ios-app.sh # builds .build/ios-app/orgstar.app
44xcrun simctl install booted .build/ios-app/orgstar.app
4545```
4646
47On iOS, Orgstar in the share sheet takes a page or text with a template; the
47On iOS, orgstar in the share sheet takes a page or text with a template; the
4848app opens its capture sheet with it when it's next active. Shortcuts has the
49same "Capture to Orgstar" action as on the Mac.
49same "Capture to orgstar" action as on the Mac.
5050
51Settings live in `~/.config/orgstar/config.toml` (Orgstar ▸ Edit Config File),
51Settings live in `~/.config/orgstar/config.toml` (orgstar ▸ Edit Config File),
5252with keys in `keymap.toml` and capture templates in `capture.toml` beside it.
5353Settings ▸ General ▸ Import from Emacs reads an existing Emacs or Doom
5454configuration.
Sources/OrgApp/EmacsImport.swift +6 −6
@@ -449,11 +449,11 @@ public struct EmacsImport: Sendable {
449449 continue
450450 }
451451 guard let command = Self.commands[commandName] else {
452 unsupported.append(Note(id: id(), name: "\(binding.keys) → \(commandName)", reason: "Orgstar has no such command", source: binding.source))
452 unsupported.append(Note(id: id(), name: "\(binding.keys) → \(commandName)", reason: "orgstar has no such command", source: binding.source))
453453 continue
454454 }
455455 guard let keys = KeySequence.parse(binding.keys).map(KeySequence.format) else {
456 unsupported.append(Note(id: id(), name: binding.keys, reason: "keys Orgstar can't read", source: binding.source))
456 unsupported.append(Note(id: id(), name: binding.keys, reason: "keys orgstar can't read", source: binding.source))
457457 continue
458458 }
459459 let modes = isDoom ? binding.modes.map { $0 ?? "normal" } : binding.modes
@@ -510,7 +510,7 @@ public struct EmacsImport: Sendable {
510510 case "org-log-into-drawer":
511511 if let s = value.string { add(name, .string(s)) } else { add(name, .string(truthy ? "LOGBOOK" : "")) }
512512 case "display-line-numbers-type":
513 add(name, .bool(truthy), truthy && value.symbol != "t" ? "display-line-numbers-type = true (Orgstar numbers lines absolutely)" : nil)
513 add(name, .bool(truthy), truthy && value.symbol != "t" ? "display-line-numbers-type = true (orgstar numbers lines absolutely)" : nil)
514514 case "org-agenda-span":
515515 let days: Int? = value.integer ?? ["day": 1, "week": 7, "fortnight": 14, "month": 30, "year": 365][value.symbol ?? ""]
516516 guard let days else { return note("unknown span \(value.description)") }
@@ -545,13 +545,13 @@ public struct EmacsImport: Sendable {
545545 case "org-capture-templates":
546546 for entry in value.elements ?? [] { captureTemplate(entry, source: source, env: env, id: id) }
547547 case "doom-font":
548 note("not a font-spec Orgstar can read")
548 note("not a font-spec orgstar can read")
549549 case "doom-variable-pitch-font":
550 note("Orgstar uses one font; set it with doom-font or [theme] font")
550 note("orgstar uses one font; set it with doom-font or [theme] font")
551551 case "doom-theme":
552552 note("Emacs themes aren't read; set colors under [theme] in config.toml")
553553 default:
554 note("Orgstar has no equivalent")
554 note("orgstar has no equivalent")
555555 }
556556 }
557557
Sources/OrgApp/LinkFollow.swift +3 −3
@@ -45,16 +45,16 @@ extension DocumentSession {
4545 case "coderef":
4646 return .message("Coderef links aren't supported")
4747 case "shell", "elisp":
48 return .message("Orgstar doesn't run \(link.type) links")
48 return .message("orgstar doesn't run \(link.type) links")
4949 default:
50 return .message("Orgstar can't open \(link.type) links")
50 return .message("orgstar can't open \(link.type) links")
5151 }
5252 }
5353
5454 static func url(_ string: String) -> LinkFollow {
5555 let allowed = CharacterSet.urlFragmentAllowed.union(.urlQueryAllowed).union(CharacterSet(charactersIn: "#%"))
5656 guard let url = URL(string: string.addingPercentEncoding(withAllowedCharacters: allowed) ?? string) else {
57 return .message("Not a link Orgstar can open: \(string)")
57 return .message("Not a link orgstar can open: \(string)")
5858 }
5959 return .openExternally(url)
6060 }
Sources/OrgApp/UserConfig.swift +3 −3
@@ -146,7 +146,7 @@ public enum UserConfig {
146146 Setting(section: "", key: "org-agenda-start-day", defaultsKey: "agendaStartOffset", kind: .dayOffset, fallback: .string("+0d"),
147147 comment: "the agenda's first day: \"-3d\", \"+0d\"", legacy: "agenda.start-offset"),
148148 Setting(section: "", key: "org-agenda-show-all-dates", defaultsKey: "agendaShowAllDates", kind: .bool, fallback: .bool(false),
149 comment: "show days with no entries (Emacs's default is t; Orgstar hides them); today always shows", legacy: ""),
149 comment: "show days with no entries (Emacs's default is t; orgstar hides them); today always shows", legacy: ""),
150150 Setting(section: "", key: "org-agenda-skip-scheduled-if-done", defaultsKey: "agendaSkipScheduledIfDone", kind: .bool, fallback: .bool(false),
151151 comment: "leave done entries out of the agenda even on the day they are scheduled", legacy: ""),
152152 Setting(section: "", key: "org-agenda-skip-deadline-if-done", defaultsKey: "agendaSkipDeadlineIfDone", kind: .bool, fallback: .bool(false),
@@ -379,8 +379,8 @@ public enum UserConfig {
379379
380380 private static func template(_ value: (Setting) -> TOML.Value) -> String {
381381 var out = """
382 # Orgstar settings. The Settings window writes its changes here, and edits made here
383 # apply while Orgstar runs. Keys go in keymap.toml, capture templates in capture.toml
382 # orgstar settings. The Settings window writes its changes here, and edits made here
383 # apply while orgstar runs. Keys go in keymap.toml, capture templates in capture.toml
384384 # and saved agenda views in views.toml, all in this folder.
385385
386386 # Emacs variables, by their Emacs names.
Sources/OrgCore/Capture/Capture.swift +1 −1
@@ -409,7 +409,7 @@ public enum Capture {
409409 }
410410 consumed = j - i
411411 case "(":
412 return .failure(.message("Template escapes like %( run Emacs Lisp, which Orgstar doesn't."))
412 return .failure(.message("Template escapes like %( run Emacs Lisp, which orgstar doesn't."))
413413 case "[":
414414 return .failure(.message("Template escapes like %[file] aren't supported yet."))
415415 default:
Sources/OrgCore/Compute/BabelExpand.swift +1 −1
@@ -518,7 +518,7 @@ extension Babel {
518518 run = "echo | clojure -M \(file)\n"
519519 programs = ["clojure"]
520520 case let backend?:
521 throw Failure.message("The \(backend) backend for clojure needs Emacs; Orgstar runs babashka or clojure-cli.")
521 throw Failure.message("The \(backend) backend for clojure needs Emacs; orgstar runs babashka or clojure-cli.")
522522 }
523523 return CompiledRun(source: expanded, script: start + "cat > \(file)\n" + run + end, programs: [programs])
524524 default:
Sources/OrgEditorAppKit/EditorCommands.swift +1 −1
@@ -59,7 +59,7 @@ public enum EditorCommands {
5959 EditorCommand(id: "app.block.cancel", title: "Leave Block", action: .app),
6060
6161 EditorCommand(id: "app.save", title: "Save", action: .app),
62 EditorCommand(id: "app.quit", title: "Quit Orgstar", action: .app),
62 EditorCommand(id: "app.quit", title: "Quit orgstar", action: .app),
6363 EditorCommand(id: "app.save-all", title: "Save All Buffers", action: .app),
6464 EditorCommand(id: "app.buffer.switch", title: "Switch to Buffer…", action: .app),
6565 EditorCommand(id: "app.buffer.kill", title: "Close Buffer", action: .app),
Sources/OrgPresentation/ThemeSpec.swift +1 −1
@@ -225,7 +225,7 @@ public struct ThemeSpec: Equatable, Sendable {
225225 /// The default theme written out, to copy colors from.
226226 public static func defaultThemeFile() -> String {
227227 var out = """
228 # Orgstar's default theme, for reference: Orgstar writes this file again each time it
228 # orgstar's default theme, for reference: orgstar writes this file again each time it
229229 # starts, so change colors in config.toml. A key set under [theme] colors both
230230 # appearances; [theme.light] and [theme.dark] set one. Colors are "#rrggbb" or
231231 # "#rrggbbaa". [theme.todo] colors TODO keywords by name, as org-todo-keyword-faces:
Sources/Orgstar/AgendaView.swift +1 −1
@@ -656,7 +656,7 @@ struct AgendaView: View {
656656 /// How far ahead notifications are set, as the design asks the agenda to show.
657657 private var reminderStatus: String? {
658658 guard let scheduler, remindersEnabled else { return nil }
659 if !scheduler.isAuthorized { return "Notifications are off for Orgstar in System Settings." }
659 if !scheduler.isAuthorized { return "Notifications are off for orgstar in System Settings." }
660660 guard let through = scheduler.scheduledThrough else { return nil }
661661 return "Reminders are set through " + through.formatted(.dateTime.weekday(.abbreviated).day().month(.abbreviated).hour().minute()) + "."
662662 }
Sources/Orgstar/CaptureIntent.swift +2 −2
@@ -6,7 +6,7 @@ import OrgCore
66/// Shortcuts' "Capture to Orgstar": files text with a capture template without the capture
77/// window. Prompts in the template take their defaults.
88struct CaptureIntent: AppIntent {
9 static let title: LocalizedStringResource = "Capture to Orgstar"
9 static let title: LocalizedStringResource = "Capture to orgstar"
1010 static let description = IntentDescription("Files text with one of your capture templates.")
1111
1212 @Parameter(title: "Text")
@@ -27,7 +27,7 @@ struct CaptureIntent: AppIntent {
2727 func perform() async throws -> some IntentResult & ReturnsValue<String> & ProvidesDialog {
2828 // Launched for the intent, the window sets the models up shortly.
2929 for _ in 0..<50 where Self.environment == nil { try? await Task.sleep(for: .milliseconds(100)) }
30 guard let (workspace, session, clock, commands) = Self.environment else { throw Failure(message: "Orgstar isn't ready") }
30 guard let (workspace, session, clock, commands) = Self.environment else { throw Failure(message: "orgstar isn't ready") }
3131 let placed = session.capture(
3232 text, templateKey: template, templates: CaptureTemplates.load().templates, workspace: workspace, clock: clock,
3333 clipboard: NSPasteboard.general.string(forType: .string) ?? "", userName: NSFullUserName()
Sources/Orgstar/ContentView.swift +2 −2
@@ -212,7 +212,7 @@ struct ContentView: View {
212212 }
213213 }
214214 }
215 .navigationTitle(previewPath.map { ($0 as NSString).lastPathComponent } ?? session.path.map(session.bufferName) ?? "Orgstar")
215 .navigationTitle(previewPath.map { ($0 as NSString).lastPathComponent } ?? session.path.map(session.bufferName) ?? "orgstar")
216216 .navigationSubtitle(session.isReadOnly ? "Read-only: not UTF-8" : "")
217217 .searchable(text: $query, placement: .toolbar, prompt: "Search notes")
218218 .searchFocused($searchFocused)
@@ -333,7 +333,7 @@ struct ContentView: View {
333333 commands.showingQuickOpen = false
334334 }
335335 }
336 .alert("Orgstar", isPresented: errorShown) {
336 .alert("orgstar", isPresented: errorShown) {
337337 Button("OK") {
338338 workspace.lastError = nil
339339 session.lastError = nil
Sources/Orgstar/EmacsImportView.swift +1 −1
@@ -104,7 +104,7 @@ struct EmacsImportView: View {
104104
105105 private func footnote(_ result: EmacsImport) -> String {
106106 var parts = ["\(result.skipped) variables not about org left alone"]
107 if result.doomDefaultsLeftOut > 0 { parts.append("\(result.doomDefaultsLeftOut) Doom defaults Orgstar has no use for") }
107 if result.doomDefaultsLeftOut > 0 { parts.append("\(result.doomDefaultsLeftOut) Doom defaults orgstar has no use for") }
108108 return parts.joined(separator: "; ")
109109 }
110110
Sources/Orgstar/OrgstarApp.swift +5 −5
@@ -121,7 +121,7 @@ final class AppCommands {
121121 NSPasteboard.general.clearContents()
122122 NSPasteboard.general.setString(link, forType: .string)
123123 case nil:
124 show("Orgstar handles org-protocol capture and store-link")
124 show("orgstar handles org-protocol capture and store-link")
125125 }
126126 }
127127
@@ -302,7 +302,7 @@ struct OrgstarApp: App {
302302 }
303303
304304 var body: some Scene {
305 Window("Orgstar", id: "main") {
305 Window("orgstar", id: "main") {
306306 switch workspace {
307307 case .success(let model):
308308 ContentView(workspace: model, session: session, commands: commands, scheduler: scheduler, clock: clock)
@@ -568,7 +568,7 @@ struct SettingsView: View {
568568 Section {
569569 LabeledContent("config.toml") {
570570 HStack {
571 Button("Edit in Orgstar") { editConfig() }
571 Button("Edit in orgstar") { editConfig() }
572572 Button("Open with Default App") { NSWorkspace.shared.open(UserConfig.configFile) }
573573 Button("Show in Finder") { NSWorkspace.shared.activateFileViewerSelecting([UserConfig.configFile]) }
574574 }
@@ -636,7 +636,7 @@ struct SettingsView: View {
636636 Section {
637637 TextField("Default TODO keywords", text: $todoKeywords, axis: .vertical)
638638 } footer: {
639 Text("For files without #+TODO, in #+TODO syntax, one sequence per line. Takes effect when Orgstar restarts.")
639 Text("For files without #+TODO, in #+TODO syntax, one sequence per line. Takes effect when orgstar restarts.")
640640 .settingsFooter()
641641 }
642642 Section {
@@ -703,7 +703,7 @@ struct SettingsView: View {
703703 Toggle("Show events from Calendar", isOn: $calendarEvents)
704704 if calendarEvents {
705705 if calendars.isEmpty {
706 Text(CalendarEvents.isAuthorized ? "No calendars." : "Allow Orgstar to read your calendars in System Settings ▸ Privacy & Security ▸ Calendars.")
706 Text(CalendarEvents.isAuthorized ? "No calendars." : "Allow orgstar to read your calendars in System Settings ▸ Privacy & Security ▸ Calendars.")
707707 .foregroundStyle(.secondary)
708708 }
709709 ForEach(calendars, id: \.id) { calendar in
Sources/OrgstarMobile/AgendaScreen.swift +2 −2
@@ -249,10 +249,10 @@ struct AgendaScreen: View, Equatable {
249249 /// at most 64, and sets no more while the app isn't opened.
250250 private var reminderStatus: String? {
251251 guard OrgPreferences.reminders() else { return nil }
252 if !scheduler.isAuthorized { return "Notifications are off for Orgstar in Settings." }
252 if !scheduler.isAuthorized { return "Notifications are off for orgstar in Settings." }
253253 guard let through = scheduler.scheduledThrough else { return nil }
254254 return "Reminders are set through " + through.formatted(.dateTime.weekday(.abbreviated).day().month(.abbreviated).hour().minute())
255 + ". Open Orgstar to set later ones."
255 + ". Open orgstar to set later ones."
256256 }
257257
258258 // MARK: - Days
Sources/OrgstarMobile/CaptureIntent.swift +2 −2
@@ -7,7 +7,7 @@ import OrgCore
77/// sheet. Prompts in the template take their defaults, and `%c` is empty: reading the
88/// pasteboard would ask for permission on every run.
99struct CaptureIntent: AppIntent {
10 static let title: LocalizedStringResource = "Capture to Orgstar"
10 static let title: LocalizedStringResource = "Capture to orgstar"
1111 static let description = IntentDescription("Files text with one of your capture templates.")
1212
1313 @Parameter(title: "Text")
@@ -24,7 +24,7 @@ struct CaptureIntent: AppIntent {
2424 @MainActor
2525 func perform() async throws -> some IntentResult & ReturnsValue<String> & ProvidesDialog {
2626 let model = MobileModel.shared
27 guard let workspace = model.workspace else { throw Failure(message: model.failure ?? "Orgstar isn't ready") }
27 guard let workspace = model.workspace else { throw Failure(message: model.failure ?? "orgstar isn't ready") }
2828 let placed = model.session.capture(
2929 text, templateKey: template, templates: CaptureTemplates.load().templates, workspace: workspace, clock: model.clock,
3030 clipboard: "", userName: ""
Sources/OrgstarMobile/OrgstarMobileApp.swift +1 −1
@@ -306,6 +306,6 @@ struct RootView: View {
306306/// The iOS app has nothing to run elsewhere.
307307@main
308308enum OrgstarMobileUnavailable {
309 static func main() { print("Orgstar for iOS runs on iPhone and iPad.") }
309 static func main() { print("orgstar for iOS runs on iPhone and iPad.") }
310310}
311311#endif
Sources/OrgstarShare/ShareViewController.swift +3 −3
@@ -70,7 +70,7 @@ struct ShareForm: View {
7070 NavigationStack {
7171 Form {
7272 if !available {
73 Text("Orgstar's shared folder isn't available.").foregroundStyle(.red)
73 Text("orgstar's shared folder isn't available.").foregroundStyle(.red)
7474 }
7575 if !templates.isEmpty {
7676 Picker("Template", selection: $template) {
@@ -88,10 +88,10 @@ struct ShareForm: View {
8888 }
8989 Section {
9090 } footer: {
91 Text("Orgstar files it with the template when you next open it.")
91 Text("orgstar files it with the template when you next open it.")
9292 }
9393 }
94 .navigationTitle("Orgstar")
94 .navigationTitle("orgstar")
9595 .navigationBarTitleDisplayMode(.inline)
9696 .toolbar {
9797 ToolbarItem(placement: .cancellationAction) { Button("Cancel") { finish(nil) } }
Sources/OrgstarWidgets/TodayWidget.swift +1 −1
@@ -25,7 +25,7 @@ struct TodayView: View {
2525 if let snapshot = entry.snapshot {
2626 content(snapshot)
2727 } else {
28 Text("Open Orgstar to show your agenda here.")
28 Text("Open orgstar to show your agenda here.")
2929 .font(.caption)
3030 .foregroundStyle(.secondary)
3131 .frame(maxWidth: .infinity, maxHeight: .infinity)
Sources/OrgstarWidgets/UpNextWidget.swift +1 −1
@@ -56,7 +56,7 @@ struct UpNextView: View {
5656 } else {
5757 VStack(alignment: .leading, spacing: 0) {
5858 Text("Agenda").font(.headline).widgetAccentable()
59 Text(entry.snapshot == nil ? "Open Orgstar" : "Nothing left today").font(.body)
59 Text(entry.snapshot == nil ? "Open orgstar" : "Nothing left today").font(.body)
6060 }
6161 .frame(maxWidth: .infinity, alignment: .leading)
6262 }
Tests/OrgAppTests/AppTests.swift +1 −1
@@ -1062,7 +1062,7 @@ struct LinkFollowTests {
10621062 #expect(follow("file:pic.png") == .message("No file " + (notes.url.appendingPathComponent("sub/pic.png").path as NSString).standardizingPath))
10631063 #expect(follow("https://orgmode.org/a b") == .openExternally(URL(string: "https://orgmode.org/a%20b")!))
10641064 #expect(follow("doi:10.1000/182") == .openExternally(URL(string: "https://doi.org/10.1000/182")!))
1065 #expect(follow("shell:rm -rf x") == .message("Orgstar doesn't run shell links"))
1065 #expect(follow("shell:rm -rf x") == .message("orgstar doesn't run shell links"))
10661066 }
10671067
10681068 @Test func followsAttachmentAndRadioLinks() throws {
Tests/OrgCoreTests/BabelCompiledTests.swift +1 −1
@@ -220,6 +220,6 @@ struct BabelCompiledTests {
220220 Issue.record("planned cider")
221221 return
222222 }
223 #expect(message == "The cider backend for clojure needs Emacs; Orgstar runs babashka or clojure-cli.")
223 #expect(message == "The cider backend for clojure needs Emacs; orgstar runs babashka or clojure-cli.")
224224 }
225225}
docs/manual/guide/01-files-and-folders.org +30 −30
@@ -1,23 +1,23 @@
11#+TITLE: Files, folders and buffers
2#+DESCRIPTION: Adding folders, opening files, working with buffers, searching, saving, and how Orgstar handles changes made outside it.
3#+LEDE: Orgstar works on folders of files you add to its sidebar, keeps each open file in a buffer, saves on its own, and merges changes other programs make to the same files.
2#+DESCRIPTION: Adding folders, opening files, working with buffers, searching, saving, and how orgstar handles changes made outside it.
3#+LEDE: orgstar works on folders of files you add to its sidebar, keeps each open file in a buffer, saves on its own, and merges changes other programs make to the same files.
44
55* The window
66
7Orgstar has one main window, titled with the name of the buffer it shows. From left to right it holds:
7orgstar has one main window, titled with the name of the buffer it shows. From left to right it holds:
88
99- the *sidebar*, listing the folders you added and the files in them;
1010- the *outline pane*, listing the headings of the open file, with the *backlinks pane* under it;
1111- the *editor*, with the optional tab bar above it and the modeline and echo area below it;
1212- the *inspector*, hidden by default, showing column view and clocked time.
1313
14The toolbar holds a button that shows or hides the outline pane, a progress indicator while Orgstar indexes your folders, the running clock (see [[file:06-dates-and-clocking.org][Dates and clocking]]), a =Conflict= button when the open file has a conflict (see /Conflicts/ below), and the search field.
14The toolbar holds a button that shows or hides the outline pane, a progress indicator while orgstar indexes your folders, the running clock (see [[file:06-dates-and-clocking.org][Dates and clocking]]), a =Conflict= button when the open file has a conflict (see /Conflicts/ below), and the search field.
1515
1616The window title is the buffer name (see /Buffer names/ below). When the open file is not UTF-8, the subtitle reads =Read-only: not UTF-8=. The close button shows the unsaved-changes dot while any open buffer has unsaved edits.
1717
1818With no folders added, the editor area reads "Add a folder of org files". With folders but no open file, it reads "Choose a file" and suggests =⌘P=.
1919
20The Agenda, Board, Clock Report and Capture windows are separate; they are covered in [[file:07-agenda.org][Agenda]], [[file:06-dates-and-clocking.org][Dates and clocking]] and [[file:08-capture.org][Capture]]. Closing the main window quits Orgstar when no other window is open.
20The Agenda, Board, Clock Report and Capture windows are separate; they are covered in [[file:07-agenda.org][Agenda]], [[file:06-dates-and-clocking.org][Dates and clocking]] and [[file:08-capture.org][Capture]]. Closing the main window quits orgstar when no other window is open.
2121
2222** Menus and the command palette
2323
@@ -38,27 +38,27 @@ Several commands in this chapter are only in the palette, not in a menu: Close O
3838
3939The toolbar's outline button does the same as View ▸ Show or Hide Outline. The sidebar is shown and hidden with the standard View menu command.
4040
41Orgstar remembers whether the outline, backlinks and inspector are shown. The outline pane's visibility is remembered for org files only: for other files it starts hidden each time you open one. Drag the divider on the outline pane's right edge to resize it (160 to 400 points; 220 by default).
41orgstar remembers whether the outline, backlinks and inspector are shown. The outline pane's visibility is remembered for org files only: for other files it starts hidden each time you open one. Drag the divider on the outline pane's right edge to resize it (160 to 400 points; 220 by default).
4242
4343* Folders
4444
45Orgstar does not open a single folder like a project. You add any number of folders, called roots, and each appears as a section of the sidebar. Orgstar indexes every org file in them for search, the agenda, refiling, backlinks and IDs.
45orgstar does not open a single folder like a project. You add any number of folders, called roots, and each appears as a section of the sidebar. orgstar indexes every org file in them for search, the agenda, refiling, backlinks and IDs.
4646
4747** Adding a folder
4848
49Choose File ▸ Add Folder… (=⇧⌘O=), or click =+= at the bottom of the sidebar, and pick a folder. Orgstar indexes it in the background; the toolbar shows a progress indicator while it works.
49Choose File ▸ Add Folder… (=⇧⌘O=), or click =+= at the bottom of the sidebar, and pick a folder. orgstar indexes it in the background; the toolbar shows a progress indicator while it works.
5050
51Orgstar keeps a bookmark to each folder, so a folder you move or rename in Finder is followed. If a folder can't be found at launch, Orgstar reports =Can't find the folder PATH.= Adding a folder that is already in the sidebar does nothing.
51orgstar keeps a bookmark to each folder, so a folder you move or rename in Finder is followed. If a folder can't be found at launch, orgstar reports =Can't find the folder PATH.= Adding a folder that is already in the sidebar does nothing.
5252
53Orgstar keeps the list of folders, the index and recovery versions in =~/Library/Application Support/Orgstar=.
53orgstar keeps the list of folders, the index and recovery versions in =~/Library/Application Support/Orgstar=.
5454
5555** Removing a folder
5656
57Click =−= at the bottom of the sidebar and choose the folder, or right-click the folder's header and choose Remove from Sidebar…. Confirm with =Remove=. The folder and its files stay on disk; only Orgstar's index entries for them are removed.
57Click =−= at the bottom of the sidebar and choose the folder, or right-click the folder's header and choose Remove from Sidebar…. Confirm with =Remove=. The folder and its files stay on disk; only orgstar's index entries for them are removed.
5858
5959** What the sidebar lists
6060
61Each root is a collapsible section headed by the folder's name; hover over the name to see its full path. Roots are sorted by path. Inside a root, subfolders come first, then files, each sorted by name the way Finder sorts them. Orgstar remembers which roots you collapsed.
61Each root is a collapsible section headed by the folder's name; hover over the name to see its full path. Roots are sorted by path. Inside a root, subfolders come first, then files, each sorted by name the way Finder sorts them. orgstar remembers which roots you collapsed.
6262
6363The sidebar lists every file in the folder, not only org files, with an icon for its kind:
6464
@@ -78,7 +78,7 @@ Some files are never listed or indexed:
7878
7979- Emacs backups (names ending in =~=), auto-save files (names starting with =#=) and lock files (=.#name=);
8080- Syncthing's temporary files (=.syncthing.*=);
81- Orgstar's own temporary files (names containing =.orgstar-=);
81- orgstar's own temporary files (names containing =.orgstar-=);
8282- =.DS_Store= and =.localized=;
8383- anything inside these folders: =.git=, =.hg=, =.svn=, =.jj=, =.bzr=, =.stfolder=, =.stversions=, =.Trash=, =.Spotlight-V100=, =.fseventsd=, =.build=, =.venv=, =.cache=, =.tox=, =.mypy_cache=, =.pytest_cache=, =.gradle=, =.next=, =.terraform= and =node_modules=.
8484
@@ -108,13 +108,13 @@ Right-click a root's header for New File…, Expand or Collapse, Show in Finder
108108Click a file in the sidebar to open it. Other ways:
109109
110110- *Quick Open*: File ▸ Quick Open… (=⌘P=; =C-x C-f= in the Emacs and Doom presets; =SPC SPC=, =SPC .= or =SPC f f= in Doom normal state). Type part of a file's path below its root. Characters match in order, not necessarily next to each other; matches at the start of a word and runs of consecutive characters rank higher, and shorter paths win ties. Up to 50 matches show, with each file's name and path. The top match is selected; =↑= and =↓=, or =C-p= and =C-n=, move the selection. Press =Return= to open the selected match or click any match; =Escape= closes the list. Syncthing conflict copies are left out.
111- *Finder*: open an org file from Finder, with =open file.org= in Terminal, or by dropping it on Orgstar's Dock icon. Orgstar registers as the default app for org files and as an alternative editor for plain text. Each file opens as a buffer.
111- *Finder*: open an org file from Finder, with =open file.org= in Terminal, or by dropping it on orgstar's Dock icon. orgstar registers as the default app for org files and as an alternative editor for plain text. Each file opens as a buffer.
112112- *Links*: following a =file:= link or an ID link opens the target file; see [[file:09-links.org][Links]].
113113- *Doom ex command*: =:e FILE= opens =FILE=, relative to the current file's folder; =~= is expanded. A file that doesn't exist is reported as =No file FILE=.
114114
115A file opened from Finder or by a link does not have to be inside one of your folders. Such a file is edited and saved normally, but it isn't listed in the sidebar, isn't indexed for search or the agenda, and isn't watched for outside changes (Orgstar still merges outside changes when it saves; see /Saving/ below).
115A file opened from Finder or by a link does not have to be inside one of your folders. Such a file is edited and saved normally, but it isn't listed in the sidebar, isn't indexed for search or the agenda, and isn't watched for outside changes (orgstar still merges outside changes when it saves; see /Saving/ below).
116116
117Orgstar has no Open Recent menu. Instead, it reopens the buffers that were open when you quit, in the same order, with the same file showing and each caret where you left it. Files that no longer exist are skipped.
117orgstar has no Open Recent menu. Instead, it reopens the buffers that were open when you quit, in the same order, with the same file showing and each caret where you left it. Files that no longer exist are skipped.
118118
119119** Files that aren't org
120120
@@ -124,7 +124,7 @@ How a file opens depends on what it is:
124124- *Text files* open in the same editor as plain text. A file counts as text when macOS knows its type as text, or, for unknown types, when its first 8 KB are valid UTF-8 with no NUL bytes. Org commands report =Not an org file=, and the outline pane shows "No outline" when you turn it on. Files in these languages get syntax highlighting: shell (=.sh=, =.bash=, =.zsh=, =.zshrc=, =.bashrc=, =.profile=), Python, Emacs Lisp, C, C++, R, JavaScript, Java, Scheme, Clojure, Haskell, Rust, Go, Ruby, JSON, YAML, TOML and Lua.
125125- *Everything else* (images, PDFs, audio, video, archives, binary files) shows a Quick Look preview in place of the editor, with =Open with Default App= and =Show in Finder= buttons below it. The preview is not a buffer.
126126
127Text files from Finder use Orgstar only if you choose it with Open With, since Orgstar is not their default app.
127Text files from Finder use orgstar only if you choose it with Open With, since orgstar is not their default app.
128128
129129* Buffers
130130
@@ -150,7 +150,7 @@ Switch to Buffer asks in the echo area. The choices are the open buffers, most r
150150
151151Close Buffer closes the current buffer and shows the buffer you showed before it. With no buffer open, =⌘W= closes the window. In other windows (Agenda, Board and so on) =⌘W= closes that window. File ▸ Close Window (=⇧⌘W=) closes the window in front.
152152
153When you close buffers with unsaved edits, what happens depends on the save mode (see /Saving/ below): in automatic mode they are saved first; in explicit mode Orgstar asks =Save=, =Don't Save= or =Cancel= (=Save All= for several files). A buffer whose save fails or conflicts stays open.
153When you close buffers with unsaved edits, what happens depends on the save mode (see /Saving/ below): in automatic mode they are saved first; in explicit mode orgstar asks =Save=, =Don't Save= or =Cancel= (=Save All= for several files). A buffer whose save fails or conflicts stays open.
154154
155155** Buffer names
156156
@@ -179,7 +179,7 @@ While the field holds text, the outline pane shows the results in place of the o
179179
180180How matching works:
181181
182- Orgstar searches heading titles and the text under each heading, in =.org= and =.org_archive= files. Text before the first heading and files that aren't org are not searched. Syncthing conflict copies are not searched.
182- orgstar searches heading titles and the text under each heading, in =.org= and =.org_archive= files. Text before the first heading and files that aren't org are not searched. Syncthing conflict copies are not searched.
183183- Each word you type matches words that start with it: =proj= finds =project= and =projection=.
184184- Every word must match within the same heading.
185185- Up to 50 results show, best matches first.
@@ -219,9 +219,9 @@ The modeline shows a dot while the current buffer has unsaved edits. Buffers wit
219219
220220** How a save works
221221
222Orgstar does not assume it is the only program writing your files. Emacs, Syncthing, iCloud and Git may change them too. Each save:
222orgstar does not assume it is the only program writing your files. Emacs, Syncthing, iCloud and Git may change them too. Each save:
223223
2241. Reads the file on disk. If it has changed since Orgstar last read or wrote it, Orgstar merges those changes into the buffer first (see /External changes/ below). If they conflict with yours, nothing is written and the buffer has a conflict.
2241. Reads the file on disk. If it has changed since orgstar last read or wrote it, orgstar merges those changes into the buffer first (see /External changes/ below). If they conflict with yours, nothing is written and the buffer has a conflict.
2252252. Checks the file again, then writes the buffer to a temporary file in the same folder and replaces the original with it, so the file is never half-written.
2262263. Reads the file back. If another program wrote it at the same moment, the version that lost goes to recovery and the other program's changes are merged where possible.
227227
@@ -231,10 +231,10 @@ A save keeps the file's encoding details: a UTF-8 byte order mark stays, and tex
231231
232232* External changes
233233
234Orgstar watches the files in your folders. When a file with an open buffer changes on disk:
234orgstar watches the files in your folders. When a file with an open buffer changes on disk:
235235
236236- If the buffer has no unsaved edits, it reloads. The caret and folds stay where they were, mapped through the change.
237- If the buffer has unsaved edits, Orgstar merges the change into the buffer line by line, against the version both started from. Lines changed on one side take that side; lines changed the same way on both sides are taken once. The merged buffer still has unsaved edits and saves as usual.
237- If the buffer has unsaved edits, orgstar merges the change into the buffer line by line, against the version both started from. Lines changed on one side take that side; lines changed the same way on both sides are taken once. The merged buffer still has unsaved edits and saves as usual.
238238- If both sides changed the same lines differently, the buffer has a conflict.
239239
240240Reloading or merging clears the buffer's undo history.
@@ -268,7 +268,7 @@ While a conflict is unresolved, saving that buffer does nothing except reopen th
268268
269269** Syncthing conflict copies
270270
271When 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.
271When 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
273273When 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:
274274
@@ -282,31 +282,31 @@ Each choice moves the copy to recovery and deletes it from the folder. The buffe
282282
283283** Recovery versions
284284
285Whenever 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=.
285Whenever 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
287287Run Recovery Versions… from the palette to see the open file's versions, newest first, each with its date and why it was kept:
288288
289289| Label | Meaning |
290290|-------------------------+-------------------------------------------------|
291291| Your version, replaced | Your buffer, before it was replaced |
292| Disk version, replaced | The file on disk, before Orgstar wrote over it |
292| Disk version, replaced | The file on disk, before orgstar wrote over it |
293293| Sync conflict copy | A Syncthing conflict copy you resolved |
294294
295295Select a version to see how it differs from the buffer (=-= in the buffer, =+= in the kept version). =Restore= puts the kept version's text in the buffer as one edit, which undo reverses; the buffer as it was goes to recovery first. =Show in Finder= reveals the kept file.
296296
297297** iCloud
298298
299Files in iCloud Drive that aren't downloaded to the Mac show in the sidebar with a cloud icon and grey text, with the tooltip "Downloading from iCloud". Orgstar asks iCloud to download them, and indexes them and lets you open them when they arrive. Files iCloud removes from the Mac to save space keep their index entries until they are back, so search and the agenda still find them.
299Files in iCloud Drive that aren't downloaded to the Mac show in the sidebar with a cloud icon and grey text, with the tooltip "Downloading from iCloud". orgstar asks iCloud to download them, and indexes them and lets you open them when they arrive. Files iCloud removes from the Mac to save space keep their index entries until they are back, so search and the agenda still find them.
300300
301301* Encodings and line endings
302302
303Orgstar edits UTF-8 files, with or without a byte order mark.
303orgstar edits UTF-8 files, with or without a byte order mark.
304304
305- A file that is not valid UTF-8 opens read-only. Its text shows with replacement characters where bytes don't decode, the window subtitle reads =Read-only: not UTF-8=, the modeline shows =Read-only=, and commands that would change it report =This file is read-only.= Orgstar never writes such a file, and refiling or archiving into it is refused.
305- A file that is not valid UTF-8 opens read-only. Its text shows with replacement characters where bytes don't decode, the window subtitle reads =Read-only: not UTF-8=, the modeline shows =Read-only=, and commands that would change it report =This file is read-only.= orgstar never writes such a file, and refiling or archiving into it is refused.
306306- A file with a UTF-8 byte order mark keeps it when saved; the modeline shows =BOM=.
307307- A file containing CRLF line endings shows =CRLF= in the modeline. Existing line endings are kept.
308308
309Orgstar does not convert between encodings or line endings.
309orgstar does not convert between encodings or line endings.
310310
311311* On iOS
312312
docs/manual/guide/02-the-editor.org +6 −6
@@ -18,7 +18,7 @@ View ▸ Show Markup (=⇧⌘M=; palette: Show or Hide Markup) is off by default
1818
1919The line with the caret always shows its markup, so you can edit it. Moving to another line hides it again. Turn Show Markup on to see all markup everywhere. The =config.toml= setting is =show-markup= in =[orgstar]=.
2020
21The two Org options are in Settings ▸ Editing as "Emacs hides emphasis markers (org-hide-emphasis-markers)" and "Emacs shows entities as characters (org-pretty-entities)", and in =config.toml= as =org-hide-emphasis-markers= and =org-pretty-entities=. They also tell Orgstar how wide your Emacs displays text, so tag alignment, table alignment and =M-q= produce the same file Emacs would. Set them to match your Emacs.
21The two Org options are in Settings ▸ Editing as "Emacs hides emphasis markers (org-hide-emphasis-markers)" and "Emacs shows entities as characters (org-pretty-entities)", and in =config.toml= as =org-hide-emphasis-markers= and =org-pretty-entities=. They also tell orgstar how wide your Emacs displays text, so tag alignment, table alignment and =M-q= produce the same file Emacs would. Set them to match your Emacs.
2222
2323** Styling
2424
@@ -135,7 +135,7 @@ With no =#+STARTUP= visibility option, a file opens with every heading shown. Dr
135135#+STARTUP: content hideblocks
136136#+END_SRC
137137
138When the file sets a visibility (=overview=, =content=, =showall=, =showNlevels= and the like, but not =showeverything=), Orgstar then applies each heading's =VISIBILITY= property and folds subtrees tagged =ARCHIVE=, as =org-cycle-set-visibility-according-to-property= and =org-cycle-hide-archived-subtrees= do. =VISIBILITY= takes =folded=, =children=, =content= or =all=:
138When the file sets a visibility (=overview=, =content=, =showall=, =showNlevels= and the like, but not =showeverything=), orgstar then applies each heading's =VISIBILITY= property and folds subtrees tagged =ARCHIVE=, as =org-cycle-set-visibility-according-to-property= and =org-cycle-hide-archived-subtrees= do. =VISIBILITY= takes =folded=, =children=, =content= or =all=:
139139
140140#+BEGIN_SRC org
141141,* Reference
@@ -252,9 +252,9 @@ Electric pairs are on by default and work in org files only. Set =electric-pair-
252252
253253Spell 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=.
254254
255Misspelt 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.
255Misspelt 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.
256256
257Orgstar never corrects spelling on its own; automatic spelling correction, text replacement and smart quotes and dashes are off.
257orgstar never corrects spelling on its own; automatic spelling correction, text replacement and smart quotes and dashes are off.
258258
259259On iOS, spell checking follows =spell-check= in the synced =config.toml=, and is off by default.
260260
@@ -270,7 +270,7 @@ Long lines wrap at the edge of the editor by default. View ▸ Truncate or Wrap
270270
271271To truncate lines in every file, turn on Settings ▸ Editing ▸ "Long lines run off the edge instead of wrapping", or set =org-startup-truncated = true= in =config.toml=. The default is to wrap, as Doom does; Emacs's own default is to truncate.
272272
273Wrapping is display only. To rewrap the text of a paragraph, use Org ▸ Fill Paragraph (=org-fill-paragraph=), which breaks the paragraph's lines at the fill column: =M-q= in the Emacs preset and in every Doom state, =⌃⌘P= in the Mac preset. With a selection, it fills every paragraph the selection touches. In Doom's normal and visual states, =gq= and =gw= with a motion fill the paragraphs in the lines it covers (=gqq= and =gww= for the current lines); =gq= leaves the caret on the last line, =gw= where it was. Unlike Fill Paragraph, =gq= and =gw= keep extra spaces between words and at the ends of lines, as Doom does. See [[file:03-keys.org][Keys and commands]]. The fill column is Settings ▸ Editing ▸ "M-q fills to column N" (80 by default, 40 to 200), or =fill-column= in =config.toml=. Orgstar has no auto-fill: lines are not broken as you type.
273Wrapping is display only. To rewrap the text of a paragraph, use Org ▸ Fill Paragraph (=org-fill-paragraph=), which breaks the paragraph's lines at the fill column: =M-q= in the Emacs preset and in every Doom state, =⌃⌘P= in the Mac preset. With a selection, it fills every paragraph the selection touches. In Doom's normal and visual states, =gq= and =gw= with a motion fill the paragraphs in the lines it covers (=gqq= and =gww= for the current lines); =gq= leaves the caret on the last line, =gw= where it was. Unlike Fill Paragraph, =gq= and =gw= keep extra spaces between words and at the ends of lines, as Doom does. See [[file:03-keys.org][Keys and commands]]. The fill column is Settings ▸ Editing ▸ "M-q fills to column N" (80 by default, 40 to 200), or =fill-column= in =config.toml=. orgstar has no auto-fill: lines are not broken as you type.
274274
275275* View toggles
276276
@@ -290,7 +290,7 @@ Line numbers show in a margin left of the text, as =display-line-numbers-mode= s
290290
291291* Themes
292292
293The editor's font, size, line spacing and heading sizes are in Settings ▸ Appearance. Colours for the editor, the sidebar, the modeline, line numbers, the selection and the caret come from =config.toml=, under =[theme]= for both appearances, =[theme.light]= and =[theme.dark]= for one, and =[theme.todo]= for colours of TODO keywords. Settings ▸ Appearance ▸ Show Default Theme opens =default-theme.toml=, which lists every colour with its default value. Changes apply while Orgstar runs. See [[file:13-configuration.org][Configuration]].
293The editor's font, size, line spacing and heading sizes are in Settings ▸ Appearance. Colours for the editor, the sidebar, the modeline, line numbers, the selection and the caret come from =config.toml=, under =[theme]= for both appearances, =[theme.light]= and =[theme.dark]= for one, and =[theme.todo]= for colours of TODO keywords. Settings ▸ Appearance ▸ Show Default Theme opens =default-theme.toml=, which lists every colour with its default value. Changes apply while orgstar runs. See [[file:13-configuration.org][Configuration]].
294294
295295The iOS editor uses the same theme and display settings, read from the synced =config.toml=; see [[file:14-ios.org][iPhone and iPad]].
296296
docs/manual/guide/03-keys.org +19 −19
@@ -1,10 +1,10 @@
11#+TITLE: Keys and commands
22#+DESCRIPTION: The three key presets, prefix keys and key hints, the echo area, the command palette, Option as Meta, keymap.toml, Vim editing in the Doom preset, and every binding.
3#+LEDE: Every action in Orgstar is a named command; a keymap preset decides which keys run which commands, and keymap.toml lets you change that.
3#+LEDE: Every action in orgstar is a named command; a keymap preset decides which keys run which commands, and keymap.toml lets you change that.
44
55* Commands and keymaps
66
7Each action has a command id such as =org.todo.cycle= and a title such as /Cycle TODO State/. Keys, the Org menu, the command palette and the iOS key bar all run commands by id. A keymap maps key sequences to command ids. Orgstar ships three keymaps, called presets, and reads your own bindings from =keymap.toml= on top of the one you choose.
7Each action has a command id such as =org.todo.cycle= and a title such as /Cycle TODO State/. Keys, the Org menu, the command palette and the iOS key bar all run commands by id. A keymap maps key sequences to command ids. orgstar ships three keymaps, called presets, and reads your own bindings from =keymap.toml= on top of the one you choose.
88
99Ids starting with =org.= are Org commands and run only in Org files. Ids starting with =edit.= are text-system actions (movement, killing, find). Ids starting with =app.= are carried out by the app: saving, buffers, windows, export. =editor.= ids change how the editor behaves. The [[*Key reference][key reference]] at the end of this chapter lists every bound command with its keys in each preset.
1010
@@ -39,7 +39,7 @@ Option pressed together with Control or Command always counts as Meta, whatever
3939
4040** Contexts
4141
42One key can run different commands depending on where the caret is. In the Emacs preset =M-<right>= demotes a heading, indents a list item and moves a table column right. Each binding can name a context, and Orgstar tries the bindings for a key from the highest priority down. The first one whose context holds and whose command can run at the caret wins.
42One key can run different commands depending on where the caret is. In the Emacs preset =M-<right>= demotes a heading, indents a list item and moves a table column right. Each binding can name a context, and orgstar tries the bindings for a key from the highest priority down. The first one whose context holds and whose command can run at the caret wins.
4343
4444| Context | Holds when |
4545|-+-|
@@ -65,9 +65,9 @@ In a file that is not an Org file, =org.= commands never apply, so their keys fa
6565
6666** Prefix keys and key hints
6767
68A prefix is a key that starts longer sequences, such as =C-c=, =C-c C-x=, =C-x n= or, in the Doom preset, =SPC= and =SPC m=. After a prefix, Orgstar waits for the next key and shows the keys typed so far in the echo area, followed by a dash: =C-c C-x-=.
68A prefix is a key that starts longer sequences, such as =C-c=, =C-c C-x=, =C-x n= or, in the Doom preset, =SPC= and =SPC m=. After a prefix, orgstar waits for the next key and shows the keys typed so far in the echo area, followed by a dash: =C-c C-x-=.
6969
70If you pause on a prefix for 0.6 seconds, a panel of key hints opens above the echo area. It lists each key that can follow, sorted by key, with the title of the command it runs, or =+prefix= when it leads to a longer sequence. This is Orgstar's version of =which-key=. The hints follow the current keymap, including your =keymap.toml=, and in the Doom preset the current evil state. When a key has several contexts (=C-c C-c= is the common case), the hint shows the command that would run at the caret; where none of them applies, it shows the highest-priority one.
70If you pause on a prefix for 0.6 seconds, a panel of key hints opens above the echo area. It lists each key that can follow, sorted by key, with the title of the command it runs, or =+prefix= when it leads to a longer sequence. This is orgstar's version of =which-key=. The hints follow the current keymap, including your =keymap.toml=, and in the Doom preset the current evil state. When a key has several contexts (=C-c C-c= is the common case), the hint shows the command that would run at the caret; where none of them applies, it shows the highest-priority one.
7171
7272=C-g= during a prefix cancels it; in the Emacs and Mac presets the echo area shows =Quit=. A sequence that nothing binds shows, for example, =C-c z is undefined= and does nothing. In the Doom preset this holds for sequences that start with =SPC= or with a Control or Meta key; see [[*How keys are handled][How keys are handled]] for the others.
7373
@@ -104,8 +104,8 @@ These come from the menu bar and work in every preset. In the Doom preset, keys
104104
105105| Menu | Item | Key |
106106|-+-+-|
107| Orgstar | Settings… | =⌘,= |
108| Orgstar | Edit Config File | =⌥⌘,= |
107| orgstar | Settings… | =⌘,= |
108| orgstar | Edit Config File | =⌥⌘,= |
109109| File | Add Folder… | =⇧⌘O= |
110110| File | Quick Open… | =⌘P= |
111111| File | Command Palette… | =⇧⌘P= |
@@ -164,9 +164,9 @@ command = "org.todo.cycle"
164164| =when= | no | A context from the table in [[*Contexts][Contexts]]. Without it the binding holds everywhere. |
165165| =mode= | no | An evil state for the Doom preset: ="normal"=, ="insert"= or ="visual"=. |
166166
167The [[*Key reference][key reference]] gives each command's id after its title. Commands no preset binds are listed under [[*Unbound commands][Unbound commands]]. A binding whose command id Orgstar does not know is skipped and reported when the file loads (see [[*Reloading and errors][Reloading and errors]]).
167The [[*Key reference][key reference]] gives each command's id after its title. Commands no preset binds are listed under [[*Unbound commands][Unbound commands]]. A binding whose command id orgstar does not know is skipped and reported when the file loads (see [[*Reloading and errors][Reloading and errors]]).
168168
169Orgstar reads a subset of TOML: =[[bind]]= headers, =key = value= lines, basic ="..."= and literal ='...'= strings, =true= and =false=, integers, and =#= comments. Arrays, inline tables and multi-line strings are not supported.
169orgstar reads a subset of TOML: =[[bind]]= headers, =key = value= lines, basic ="..."= and literal ='...'= strings, =true= and =false=, integers, and =#= comments. Arrays, inline tables and multi-line strings are not supported.
170170
171171** Key notation
172172
@@ -275,17 +275,17 @@ command = "app.reload-keymap"
275275
276276** Reloading and errors
277277
278Orgstar watches the configuration folder and reloads =keymap.toml= when you save it. It also reloads when you change the preset, and when you run Reload Keymap (=app.reload-keymap=, in the palette, and =SPC h r r= in Doom normal state), which shows =Keymap reloaded=.
278orgstar watches the configuration folder and reloads =keymap.toml= when you save it. It also reloads when you change the preset, and when you run Reload Keymap (=app.reload-keymap=, in the palette, and =SPC h r r= in Doom normal state), which shows =Keymap reloaded=.
279279
280Problems are reported in the echo area with the line number, for example =keymap.toml: line 12: unknown context tabel (and 1 more)=. A binding with bad or missing =keys=, a missing =command=, a command id Orgstar does not know, an unknown =when= or =mode=, or a table other than =[[bind]]= is skipped; the rest of the file still applies. A file that is not valid TOML is ignored as a whole and the error is shown; the preset alone applies until you fix it.
280Problems are reported in the echo area with the line number, for example =keymap.toml: line 12: unknown context tabel (and 1 more)=. A binding with bad or missing =keys=, a missing =command=, a command id orgstar does not know, an unknown =when= or =mode=, or a table other than =[[bind]]= is skipped; the rest of the file still applies. A file that is not valid TOML is ignored as a whole and the error is shown; the preset alone applies until you fix it.
281281
282282** Importing from Emacs
283283
284Settings ▸ General ▸ Import from Emacs… reads your Emacs or Doom configuration and offers, among other things, the key bindings it finds: =global-set-key=, =keymap-global-set=, =define-key=, =keymap-set=, =evil-define-key= and Doom's =map!= with =:leader=, =:localleader=, state keywords and =:prefix=. Bindings to commands Orgstar has are appended to =keymap.toml= under a =# Imported from Emacs.= comment, leaving out bindings the file already has. Keys written as vectors, such as =[f5]=, are skipped. See [[file:15-alongside-emacs.org][Alongside Emacs]].
284Settings ▸ General ▸ Import from Emacs… reads your Emacs or Doom configuration and offers, among other things, the key bindings it finds: =global-set-key=, =keymap-global-set=, =define-key=, =keymap-set=, =evil-define-key= and Doom's =map!= with =:leader=, =:localleader=, state keywords and =:prefix=. Bindings to commands orgstar has are appended to =keymap.toml= under a =# Imported from Emacs.= comment, leaving out bindings the file already has. Keys written as vectors, such as =[f5]=, are skipped. See [[file:15-alongside-emacs.org][Alongside Emacs]].
285285
286286* Vim editing (Doom preset)
287287
288The Doom preset edits modally, as Doom Emacs does with =evil=, =evil-org=, =evil-surround=, =evil-snipe= and =evil-nerd-commenter=. Orgstar implements these itself; none of them are Emacs packages running inside it. The caret is a block in normal and visual states and a bar in insert state, and the modeline shows the state.
288The Doom preset edits modally, as Doom Emacs does with =evil=, =evil-org=, =evil-surround=, =evil-snipe= and =evil-nerd-commenter=. orgstar implements these itself; none of them are Emacs packages running inside it. The caret is a block in normal and visual states and a bar in insert state, and the modeline shows the state.
289289
290290** How keys are handled
291291
@@ -414,7 +414,7 @@ A count is digits before a command; =0= only counts after another digit. A regis
414414
415415Pasting from the clipboard is linewise when its text is what the last linewise yank or delete put there; text copied in another app pastes as characters. Numbered registers ="1= to ="9=, and the read-only registers such as ="%=, are not available.
416416
417Registers and macros are shared by every buffer, as in evil: a yank into ="a= in one file pastes with ="ap= in another. Lowercase marks and the jump list belong to the buffer and are gone when it closes. Nothing is kept when Orgstar quits.
417Registers and macros are shared by every buffer, as in evil: a yank into ="a= in one file pastes with ="ap= in another. Lowercase marks and the jump list belong to the buffer and are gone when it closes. Nothing is kept when orgstar quits.
418418
419419** Repeat
420420
@@ -558,7 +558,7 @@ Besides the leader, the preset binds these evil-org and Doom keys in normal stat
558558| =SPC h r r= | Reload Keymap (=app.reload-keymap=) |
559559| =SPC n l= | Store Link (=org.link.store=) |
560560| =SPC o a= | Agenda (=app.agenda=) |
561| =SPC q q= | Quit Orgstar (=app.quit=) |
561| =SPC q q= | Quit orgstar (=app.quit=) |
562562| =SPC s p= | Search Notes (=app.search=) |
563563| =SPC s s= | Find (=edit.find=) |
564564| =SPC SPC= | Quick Open… (=app.quick-open=) |
@@ -624,12 +624,12 @@ Besides the leader, the preset binds these evil-org and Doom keys in normal stat
624624
625625** Ex commands
626626
627=:= opens a prompt in the echo area. Orgstar understands these:
627=:= opens a prompt in the echo area. orgstar understands these:
628628
629629| Command | Does |
630630|-+-|
631631| =:w=, =:write= | Saves the file. |
632| =:q=, =:quit=, =:q!= | Closes the window. Closing the last window quits Orgstar, which asks about unsaved changes as usual. |
632| =:q=, =:quit=, =:q!= | Closes the window. Closing the last window quits orgstar, which asks about unsaved changes as usual. |
633633| =:wq=, =:wq!=, =:x= | Saves, then closes the window. |
634634| =:e= /file/, =:edit= /file/ | Opens /file/, relative to the current file's folder; =~= is expanded. |
635635| =:e=, =:e!=, =:edit=, =:edit!= | Reloads the file from disk; unsaved changes go to the recovery versions. |
@@ -646,7 +646,7 @@ Anything else shows =Not an editor command=. Ranges other than =%=, the =c= flag
646646
647647** Not available
648648
649Things evil users may reach for that Orgstar does not have: =zz=, =zt= and the other scroll and fold =z= commands except =za=, =zc=, =zo= and =zA=; =C-a= and =C-x= to increment numbers; =gi=, =g;=, =gJ=; replace state (=R=); =&=; =q:=; the numbered and read-only registers; tag and sentence text objects.
649Things evil users may reach for that orgstar does not have: =zz=, =zt= and the other scroll and fold =z= commands except =za=, =zc=, =zo= and =zA=; =C-a= and =C-x= to increment numbers; =gi=, =g;=, =gJ=; replace state (=R=); =&=; =q:=; the numbered and read-only registers; tag and sentence text objects.
650650
651651* Keys in other windows
652652
@@ -961,7 +961,7 @@ When a key appears in several rows, it runs the command whose condition holds at
961961| Reload Keymap (=app.reload-keymap=) | — | — | =SPC h r r= (N) | Reads =keymap.toml= again. |
962962| Check Spelling While Typing (=editor.toggle-spell-check=) | — | — | =SPC t s= (N) | Turns spell checking while typing on or off. |
963963| Truncate or Wrap Long Lines (=editor.toggle-truncate-lines=) | =C-x x t= | — | =SPC t w= (N) | Switches between wrapping and truncating long lines (=toggle-truncate-lines=). |
964| Quit Orgstar (=app.quit=) | — | — | =SPC q q= (N) | Quits Orgstar (=save-buffers-kill-terminal=). |
964| Quit orgstar (=app.quit=) | — | — | =SPC q q= (N) | Quits orgstar (=save-buffers-kill-terminal=). |
965965
966966** Unbound commands
967967
docs/manual/guide/04-outlines.org +23 −23
@@ -46,12 +46,12 @@ the file's TODO sequence. If the parent has a statistics cookie, it is updated.
4646Two settings change where Insert Heading puts the heading. Both are in Settings ▸
4747Editing and in =config.toml= under the Emacs variable names:
4848
49| Setting (=config.toml=) | Settings ▸ Editing | Orgstar default | Org default |
49| Setting (=config.toml=) | Settings ▸ Editing | orgstar default | Org default |
5050|--------------------------------------+-----------------------------------------------+-----------------+-------------|
5151| =org-insert-heading-respect-content= | M-RET adds the new heading after the subtree | =true= | =nil= |
5252| =org-M-RET-may-split-line= | M-RET splits the line at the caret | =false= | =t= |
5353
54With =org-insert-heading-respect-content= on (the Orgstar default), Insert Heading
54With =org-insert-heading-respect-content= on (the orgstar default), Insert Heading
5555behaves as Insert Heading After Subtree: the new heading goes after the end of the
5656current subtree, at the current level. Insert Heading also does this when the caret is
5757in folded text.
@@ -65,7 +65,7 @@ With it off, Insert Heading works where the caret is:
6565- In body text, a new heading line is started below. With =org-M-RET-may-split-line=
6666 on, the line is split at the caret first.
6767
68Orgstar follows Org's =org-blank-before-new-entry= default of =auto= for headings: if
68orgstar follows Org's =org-blank-before-new-entry= default of =auto= for headings: if
6969the heading the caret is in is preceded by a blank line, the new heading is too.
7070
7171Insert Heading After Subtree always inserts after the subtree:
@@ -114,7 +114,7 @@ The subtree at the caret swaps places with the previous or next sibling subtree.
114114can't move past its parent or the start or end of the file. The caret keeps its column.
115115
116116On a list item the same keys move the item; in a table they move the row. On other
117lines they do nothing. Orgstar has no =org-drag-element= for paragraphs.
117lines they do nothing. orgstar has no =org-drag-element= for paragraphs.
118118
119119** Moving between headings
120120
@@ -305,7 +305,7 @@ sparse view.
305305
306306* Plain lists
307307
308Orgstar's list commands are ports of =org-list.el=. A list item starts with a bullet:
308orgstar's list commands are ports of =org-list.el=. A list item starts with a bullet:
309309=-=, =+=, =*= (not at the left margin, where it would be a heading), or a number
310310followed by =.= or =)=. With alphabetical lists on, =a.=, =A.=, =a)= and =A)= are bullets
311311too. A description item has =::= after its term:
@@ -315,10 +315,10 @@ too. A description item has =::= after its term:
315315- eggs
316316 1. free range
317317 2. brown
318- Orgstar :: an org editor for macOS and iOS
318- orgstar :: an org editor for macOS and iOS
319319#+END_SRC
320320
321| Setting (=config.toml=) | Settings ▸ Editing | Orgstar default | Org default |
321| Setting (=config.toml=) | Settings ▸ Editing | orgstar default | Org default |
322322|-------------------------------+----------------------------------+-----------------+-------------|
323323| =org-list-allow-alphabetical= | Lists can use letters (a. b. c.) | =true= | =nil= |
324324
@@ -340,7 +340,7 @@ too. A description item has =::= after its term:
340340Insert Item works anywhere inside an item. The new item gets the next bullet: the same
341341symbol, the next number or the next letter. In a description list the new item has an
342342empty term followed by =::=, with the caret on the term. With =org-M-RET-may-split-line= on, text after the caret moves
343to the new item; with it off (the Orgstar default), the new item goes after the current
343to the new item; with it off (the orgstar default), the new item goes after the current
344344one. At the start of an item, the new item is inserted before it. If the list's items
345345are separated by blank lines, so is the new one.
346346
@@ -368,7 +368,7 @@ list (=org-cycle-list-bullet=) through:
368368
369369=*= is skipped for a list at the left margin. Description lists skip the numbered and
370370lettered bullets. Lettered bullets are offered only when the list has 26 items or
371fewer. Org also cycles bullets with =S-<left>= and =S-<right>= on an item; Orgstar
371fewer. Org also cycles bullets with =S-<left>= and =S-<right>= on an item; orgstar
372372does not bind those on items.
373373
374374Numbered and lettered lists are renumbered whenever a list command changes them, and
@@ -436,7 +436,7 @@ The =COOKIE_DATA= property changes what a heading's cookie counts, as in Org:
436436| =recursive= | count all descendants, not only direct children |
437437
438438For TODO statistics, =COOKIE_DATA= is read with inheritance, from the parent or an
439ancestor. Orgstar counts TODO children hierarchically, as Org does with
439ancestor. orgstar counts TODO children hierarchically, as Org does with
440440=org-hierarchical-todo-statistics= at its default.
441441
442442* Blocks
@@ -468,7 +468,7 @@ Doom presets) asks for a block type, one keystroke:
468468| =v= | =verse= |
469469
470470Press =TAB= to type any other type. These are Org's default
471=org-structure-template-alist=; Orgstar does not read a custom one. The block is
471=org-structure-template-alist=; orgstar does not read a custom one. The block is
472472inserted at the caret's indentation. With a selection, the block wraps the selected
473473lines, and for =src=, =example=, =export= and =comment= blocks, lines that would read as
474474headings or keywords are protected with a leading comma. For =src= and =export=, the
@@ -507,7 +507,7 @@ separate editor. See [[file:11-code-blocks.org][Code blocks]].
507507
508508* Drawers
509509
510A drawer is a named group of lines between =:NAME:= and =:END:=. Orgstar writes the
510A drawer is a named group of lines between =:NAME:= and =:END:=. orgstar writes the
511511=PROPERTIES= drawer for properties and, depending on =org-log-into-drawer=, a =LOGBOOK=
512512drawer for state notes and clock lines (see [[file:05-todos-and-tags.org][TODOs and tags]] and
513513[[file:06-dates-and-clocking.org][Dates and clocking]]). You can write any other drawer by hand:
@@ -571,7 +571,7 @@ from every entry in the file and reports how many it changed. Property Action, r
571571** Allowed values
572572
573573A property =KEY_ALL= lists the values =KEY= may take, separated by spaces, with quotes
574around values that contain spaces. Orgstar looks for it on the entry, then its
574around values that contain spaces. orgstar looks for it on the entry, then its
575575ancestors, then the file:
576576
577577#+BEGIN_SRC org
@@ -584,7 +584,7 @@ whose value is =[ ]= or =[X]= toggles between them.
584584
585585** Inheritance
586586
587Orgstar inherits properties as Org does with =org-use-property-inheritance= at its
587orgstar inherits properties as Org does with =org-use-property-inheritance= at its
588588default of =nil=: a property applies only to the entry that has it, with these
589589exceptions:
590590
@@ -594,11 +594,11 @@ exceptions:
594594- =KEY_ALL= allowed values and =COOKIE_DATA= for TODO statistics are looked up through
595595 the ancestors.
596596
597Orgstar has no setting for =org-use-property-inheritance=.
597orgstar has no setting for =org-use-property-inheritance=.
598598
599599** Special properties
600600
601Org computes some properties instead of reading them from a drawer. Orgstar treats
601Org computes some properties instead of reading them from a drawer. orgstar treats
602602these as special and doesn't offer them as allowed-value lists: =ALLTAGS=, =BLOCKED=,
603603=CLOCKSUM=, =CLOCKSUM_T=, =CLOSED=, =DEADLINE=, =FILE=, =ITEM=, =PRIORITY=, =SCHEDULED=,
604604=TAGS=, =TIMESTAMP=, =TIMESTAMP_IA= and =TODO=. Column view computes =ITEM=, =TODO=,
@@ -641,7 +641,7 @@ heading). Column View of File shows every entry in the file. Click a row to go t
641641heading. Done (or Escape) closes the sheet.
642642
643643The sheet is read-only. Org's column view lets you edit values in place and writes
644parent summaries back into the file; Orgstar's does neither. Change values with Set
644parent summaries back into the file; orgstar's does neither. Change values with Set
645645Property, or edit the drawer.
646646
647647** The Columns inspector
@@ -708,7 +708,7 @@ is created when needed (Org's =org-footnote-section=):
708708
709709#+BEGIN_SRC org
710710,* Notes
711Orgstar reads org files.[fn:1]
711orgstar reads org files.[fn:1]
712712
713713,* Footnotes
714714
@@ -750,7 +750,7 @@ subtree are shifted to match, and tags are realigned. A subtree can't be refiled
750750itself.
751751
752752For the open file, targets come from the buffer, including unsaved edits. When the
753target is another file, Orgstar writes that file first, into its open buffer if it has
753target is another file, orgstar writes that file first, into its open buffer if it has
754754one, otherwise through the normal save path, and removes the subtree from the source
755755only after that succeeds. If the target file changed on disk in the meantime, nothing
756756is refiled.
@@ -758,7 +758,7 @@ is refiled.
758758This matches Org with =org-refile-targets= set to headings of maximum level 3 in all
759759files, =org-refile-use-outline-path= set to =file=, =org-reverse-note-order= =nil= (new
760760entries go last), =org-log-refile= =nil= and =org-refile-keep= =nil=. None of these is
761configurable in Orgstar. Refiling from the agenda is covered in [[file:07-agenda.org][Agenda]].
761configurable in orgstar. Refiling from the agenda is covered in [[file:07-agenda.org][Agenda]].
762762
763763* Archiving
764764
@@ -789,7 +789,7 @@ Within the same file, tags it inherited are added to its heading. After the subt
789789leaves, the parent's statistics cookies are updated. The entry's TODO state is not
790790changed.
791791
792If the archive file is open, the subtree goes into its buffer. Otherwise Orgstar writes
792If the archive file is open, the subtree goes into its buffer. Otherwise orgstar writes
793793the archive file first and removes the subtree from the source only after that
794794succeeds. Org's option =org-archive-location= in Emacs is not read; use the =ARCHIVE=
795795property or =#+ARCHIVE:=. Archiving from the agenda is covered in [[file:07-agenda.org][Agenda]].
@@ -817,7 +817,7 @@ The outline pane, to the left of the editor, lists the headings of the open org
817817indented by level. Click a heading to go to it; folded text around it opens. A heading
818818with no title is shown as =(untitled)=.
819819
820Show or hide it with the toolbar button or View ▸ Show or Hide Outline. Orgstar
820Show or hide it with the toolbar button or View ▸ Show or Hide Outline. orgstar
821821remembers the choice for org files; for other files the pane starts hidden and shows
822822"Only org files have an outline." Drag the divider to resize it. While the search field
823823has text, the pane shows search results instead. The backlinks pane, when shown, sits
@@ -875,7 +875,7 @@ The full list is in [[file:03-keys.org][Keys]].
875875
876876* Not supported
877877
878These Org structure features are not in Orgstar:
878These Org structure features are not in orgstar:
879879
880880- =org-insert-drawer=, =org-copy= (refile a copy) and =org-refile= with a prefix
881881 (jump to a target).
docs/manual/guide/05-todos-and-tags.org +11 −11
@@ -1,5 +1,5 @@
11#+TITLE: TODOs and tags
2#+DESCRIPTION: TODO keywords, state logging, priorities, tags and progress cookies in Orgstar.
2#+DESCRIPTION: TODO keywords, state logging, priorities, tags and progress cookies in orgstar.
33#+LEDE: Mark headings as tasks, record when their state changes, rank them, and label them with tags.
44
55* TODO keywords
@@ -21,7 +21,7 @@ Files without a =#+TODO= line use the keywords in Settings ▸ Editing ▸ Defau
2121TODO(t) PROJ(p) LOOP(r) STRT(s) WAIT(w) HOLD(h) IDEA(i) | DONE(d) KILL(k)
2222#+END_SRC
2323
24The value uses =#+TODO= syntax. To define more than one sequence, put one per line (=\n= in =config.toml=). Orgstar reads this setting at launch, so a change takes effect after you restart the app. See [[file:13-configuration.org][Configuration]] for the file itself and for keyword colors under =[theme.todo]=.
24The value uses =#+TODO= syntax. To define more than one sequence, put one per line (=\n= in =config.toml=). orgstar reads this setting at launch, so a change takes effect after you restart the app. See [[file:13-configuration.org][Configuration]] for the file itself and for keyword colors under =[theme.todo]=.
2525
2626** Keywords in the file
2727
@@ -95,7 +95,7 @@ Insert TODO Heading (=org-insert-todo-heading=, =M-S-RET= in Emacs and Doom, ⌘
9595
9696** Dependencies
9797
98With =org-enforce-todo-dependencies= on, an entry can't move to a done keyword while one of its descendants has an active keyword. Descendants without a keyword don't count. Orgstar refuses the change with Org's message:
98With =org-enforce-todo-dependencies= on, an entry can't move to a done keyword while one of its descendants has an active keyword. Descendants without a keyword don't count. orgstar refuses the change with Org's message:
9999
100100#+BEGIN_EXAMPLE
101101TODO state change from TODO to DONE blocked (by "TODO Pack the kitchen")
@@ -122,11 +122,11 @@ Both settings are off by default, as in Org. They are under Settings ▸ Editing
122122
123123* Logging state changes
124124
125Orgstar logs state changes as =org-todo= does in Org 9.8.
125orgstar logs state changes as =org-todo= does in Org 9.8.
126126
127127** CLOSED
128128
129When =org-log-done= is =time= and an entry moves from an active keyword to a done one, Orgstar adds a =CLOSED= stamp to its planning line:
129When =org-log-done= is =time= and an entry moves from an active keyword to a done one, orgstar adds a =CLOSED= stamp to its planning line:
130130
131131#+BEGIN_SRC org
132132,* DONE Book the venue
@@ -160,11 +160,11 @@ The headings are Org's default =org-log-note-headings=:
160160| New deadline | =New deadline from "[old date]" on [timestamp]= |
161161| Deadline removed | =Removed deadline, was "[old date]" on [timestamp]= |
162162
163Rescheduling and deadline notes are covered in [[file:06-dates-and-clocking.org][Dates, scheduling and clocking]]. Orgstar has no command to add a free note to an entry (=org-add-note=).
163Rescheduling and deadline notes are covered in [[file:06-dates-and-clocking.org][Dates, scheduling and clocking]]. orgstar has no command to add a free note to an entry (=org-add-note=).
164164
165165** The LOGBOOK drawer
166166
167With =org-log-into-drawer= set to a drawer name, notes go at the top of that drawer, which Orgstar creates when it is missing:
167With =org-log-into-drawer= set to a drawer name, notes go at the top of that drawer, which orgstar creates when it is missing:
168168
169169#+BEGIN_SRC org
170170,* DONE Book the venue
@@ -283,11 +283,11 @@ The view shows the inherited tags, the current selection, and each tag with its
283283- Tags without a key get one: their first letter if it is free, otherwise the next free character from =a–z=, =A–Z= and ={|}~=.
284284- The selected tags are written in the order of the =#+TAGS= lines, followed by any others.
285285
286=#+TAGS= lines come only from the file and its setup files. Orgstar has no global tag list (=org-tag-alist=); the workspace's tags are used for completion only.
286=#+TAGS= lines come only from the file and its setup files. orgstar has no global tag list (=org-tag-alist=); the workspace's tags are used for completion only.
287287
288288** Inheritance
289289
290An entry inherits the tags of its ancestors and the file's =#+FILETAGS= (=org-use-tag-inheritance= =t=). Fast selection lists inherited tags separately. Agenda matches and clock tables with =:tags t= use the inherited tags too. Orgstar has no setting to limit inheritance (=org-tags-exclude-from-inheritance=).
290An entry inherits the tags of its ancestors and the file's =#+FILETAGS= (=org-use-tag-inheritance= =t=). Fast selection lists inherited tags separately. Agenda matches and clock tables with =:tags t= use the inherited tags too. orgstar has no setting to limit inheritance (=org-tags-exclude-from-inheritance=).
291291
292292#+BEGIN_SRC org
293293,#+FILETAGS: :home:
@@ -300,7 +300,7 @@ Here "Prune the roses" has the tags =home= and =outdoor= through inheritance.
300300
301301** Alignment
302302
303Orgstar aligns tags whenever it changes a heading line: setting tags, changing the TODO keyword or the priority, and updating a statistics cookie. The column is =org-tags-column=, under Settings ▸ Editing ▸ Tags:
303orgstar aligns tags whenever it changes a heading line: setting tags, changing the TODO keyword or the priority, and updating a statistics cookie. The column is =org-tags-column=, under Settings ▸ Editing ▸ Tags:
304304
305305| Value | Placement |
306306|------------+----------------------------------------------------|
@@ -322,7 +322,7 @@ A =[/]= or =[%]= cookie in a heading shows how many of its children are done:
322322,** TODO Forward the mail
323323#+END_SRC
324324
325Orgstar updates the cookie whenever a child's TODO keyword changes (=org-update-parent-todo-statistics=, with =org-hierarchical-todo-statistics= =t=). Only direct children with a TODO keyword count; children without one are ignored. =C-c C-c= on a cookie updates it by hand.
325orgstar updates the cookie whenever a child's TODO keyword changes (=org-update-parent-todo-statistics=, with =org-hierarchical-todo-statistics= =t=). Only direct children with a TODO keyword count; children without one are ignored. =C-c C-c= on a cookie updates it by hand.
326326
327327The =COOKIE_DATA= property changes what the parent's cookie counts:
328328
docs/manual/guide/06-dates-and-clocking.org +25 −25
@@ -1,5 +1,5 @@
11#+TITLE: Dates, scheduling and clocking
2#+DESCRIPTION: Timestamps, the date prompt, SCHEDULED and DEADLINE, repeating tasks, effort, clocking, clock tables, habits and reminders in Orgstar.
2#+DESCRIPTION: Timestamps, the date prompt, SCHEDULED and DEADLINE, repeating tasks, effort, clocking, clock tables, habits and reminders in orgstar.
33#+LEDE: Put dates on entries, plan work with scheduled dates and deadlines, and record the time you spend.
44
55* Timestamps
@@ -16,7 +16,7 @@ A timestamp is a date, optionally with a time, in angle brackets (active) or squ
1616
1717- Active timestamps put the entry on the agenda for that day. Inactive ones are records only.
1818- =10:00-11:30= is a time range within one day. =<…>--<…>= is a range of days; both ends must be of the same kind.
19- Orgstar writes day names in English. When reading, it accepts a day name in any language, as Org does.
19- orgstar writes day names in English. When reading, it accepts a day name in any language, as Org does.
2020
2121** Repeaters and warning periods
2222
@@ -44,7 +44,7 @@ Units are =h= (hours), =d=, =w=, =m= and =y=. What happens when a repeating task
4444
4545** Diary sexps
4646
47The agenda also reads =<%%(…)>= timestamps and =%%(…)= lines with Emacs diary expressions such as =diary-float=, =diary-anniversary=, =diary-block= and =diary-cyclic=, and their =org-= counterparts. See [[file:07-agenda.org][The agenda]] for the functions that are supported. Orgstar does not insert or edit these.
47The agenda also reads =<%%(…)>= timestamps and =%%(…)= lines with Emacs diary expressions such as =diary-float=, =diary-anniversary=, =diary-block= and =diary-cyclic=, and their =org-= counterparts. See [[file:07-agenda.org][The agenda]] for the functions that are supported. orgstar does not insert or edit these.
4848
4949* Inserting timestamps
5050
@@ -67,7 +67,7 @@ Every command that asks for a date shows the same prompt (=org-read-date=): a te
6767- =RET= accepts. An empty answer takes the default: the date of the timestamp being changed, or today.
6868- =Esc= cancels.
6969
70Orgstar reads the answer as Org 9.8 does, with =org-read-date-prefer-future= =t=: a date given without a year, or without a month, is taken to be the next such date from today.
70orgstar reads the answer as Org 9.8 does, with =org-read-date-prefer-future= =t=: a date given without a year, or without a month, is taken to be the next such date from today.
7171
7272| You type | Result |
7373|--------------------+-----------------------------------------------------------|
@@ -144,7 +144,7 @@ DEADLINE: <2026-10-31 Sat -7d> SCHEDULED: <2026-10-20 Tue>
144144
145145Schedule and Set Deadline ask for a date, starting from the entry's current one and its time. They replace an existing date, keep its repeater and warning, and remove a =CLOSED= stamp from the entry. Remove Schedule and Remove Deadline have no default keys; run them from the Org menu or the command palette ([[file:03-keys.org][Keys]]).
146146
147With =org-log-reschedule= or =org-log-redeadline= set to =time= or =note= in =config.toml=, or the matching =#+STARTUP= words, Orgstar logs each change of an existing date and each removal:
147With =org-log-reschedule= or =org-log-redeadline= set to =time= or =note= in =config.toml=, or the matching =#+STARTUP= words, orgstar logs each change of an existing date and each removal:
148148
149149#+BEGIN_SRC org
150150,* TODO Submit the tax return
@@ -156,7 +156,7 @@ Where these notes go, and the =#+STARTUP= words, are covered in [[file:05-todos-
156156
157157* Repeating tasks
158158
159When an entry with a repeater in an active timestamp changes from an active TODO keyword to a done one (=org-auto-repeat-maybe=), Orgstar does not leave it done:
159When an entry with a repeater in an active timestamp changes from an active TODO keyword to a done one (=org-auto-repeat-maybe=), orgstar does not leave it done:
160160
1611611. The keyword returns to the first keyword of its sequence. In a =#+TYP_TODO= sequence it returns to the keyword it had. A =REPEAT_TO_STATE= property, inherited from ancestors, names another keyword to use.
1621622. =CLOSED= is removed.
@@ -184,7 +184,7 @@ SCHEDULED: <2026-10-10 Sat .+3d>
184184- State "DONE" from "TODO" [2026-10-07 Wed 18:02]
185185#+END_SRC
186186
187A repeater of =0= (=+0d=) does not repeat. An hourly repeater needs a time in the timestamp; without one, Orgstar reports "Cannot repeat in N hour(s) because no hour has been set". Inactive timestamps never repeat.
187A repeater of =0= (=+0d=) does not repeat. An hourly repeater needs a time in the timestamp; without one, orgstar reports "Cannot repeat in N hour(s) because no hour has been set". Inactive timestamps never repeat.
188188
189189To turn the repeat note off for a file, use =#+STARTUP: nologrepeat=; =lognoterepeat= asks for a note instead.
190190
@@ -202,7 +202,7 @@ Set Effort asks for a value, such as =0:30= or =2:00=, starting with the current
202202,#+PROPERTY: Effort_ALL 0:15 0:30 1:00 2:00 4:00
203203#+END_SRC
204204
205Effort appears in column view and in clock tables with =:properties ("Effort")=. Orgstar does not compare the running clock with the effort estimate.
205Effort appears in column view and in clock tables with =:properties ("Effort")=. orgstar does not compare the running clock with the effort estimate.
206206
207207* Clocking
208208
@@ -222,7 +222,7 @@ Clocking records the time you work on an entry as =CLOCK:= lines in its =LOGBOOK
222222
223223The Emacs keys are Org's own, and work in the Doom preset too, as every =C-c= key does. Commands without a key in your preset are in the command palette and in Org ▸ Clock, which lists every clock command with its keys, followed by the recent entries. In the agenda, =I=, =O= and =X= clock in, out and cancel for the entry at the line ([[file:07-agenda.org][The agenda]]). Capture templates can clock in too ([[file:08-capture.org][Capture]]).
224224
225Orgstar has no =C-u= forms of these commands. Clock In to Recent Entry… and Go to Recent Clocked Entry… stand for =C-u C-c C-x C-i= and =C-u C-c C-x C-j=.
225orgstar has no =C-u= forms of these commands. Clock In to Recent Entry… and Go to Recent Clocked Entry… stand for =C-u C-c C-x C-i= and =C-u C-c C-x C-j=.
226226
227227** Clocking in and out
228228
@@ -245,17 +245,17 @@ CLOCK: [2026-10-06 Tue 14:00]--[2026-10-06 Tue 15:30] => 1:30
245245
246246With no clock running, Clock In first asks about open clocks; see Open clocks below. So do the agenda's =I= and a capture template's =clock-in=.
247247
248Orgstar remembers the running clock and the clock history across restarts, in =clock.json= in =~/Library/Application Support/Orgstar=. If the open =CLOCK:= line is deleted from the file, Clock Out reports "Clock start time is gone" and forgets the clock.
248orgstar remembers the running clock and the clock history across restarts, in =clock.json= in =~/Library/Application Support/Orgstar=. If the open =CLOCK:= line is deleted from the file, Clock Out reports "Clock start time is gone" and forgets the clock.
249249
250250These parts of Org's clocking are not implemented:
251251
252- sharing the running clock with Emacs: Orgstar does not read or write Emacs's =org-clock-persist= file, so a clock started in one is not known to the other, although both see the open =CLOCK:= line;
252- sharing the running clock with Emacs: orgstar does not read or write Emacs's =org-clock-persist= file, so a clock started in one is not known to the other, although both see the open =CLOCK:= line;
253253- rounding, changing the TODO state on clock-in (=org-clock-in-switch-to-state=), and clocking out when the entry is marked done (=org-clock-out-when-done=): the clock keeps running;
254254- a =CLOCK_INTO_DRAWER= property or another drawer name: clocks always go into =LOGBOOK=.
255255
256256** The running clock
257257
258While a clock runs, Orgstar shows it in three places, refreshed every 30 seconds:
258While a clock runs, orgstar shows it in three places, refreshed every 30 seconds:
259259
260260- the mode line under the editor: =⏱ 0:42 Write the report=;
261261- the window's toolbar;
@@ -265,7 +265,7 @@ The time shown is the time since you clocked in, not the entry's total. Each of
265265
266266** Recent entries
267267
268Orgstar keeps a clock history, as =org-clock-history=. Every clock-in, including one from the agenda or a capture template, puts the entry first in the history and removes its other entries there. The history holds =org-clock-history-length= entries (5 by default); the oldest go first.
268orgstar keeps a clock history, as =org-clock-history=. Every clock-in, including one from the agenda or a capture template, puts the entry first in the history and removes its other entries there. The history holds =org-clock-history-length= entries (5 by default); the oldest go first.
269269
270270Entries are found again after edits by their =ID= property, else by the heading's position among the file's headings together with its title, else by the title alone. An entry that can't be found is dropped from the history the next time an entry is added, and left out of the selection.
271271
@@ -282,13 +282,13 @@ Type a key to choose. =q=, =x= or =Esc= leave the question. With an empty histor
282282
283283Clock In to Last Entry clocks in to the first entry of the history, the same as =1=. With no clock running it says "Clocking back: Write the report (in work.org)"; with an empty history, "No last clock".
284284
285Mark as Default Clock Task makes the heading at the caret the =d= entry and says "Default clock task: Write the report"; Org sets it without a message. As in Org, the default task lasts until you quit Orgstar.
285Mark as Default Clock Task makes the heading at the caret the =d= entry and says "Default clock task: Write the report"; Org sets it without a message. As in Org, the default task lasts until you quit orgstar.
286286
287287** Open clocks
288288
289An open clock is a =CLOCK:= line with a start and no end. Org calls one that isn't the running clock dangling, for example after Orgstar or Emacs quit while it ran, or a line synced from another machine.
289An open clock is a =CLOCK:= line with a start and no end. Org calls one that isn't the running clock dangling, for example after orgstar or Emacs quit while it ran, or a line synced from another machine.
290290
291When you clock in with no clock running, Orgstar first looks for open clocks in the org files of your folders and in the open buffers (=org-clock-auto-clock-resolution= set to =when-no-clock-is-running=), and asks about each one:
291When you clock in with no clock running, orgstar first looks for open clocks in the org files of your folders and in the open buffers (=org-clock-auto-clock-resolution= set to =when-no-clock-is-running=), and asks about each one:
292292
293293#+BEGIN_EXAMPLE
294294Dangling clock started 95 mins ago [jkKtTgGSscCiq]?
@@ -298,7 +298,7 @@ Clocking in from the agenda (=I=) or from a capture template with =clock-in= ask
298298
299299Resolve Open Clocks… asks the same about every open clock, the running one included, and says "No open clocks" when there are none.
300300
301Unlike Org, Orgstar doesn't show the clock's line while it asks; =j= opens it afterwards, except while clocking in.
301Unlike Org, orgstar doesn't show the clock's line while it asks; =j= opens it afterwards, except while clocking in.
302302
303303The answer is a key, as in =org-clock-resolve=. The idle time is the time since the clock started, for an open clock, or since you stopped using the Mac, for an idle one (see Idle time below).
304304
@@ -336,7 +336,7 @@ You stopped another clock 12 mins ago; start this one from then? (y or n)
336336
337337On the Mac, set =org-clock-idle-time= to a number of minutes, or turn on Settings ▸ Agenda ▸ "Ask what to do with idle time while clocked in", to be asked about time away from the Mac. The default, =0=, never asks, as =nil= does in Emacs.
338338
339While a clock runs, Orgstar checks every minute how long the Mac has had no keyboard or mouse input, in any app. Past the limit, it requests your attention, which bounces its Dock icon while another app is active, and asks in the echo area:
339While a clock runs, orgstar checks every minute how long the Mac has had no keyboard or mouse input, in any app. Past the limit, it requests your attention, which bounces its Dock icon while another app is active, and asks in the echo area:
340340
341341#+BEGIN_EXAMPLE
342342Clocked in & idle for 17.3 mins [jkKtTgGSscCiq]?
@@ -346,7 +346,7 @@ The keys are those in the table above, with the idle time starting when input st
346346
347347** Editing clock lines
348348
349You can edit clock lines by hand. =S-<up>=, =S-<down>=, =S-<left>= and =S-<right>= change their timestamps as anywhere else, and then write the duration after ~=>~ again, as =H:MM=. After typing changes yourself, press =C-c C-c= (or =C-c C-y=) on the line: Orgstar fixes both day names and writes the duration again (=org-clock-update-time-maybe=).
349You can edit clock lines by hand. =S-<up>=, =S-<down>=, =S-<left>= and =S-<right>= change their timestamps as anywhere else, and then write the duration after ~=>~ again, as =H:MM=. After typing changes yourself, press =C-c C-c= (or =C-c C-y=) on the line: orgstar fixes both day names and writes the duration again (=org-clock-update-time-maybe=).
350350
351351=C-c .= on a clock line's range replaces one of its timestamps, as in any range of days (see "Inserting timestamps").
352352
@@ -377,7 +377,7 @@ Copy puts it on the clipboard; Save writes it to a file.
377377
378378* Clock tables
379379
380A clock table is a dynamic block that Orgstar fills with a summary of clocked time (=org-clocktable-write-default=).
380A clock table is a dynamic block that orgstar fills with a summary of clocked time (=org-clocktable-write-default=).
381381
382382| Command | Org command | Emacs, Doom |
383383|---------------------------------+----------------------+-----------------|
@@ -468,14 +468,14 @@ How habits appear in the agenda, with the graph covering 21 days back and 7 ahea
468468
469469* Reminders
470470
471Orgstar can post a macOS notification before entries that have a time of day, as Emacs's =appt= does with =org-agenda-to-appt=.
471orgstar can post a macOS notification before entries that have a time of day, as Emacs's =appt= does with =org-agenda-to-appt=.
472472
473473- It covers the agenda's files and the next 7 days: scheduled items, deadlines, plain active timestamps and date ranges with a time, that are not done.
474474- Each reminder comes the lead time before the entry's time: 12 minutes by default (=appt-message-warning-time=). An =APPT_WARNTIME= property on the entry, in minutes, overrides it.
475- If the warning time has already passed when Orgstar sets a reminder but the entry has not started, the notification comes at once.
475- If the warning time has already passed when orgstar sets a reminder but the entry has not started, the notification comes at once.
476476- At most 64 reminders are pending at a time, the earliest first.
477- The notification shows the entry's text, its time, and its category. Clicking it opens the entry. Notifications also show while Orgstar is the active app.
477- The notification shows the entry's text, its time, and its category. Clicking it opens the entry. Notifications also show while orgstar is the active app.
478478
479Orgstar updates the reminders a couple of seconds after you stop editing, when files change, and every hour. The agenda window shows how far ahead reminders are set. Reminders already set still arrive after you quit Orgstar; changes to your files are taken into account the next time it runs.
479orgstar updates the reminders a couple of seconds after you stop editing, when files change, and every hour. The agenda window shows how far ahead reminders are set. Reminders already set still arrive after you quit orgstar; changes to your files are taken into account the next time it runs.
480480
481Turn reminders on or off, and set the lead time from 0 to 120 minutes, in Settings ▸ Agenda; in =config.toml= the keys are =reminders= under =[orgstar]= (default =true=) and =appt-message-warning-time=. The first time, macOS asks whether Orgstar may post notifications; if you decline, the agenda says so, and you can change it in System Settings ▸ Notifications. The iOS app's reminders are described in [[file:14-ios.org][iOS]].
481Turn reminders on or off, and set the lead time from 0 to 120 minutes, in Settings ▸ Agenda; in =config.toml= the keys are =reminders= under =[orgstar]= (default =true=) and =appt-message-warning-time=. The first time, macOS asks whether orgstar may post notifications; if you decline, the agenda says so, and you can change it in System Settings ▸ Notifications. The iOS app's reminders are described in [[file:14-ios.org][iOS]].
docs/manual/guide/07-agenda.org +10 −10
@@ -22,7 +22,7 @@ On iOS the agenda is the first tab. See [[*The agenda on iOS][The agenda on iOS]
2222
2323* Agenda files
2424
25Orgstar has no =org-agenda-files= list. The agenda reads every =.org= file at the top level of each folder you have added (see [[file:01-files-and-folders.org][Files and folders]]). Files whose names start with a dot are left out, as =org-agenda-file-regexp= leaves them out.
25orgstar has no =org-agenda-files= list. The agenda reads every =.org= file at the top level of each folder you have added (see [[file:01-files-and-folders.org][Files and folders]]). Files whose names start with a dot are left out, as =org-agenda-file-regexp= leaves them out.
2626
2727To include files in subfolders as well, turn on Settings ▸ Agenda ▸ Include files in subfolders, or set this in =config.toml=:
2828
@@ -157,7 +157,7 @@ With =org-enforce-todo-dependencies= or =org-enforce-todo-checkbox-dependencies=
157157
158158* Calendar events
159159
160The agenda can show events from the system Calendar app (EventKit) among your entries. They are read-only: Orgstar never changes your calendars. It is off by default. To turn it on:
160The agenda can show events from the system Calendar app (EventKit) among your entries. They are read-only: orgstar never changes your calendars. It is off by default. To turn it on:
161161
162162- On the Mac, turn on Settings ▸ Agenda ▸ Show events from Calendar, and check the calendars to show.
163163- On iOS, turn on Settings ▸ Calendar ▸ Show Calendar Events, and tap the calendars to show.
@@ -171,7 +171,7 @@ calendar-event-calendars = "Work, Family"
171171
172172=calendar-event-calendars= names calendars by title or identifier, separated by commas; =""= (the default) shows every calendar, including calendars added later. While every calendar is checked in Settings, the key stays empty.
173173
174The first time events are turned on, Orgstar asks for access to your calendars. The system asks for full access, because Calendar has no read-only level of access. If you declined, allow it in System Settings ▸ Privacy & Security ▸ Calendars on the Mac, or in the Settings app on iOS.
174The first time events are turned on, orgstar asks for access to your calendars. The system asks for full access, because Calendar has no read-only level of access. If you declined, allow it in System Settings ▸ Privacy & Security ▸ Calendars on the Mac, or in the Settings app on iOS.
175175
176176Events appear only in the day, week and month view:
177177
@@ -185,7 +185,7 @@ On the Mac, double-click an event, or select it and press =RET=, to open it in C
185185
186186* Done keywords the agenda doesn't know
187187
188A keyword that isn't in =org-todo-keywords= or the file's =#+TODO= lines is not a keyword to Orgstar, as to Org: it is part of the title. A heading such as =SKIPPED Call the bank= with a =SCHEDULED= date last week is therefore an open entry, and shows as overdue. To make such a word a done state, add it after the ~|~:
188A keyword that isn't in =org-todo-keywords= or the file's =#+TODO= lines is not a keyword to orgstar, as to Org: it is part of the title. A heading such as =SKIPPED Call the bank= with a =SCHEDULED= date last week is therefore an open entry, and shows as overdue. To make such a word a done state, add it after the ~|~:
189189
190190#+BEGIN_SRC toml
191191org-todo-keywords = "TODO(t) PROJ(p) LOOP(r) STRT(s) WAIT(w) HOLD(h) IDEA(i) | DONE(d) KILL(k) SKIPPED"
@@ -207,7 +207,7 @@ The agenda evaluates diary sexps as =org-diary-sexp-entry= does. They can appear
207207<%%(org-class 2026 9 7 2026 12 18 1 41)>
208208#+END_SRC
209209
210Lines before the first heading are ignored. A sexp that uses a function Orgstar doesn't have, or signals an error, doesn't apply on any day, as Emacs reports a bad sexp and moves on.
210Lines before the first heading are ignored. A sexp that uses a function orgstar doesn't have, or signals an error, doesn't apply on any day, as Emacs reports a bad sexp and moves on.
211211
212212| Function | Applies | Date order |
213213|--------------------------------------------+--------------------------------------------------------------------+-------------------|
@@ -323,7 +323,7 @@ Names are case-insensitive. Prefix a character in a name with =\= to use it lite
323323| =SCHEDULED=, =DEADLINE=, =CLOSED= | The planning timestamp |
324324| =TIMESTAMP=, =TIMESTAMP_IA= | The entry's first active or inactive timestamp |
325325
326Properties are not inherited in matches (=org-use-property-inheritance= is nil). With a date value, =<>= and its synonyms match dates that are equal, as Orgstar's comparison mirrors =org-time<>= in Org 9.8.7; use =<= and =>= for date ranges.
326Properties are not inherited in matches (=org-use-property-inheritance= is nil). With a date value, =<>= and its synonyms match dates that are equal, as orgstar's comparison mirrors =org-time<>= in Org 9.8.7; use =<= and =>= for date ranges.
327327
328328** TODO keywords
329329
@@ -450,7 +450,7 @@ The =\= prompt reads every word as a tag, whether or not a line has it; there, =
450450
451451* Prefix format and colors
452452
453The rows look the same whatever =org-agenda-prefix-format= says. Orgstar reads the =[org-agenda-prefix-format]= table in =config.toml= (see [[file:13-configuration.org][Configuration]]), but the only effect is on times written in heading text: when the =agenda= format contains =%t=, as the default =" %i %-12:c%?-12t% s"= does, a time such as =9:30am= in =Call Ada 9:30am= moves out of the title into the left column, as =org-agenda-remove-times-when-in-prefix= does. Without =%t=, the title keeps it.
453The rows look the same whatever =org-agenda-prefix-format= says. orgstar reads the =[org-agenda-prefix-format]= table in =config.toml= (see [[file:13-configuration.org][Configuration]]), but the only effect is on times written in heading text: when the =agenda= format contains =%t=, as the default =" %i %-12:c%?-12t% s"= does, a time such as =9:30am= in =Call Ada 9:30am= moves out of the title into the left column, as =org-agenda-remove-times-when-in-prefix= does. Without =%t=, the title keeps it.
454454
455455The agenda's colors come from these theme keys (see [[file:13-configuration.org][Configuration]]):
456456
@@ -519,7 +519,7 @@ Each action finds the entry again by its heading line before it changes anything
519519
520520* Reminders
521521
522Orgstar can post a notification before each timed entry, as =org-agenda-to-appt= hands entries to =appt=. Reminders cover the next 7 days and include deadline, scheduled, plain timestamp and range lines that have a time of day and are not done. Overdue items and upcoming-deadline warnings don't get reminders.
522orgstar can post a notification before each timed entry, as =org-agenda-to-appt= hands entries to =appt=. Reminders cover the next 7 days and include deadline, scheduled, plain timestamp and range lines that have a time of day and are not done. Overdue items and upcoming-deadline warnings don't get reminders.
523523
524524| Setting | Default | =config.toml= |
525525|-------------------------------+---------+------------------------------------|
@@ -530,7 +530,7 @@ Both are in Settings ▸ Agenda. An entry's =APPT_WARNTIME= property, in minutes
530530
531531The notification's title is the heading; its body is the time, Org's leader text (=Scheduled:=, =Deadline:=) if any, and the category, such as =14:00 · Scheduled: · work=. Clicking it shows the entry in the main window.
532532
533On the Mac, reminders are updated two seconds after edits stop, when files change, and every hour. At most 64 are set, the earliest first. The agenda's status line says how far ahead they are set, or that notifications are off for Orgstar in System Settings. Turning reminders off removes the pending ones.
533On the Mac, reminders are updated two seconds after edits stop, when files change, and every hour. At most 64 are set, the earliest first. The agenda's status line says how far ahead they are set, or that notifications are off for orgstar in System Settings. Turning reminders off removes the pending ones.
534534
535535* The board
536536
@@ -573,6 +573,6 @@ The Agenda tab shows the same views from the same files, using the settings in t
573573- Marking an entry done and rescheduling one give haptic feedback.
574574- Log Mode, in the span menu, turns log mode on and off. The widgets never show log mode's entries.
575575- There are no keyboard commands or bulk marks.
576- Reminders are set while the app is open. iOS allows at most 64 pending notifications and the app can't add more while it isn't running, so the agenda's footer says how far ahead they go and asks you to open Orgstar to set later ones.
576- Reminders are set while the app is open. iOS allows at most 64 pending notifications and the app can't add more while it isn't running, so the agenda's footer says how far ahead they go and asks you to open orgstar to set later ones.
577577
578578The Today and Up Next widgets show the agenda on the Home Screen and the Lock Screen; see [[file:14-ios.org][iPhone and iPad]].
docs/manual/guide/08-capture.org +11 −11
@@ -12,7 +12,7 @@ Capture mirrors =org-capture=. Start it from anywhere in the app:
1212| Emacs | =C-c c= or =⇧⌘N= |
1313| Doom | =SPC X= (normal state), =C-c c= or =⇧⌘N= |
1414
15=⌃⌥Space= opens the capture window from any app, with Orgstar in the background. Turn it off in Settings ▸ Capture, or in =config.toml=:
15=⌃⌥Space= opens the capture window from any app, with orgstar in the background. Turn it off in Settings ▸ Capture, or in =config.toml=:
1616
1717#+BEGIN_SRC toml
1818[orgstar]
@@ -51,7 +51,7 @@ The + at the right of a day's header in the agenda, or =k= in the Mac agenda (=o
5151- An empty answer to a date prompt (=%^t= and the others) is that day.
5252- With =datetree = true=, the entry goes under that day in the date tree.
5353
54When the filled template is a heading without an active timestamp, Orgstar adds =SCHEDULED:= with that day on the line after the heading, or at the end of the planning line when the template has one:
54When the filled template is a heading without an active timestamp, orgstar adds =SCHEDULED:= with that day on the line after the heading, or at the end of the planning line when the template has one:
5555
5656#+BEGIN_SRC org
5757,* TODO Call the bank
@@ -239,7 +239,7 @@ With =olp=, the tree goes under that outline path, one level down, instead of at
239239
240240* org-protocol
241241
242Orgstar registers the =org-protocol:= URL scheme and handles the two handlers browser bookmarklets use, as =org-protocol.el= does in Org 9.8.7. Both the =?key=value= form and the older =:/a/b/c= form work.
242orgstar registers the =org-protocol:= URL scheme and handles the two handlers browser bookmarklets use, as =org-protocol.el= does in Org 9.8.7. Both the =?key=value= form and the older =:/a/b/c= form work.
243243
244244** capture
245245
@@ -264,7 +264,7 @@ org-protocol://store-link?url=https%3A%2F%2Fexample.com&title=Example
264264
265265This stores the link, so =C-c C-l= in the editor offers it (see [[file:09-links.org][Links]]), and puts the URL on the clipboard.
266266
267Other handlers, such as =open-source=, report that Orgstar handles only capture and store-link.
267Other handlers, such as =open-source=, report that orgstar handles only capture and store-link.
268268
269269** Bookmarklets
270270
@@ -291,16 +291,16 @@ template = "* %:description\n:PROPERTIES:\n:URL: %:link\n:END:\n%U\n%i\n%?"
291291
292292* Shortcuts
293293
294The Shortcuts action Capture to Orgstar files text with a template, without the capture window. It has two parameters:
294The Shortcuts action Capture to orgstar files text with a template, without the capture window. It has two parameters:
295295
296296| Parameter | Meaning |
297297|--------------+-------------------------------------------------------------------------|
298298| Text | The text, inserted as =%i= |
299299| Template Key | A template's =key= in =capture.toml=; the first template when empty |
300300
301Every prompt in the template takes its default (an empty answer: today for dates, no tags), and =%?= is ignored. =%a= is empty. On the Mac, =%c= is the clipboard and =%n= your name; on iOS both are empty, because reading the pasteboard would ask for permission on every run. The action returns a message, =Captured to …= with the target on the Mac and =Captured with …= with the template name on iOS, or fails with the same messages as the capture window. You can also say "Capture to Orgstar" to Siri.
301Every prompt in the template takes its default (an empty answer: today for dates, no tags), and =%?= is ignored. =%a= is empty. On the Mac, =%c= is the clipboard and =%n= your name; on iOS both are empty, because reading the pasteboard would ask for permission on every run. The action returns a message, =Captured to …= with the target on the Mac and =Captured with …= with the template name on iOS, or fails with the same messages as the capture window. You can also say "Capture to orgstar" to Siri.
302302
303On the Mac, the action opens Orgstar if it isn't running and waits up to five seconds for it to be ready.
303On the Mac, the action opens orgstar if it isn't running and waits up to five seconds for it to be ready.
304304
305305* Capture on iOS
306306
@@ -316,15 +316,15 @@ Differences from the Mac: there is no selection, clipboard, current file, user n
316316
317317** The share sheet
318318
319In another app, share a web page or text and choose Orgstar. The share form has:
319In another app, share a web page or text and choose orgstar. The share form has:
320320
321321- a Template picker, with the templates the app read the last time it ran;
322322- for a link, its title (editable) and address;
323323- a Text field, filled with shared text.
324324
325Capture saves the item in the app group's capture inbox. The next time you open Orgstar, it opens the capture sheet with the item as an org-protocol capture: the link becomes =%a= and =%:link=, the title =%:description=, and the text =%i=. Several waiting items open one after another, oldest first. If the extension says Orgstar's shared folder isn't available, the app group is missing from the build and nothing can be saved.
325Capture saves the item in the app group's capture inbox. The next time you open orgstar, it opens the capture sheet with the item as an org-protocol capture: the link becomes =%a= and =%:link=, the title =%:description=, and the text =%i=. Several waiting items open one after another, oldest first. If the extension says orgstar's shared folder isn't available, the app group is missing from the build and nothing can be saved.
326326
327The share form lists no templates until Orgstar has run once with your configuration folder; the capture sheet then starts on the first template.
327The share form lists no templates until orgstar has run once with your configuration folder; the capture sheet then starts on the first template.
328328
329329* Importing templates from Emacs
330330
@@ -346,4 +346,4 @@ Import from Emacs (see [[file:13-configuration.org][Configuration]] and [[file:1
346346
347347A file name given as a variable or a simple form is evaluated where the importer can. The import report lists what it left out: other targets, templates that aren't strings, unknown =:tree-type= values, and other properties such as =:time-prompt=, =:kill-buffer= or =:unnarrowed=. Template groups are skipped.
348348
349Emacs resolves relative target files against =org-directory=; Orgstar resolves them against the first folder in the sidebar. If =org-directory= isn't your first folder, edit the imported =file= values or make them absolute.
349Emacs resolves relative target files against =org-directory=; orgstar resolves them against the first folder in the sidebar. If =org-directory= isn't your first folder, edit the imported =file= values or make them absolute.
docs/manual/guide/09-links.org +10 −10
@@ -1,10 +1,10 @@
11#+TITLE: Links
2#+DESCRIPTION: Link syntax, the link types Orgstar follows, storing and inserting links, IDs, backlinks and inline images.
2#+DESCRIPTION: Link syntax, the link types orgstar follows, storing and inserting links, IDs, backlinks and inline images.
33#+LEDE: Write links as Org does, follow them with a key or a click, and see which headings link to the one you are reading.
44
55* Link syntax
66
7Orgstar reads links the way =org-element-link-parser= does. There are three forms.
7orgstar reads links the way =org-element-link-parser= does. There are three forms.
88
99| Form | Example | Notes |
1010|---------------+-------------------------------------------+-------------------------------------------------------------|
@@ -18,7 +18,7 @@ custom ID. Anything without a known =type:= prefix is a search for text in the
1818current file (a "fuzzy" link). A link may run over a line break; the break and
1919surrounding blanks read as one space.
2020
21Backslashes before brackets are escaped as in =org-link-escape=: when Orgstar writes
21Backslashes before brackets are escaped as in =org-link-escape=: when orgstar writes
2222a link it doubles backslashes that come before a bracket or the end, and it reads them
2323back the same way.
2424
@@ -60,10 +60,10 @@ A message in the echo area explains a link that can't be followed.
6060| Heading | =[[*Weekly review]]= | Moves to the heading in this file with that title. |
6161| Text | =[[budget table]]= | Searches this file: a =<<budget table>>= target, then =#+NAME: budget table=, then a heading. |
6262| Coderef | =[[(ref)]]= | Not supported. The echo area says so. |
63| =shell=, =elisp= | =[[shell:ls]]= | Not run. Orgstar never executes these links. |
63| =shell=, =elisp= | =[[shell:ls]]= | Not run. orgstar never executes these links. |
6464| =attachment= | =[[attachment:scan.pdf]]= | Opens the file in the entry's attachment folder; see /Attachment links/ below. |
6565| Radio link | Text matching a =<<<radio target>>>= | Moves to the radio target. |
66| =info=, =help=, others | | Not followed. The echo area says Orgstar can't open the type. |
66| =info=, =help=, others | | Not followed. The echo area says orgstar can't open the type. |
6767
6868The text search follows =org-link-search=. A dedicated =<<target>>= matches its words
6969case-insensitively, with any run of blanks between them. A heading matches when its
@@ -84,8 +84,8 @@ files in different sidebar folders work the same way, for example
8484
8585What happens depends on the file:
8686
87- An =.org= or =.org_archive= file opens as a buffer in Orgstar.
88- Another text file opens in Orgstar as a plain buffer.
87- An =.org= or =.org_archive= file opens as a buffer in orgstar.
88- Another text file opens in orgstar as a plain buffer.
8989- Anything else (images, PDFs, archives, media) is handed to macOS, which opens it in
9090 the default app for that type.
9191
@@ -163,7 +163,7 @@ A stored link that you insert is removed from the stored list, as with
163163
164164** File paths in inserted links
165165
166When the inserted link is a =file:= link, Orgstar rewrites it as
166When the inserted link is a =file:= link, orgstar rewrites it as
167167=org-link-make-string-for-buffer= does:
168168
169169- A link to a heading or target in the file you are editing loses its =file:= part
@@ -201,7 +201,7 @@ folder, followed by a search option chosen as Org does with
2012015. Before the first heading, the link searches for the text of the current line.
202202
203203The echo area shows =Stored:= and the description or link. Storing the same link again
204moves it to the front of the list. Stored links last until you quit Orgstar; they
204moves it to the front of the list. Stored links last until you quit orgstar; they
205205aren't saved between sessions, as in Emacs.
206206
207207* IDs
@@ -327,7 +327,7 @@ every file when it opens. In a file, =#+STARTUP: inlineimages= or
327327
328328* org-protocol store-link
329329
330Orgstar handles =org-protocol://store-link= URLs, in the new form
330orgstar handles =org-protocol://store-link= URLs, in the new form
331331~org-protocol://store-link?url=…&title=…~ and the old form
332332=org-protocol://store-link:/URL/TITLE=. The URL is added to your stored links with
333333the title as its description, and is also copied to the clipboard. Insert it with
docs/manual/guide/10-tables.org +13 −13
@@ -1,6 +1,6 @@
11#+TITLE: Tables
22#+DESCRIPTION: Creating and editing Org tables, column widths, import and export, and spreadsheet formulas.
3#+LEDE: Org tables are plain text that Orgstar keeps aligned, edits by row and column, and recalculates with the same formulas Emacs uses.
3#+LEDE: Org tables are plain text that orgstar keeps aligned, edits by row and column, and recalculates with the same formulas Emacs uses.
44
55* Tables in Org
66
@@ -14,14 +14,14 @@ that starts with =|-= is a horizontal rule:
1414| Pear | 12 | 0.75 |
1515#+END_SRC
1616
17Orgstar follows =org-table.el= from Org 9.8.7, with =org-table-automatic-realign= on,
17orgstar follows =org-table.el= from Org 9.8.7, with =org-table-automatic-realign= on,
1818=org-table-tab-jumps-over-hlines= on, and formulas adjusted without asking when rows
1919and columns move (=org-table-fix-formulas-confirm= nil). Tables inside dynamic blocks
2020count as tables; tables inside other blocks don't.
2121
2222* Creating a table
2323
24Type =|=, a few field names separated by =|=, and press =TAB=: Orgstar aligns the line
24Type =|=, a few field names separated by =|=, and press =TAB=: orgstar aligns the line
2525as a table and moves to the next field, adding a row after the last one. Type =|-= on
2626the line below a row and press =TAB= to turn it into a full-width rule.
2727
@@ -167,7 +167,7 @@ Import and export are Mac only.
167167
168168* Formulas
169169
170Orgstar evaluates Org's spreadsheet formulas, =org-table-recalculate= and
170orgstar evaluates Org's spreadsheet formulas, =org-table-recalculate= and
171171=org-table-eval-formula=, natively: Calc expressions in a reimplementation of the part
172172of Emacs Calc that tables use, and Lisp formulas in a small Emacs Lisp evaluator. What
173173falls outside them is handed to Emacs on the Mac (see /When Emacs is needed/).
@@ -451,7 +451,7 @@ field, as does a Calc error.
451451
452452There are three ways to set a formula.
453453
454*In the field.* Type ~=expr~ in a field and press =TAB= or =RET=: Orgstar stores
454*In the field.* Type ~=expr~ in a field and press =TAB= or =RET=: orgstar stores
455455~$N=expr~ as the column's formula and evaluates it, as
456456=org-table-maybe-eval-formula= does. Type ~:=expr~ instead to store a field formula
457457~@R$C=expr~.
@@ -467,7 +467,7 @@ formula in the formula editor below or from the =#+TBLFM:= line.
467467| Org ▸ Set Column Formula | ~C-c =~ | Org ▸ Set Column Formula | ~C-c =~ |
468468| Org ▸ Set Field Formula | none | Org ▸ Set Field Formula | none |
469469
470Org's ~C-u C-c =~ for field formulas has no equivalent key, because Orgstar has no
470Org's ~C-u C-c =~ for field formulas has no equivalent key, because orgstar has no
471471prefix argument; use the menu item or type ~:=~ in the field.
472472
473473*In the formula editor.* =C-c '= in a table or on its =#+TBLFM:= line
@@ -514,7 +514,7 @@ what it was and the Mac recalculates the table in Emacs instead. This happens fo
514514- Lisp functions not listed above.
515515
516516The echo area shows =Recalculating in Emacs (reason)…=, then =Recalculated in Emacs=.
517Orgstar runs =emacs -Q --batch= on a copy of the file, so your Emacs init file,
517orgstar runs =emacs -Q --batch= on a copy of the file, so your Emacs init file,
518518packages and customizations are not loaded, then replaces the table with Emacs's
519519result. It looks for Emacs at the path in the =ORGSTAR_EMACS= environment variable,
520520then =/opt/homebrew/bin/emacs=, =/usr/local/bin/emacs=,
@@ -522,7 +522,7 @@ then =/opt/homebrew/bin/emacs=, =/usr/local/bin/emacs=,
522522=/usr/bin/emacs=. If none is found, the echo area says Emacs isn't installed and the
523523table is unchanged. Emacs gets your =PATH= with =/opt/homebrew/bin=, =/usr/local/bin=,
524524=/Library/TeX/texbin=, =/usr/bin= and =/bin= added, as code blocks and export do, so
525programs a formula starts are found when Orgstar was opened from the Dock. The run
525programs a formula starts are found when orgstar was opened from the Dock. The run
526526stops after 60 seconds. If you edit the table while Emacs is working, its result is
527527discarded.
528528
@@ -530,7 +530,7 @@ Edit ▸ Cancel Running Task (=⌘.=) stops the recalculation; the echo area sho
530530=Recalculation canceled= and the table is unchanged. Starting another recalculation or
531531export in Emacs cancels the one that is running.
532532
533If the table's formulas contain Lisp, Orgstar asks first:
533If the table's formulas contain Lisp, orgstar asks first:
534534=This table's formulas run Lisp. Run them? (yes, no, always)=. =always= trusts this
535535table's text in this file, so the question isn't asked again until the text changes.
536536
@@ -540,8 +540,8 @@ left as it was; the echo area shows =The formula was stored; recalculating it ne
540540Emacs= and the reason. =TAB= and =RET= still move to the next field. Recalculate the
541541table to run the formula in Emacs.
542542
543For how Orgstar and Emacs share files, see
544[[file:15-alongside-emacs.org][Using Orgstar alongside Emacs]].
543For how orgstar and Emacs share files, see
544[[file:15-alongside-emacs.org][Using orgstar alongside Emacs]].
545545
546546* table.el tables
547547
@@ -556,13 +556,13 @@ them, are recognized and kept as written:
556556+-------+-------+
557557#+END_SRC
558558
559Orgstar doesn't edit them as tables: =TAB=, alignment and formulas don't apply. HTML
559orgstar doesn't edit them as tables: =TAB=, alignment and formulas don't apply. HTML
560560export renders them as tables, with cells that span rows and columns, and Markdown
561561export writes them as a code block. See [[file:12-export.org][Export]].
562562
563563* Plotting
564564
565=#+PLOT:= lines are recognized and completed as keywords, but Orgstar doesn't draw
565=#+PLOT:= lines are recognized and completed as keywords, but orgstar doesn't draw
566566plots (=org-plot/gnuplot= is not available).
567567
568568* On iOS
docs/manual/guide/11-code-blocks.org +21 −21
@@ -1,6 +1,6 @@
11#+TITLE: Code blocks
2#+DESCRIPTION: Source blocks in Orgstar: highlighting, editing, running with Babel, results, header arguments, noweb and tangling.
3#+LEDE: Orgstar runs and tangles source blocks the way Org Babel does, and refuses anything it would run differently.
2#+DESCRIPTION: Source blocks in orgstar: highlighting, editing, running with Babel, results, header arguments, noweb and tangling.
3#+LEDE: orgstar runs and tangles source blocks the way Org Babel does, and refuses anything it would run differently.
44
55* Source blocks
66
@@ -12,7 +12,7 @@ return 6 * 7
1212,#+end_src
1313#+END_SRC
1414
15Orgstar reads the same syntax Org does: the language after =#+begin_src=, then any switches such as =-i= or =-r=, then header arguments. A =#+NAME:= line above a block names it, so other blocks, =#+CALL:= lines and =:var= references can refer to it.
15orgstar reads the same syntax Org does: the language after =#+begin_src=, then any switches such as =-i= or =-r=, then header arguments. A =#+NAME:= line above a block names it, so other blocks, =#+CALL:= lines and =:var= references can refer to it.
1616
1717Lines inside a block that start with =*= or =#+= are protected with a leading comma, as Org does (=org-escape-code-in-region=). The comma is removed when the block runs, tangles or exports, and when you edit the block apart.
1818
@@ -82,7 +82,7 @@ The block's text is remembered when the run starts. If you edit the block while
8282
8383** Languages that run
8484
85On the Mac, Orgstar starts each interpreter through =/usr/bin/env=. Because an app opened from the Dock does not see your shell's =PATH=, Orgstar adds =/opt/homebrew/bin=, =/usr/local/bin=, =/Library/TeX/texbin=, =/usr/bin= and =/bin= to the end of it.
85On the Mac, orgstar starts each interpreter through =/usr/bin/env=. Because an app opened from the Dock does not see your shell's =PATH=, orgstar adds =/opt/homebrew/bin=, =/usr/local/bin=, =/Library/TeX/texbin=, =/usr/bin= and =/bin= to the end of it.
8686
8787| Language | Program run |
8888|------------------------------------------------------------------+-----------------------------------------------------|
@@ -105,7 +105,7 @@ A run that takes longer than five minutes is stopped. Runs in a =:session= have
105105
106106** Compiled languages
107107
108On the Mac, =C=, =C++=, =cpp=, =D=, =java=, =fortran= and =clojure= blocks run as Org's =ob-C=, =ob-java=, =ob-fortran= and =ob-clojure= run them. Orgstar writes the body, expanded as tangling writes it (see Tangling below), to a source file in a temporary folder, compiles it and runs the program in the file's folder or =:dir=, with a newline on standard input. What the compiler prints is dropped.
108On the Mac, =C=, =C++=, =cpp=, =D=, =java=, =fortran= and =clojure= blocks run as Org's =ob-C=, =ob-java=, =ob-fortran= and =ob-clojure= run them. orgstar writes the body, expanded as tangling writes it (see Tangling below), to a source file in a temporary folder, compiles it and runs the program in the file's folder or =:dir=, with a newline on standard input. What the compiler prints is dropped.
109109
110110| Language | Commands |
111111|-----------------+----------------------------------------------------------------------------------|
@@ -135,21 +135,21 @@ When =:imports= is absent, a D block reads the =IMPORTS= property where it is, a
135135
136136Java's defaults are =:results output= and =:dir .= (=org-babel-default-header-args:java=). The =.java= and =.class= files are written in the folder the block runs in, under folders for the class's package (=org/ex/Hello.java= for =:classname org.ex.Hello=), and are left there. The class is =:classname=, the body's own class with its =package=, or =Main=.
137137
138Any other Clojure backend is refused: "The cider backend for clojure needs Emacs; Orgstar runs babashka or clojure-cli."
138Any other Clojure backend is refused: "The cider backend for clojure needs Emacs; orgstar runs babashka or clojure-cli."
139139
140Before a run, Orgstar checks that each program it needs is on the =PATH= described above. If not, the block fails with "gcc isn't installed, so C blocks can't run." (=g++= for C++, =rdmd=, =gfortran=, or the commands =:javac= and =:java= name). For Clojure without a =:backend=, the message is "Neither bb nor clojure is installed, so clojure blocks can't run."
140Before a run, orgstar checks that each program it needs is on the =PATH= described above. If not, the block fails with "gcc isn't installed, so C blocks can't run." (=g++= for C++, =rdmd=, =gfortran=, or the commands =:javac= and =:java= name). For Clojure without a =:backend=, the message is "Neither bb nor clojure is installed, so clojure blocks can't run."
141141
142142** The trust prompt
143143
144Before a block runs, Orgstar asks "Run this /language/ block? (yes, no, always)", as =org-confirm-babel-evaluate= does.
144Before a block runs, orgstar asks "Run this /language/ block? (yes, no, always)", as =org-confirm-babel-evaluate= does.
145145
146146- =yes= runs it this once.
147147- =no= does not run it.
148148- =always= runs it and remembers the block, so it runs without asking next time.
149149
150A remembered block is identified by the file's path and the exact text of the block. Any change to the block, or moving the file, makes Orgstar ask again. The remembered hashes are kept in =trusted.json= in Orgstar's Application Support folder (=~/Library/Application Support/Orgstar= on the Mac). The same file records table formulas you allowed to run Lisp. To forget every choice, delete the file while Orgstar is not running.
150A remembered block is identified by the file's path and the exact text of the block. Any change to the block, or moving the file, makes orgstar ask again. The remembered hashes are kept in =trusted.json= in orgstar's Application Support folder (=~/Library/Application Support/Orgstar= on the Mac). The same file records table formulas you allowed to run Lisp. To forget every choice, delete the file while orgstar is not running.
151151
152When a block's =:var= or =:stdin= refers to other blocks that have to run first, you are asked once for all of them. The prompt covers the block you ran and every block its references reach. If any of those blocks changes while the chain runs, Orgstar stops with "The blocks changed while running; nothing more was run."
152When a block's =:var= or =:stdin= refers to other blocks that have to run first, you are asked once for all of them. The prompt covers the block you ran and every block its references reach. If any of those blocks changes while the chain runs, orgstar stops with "The blocks changed while running; nothing more was run."
153153
154154** =:eval=
155155
@@ -159,7 +159,7 @@ When a block's =:var= or =:stdin= refers to other blocks that have to run first,
159159| =query= | Asks every time, with only =yes= and =no=. A block reached through =:var= with =:eval query= makes the whole chain ask every time. |
160160| anything else, or absent | Runs after the trust prompt. |
161161
162=never-export= and =no-export= only stop evaluation during export in Org. Orgstar does not run blocks during export, so with these values the block runs from =C-c C-c= like any other.
162=never-export= and =no-export= only stop evaluation during export in Org. orgstar does not run blocks during export, so with these values the block runs from =C-c C-c= like any other.
163163
164164** Cancelling a run
165165
@@ -302,7 +302,7 @@ echo hello
302302
303303** Where they come from
304304
305Orgstar merges header arguments in this order, each layer overriding the ones before it (=org-babel-get-src-block-info=):
305orgstar merges header arguments in this order, each layer overriding the ones before it (=org-babel-get-src-block-info=):
306306
3073071. =#+PROPERTY: header-args …= in the file, then =header-args= properties of the block's headings, from the outermost heading inwards.
3083082. =header-args:LANG= the same way, for blocks in language =LANG=.
@@ -330,7 +330,7 @@ Without any of these, a block has =:results replace=, =:exports code=, =:session
330330
331331** Lisp in header values
332332
333A header value that starts with =(=, ='=, =`= or =[= and is not in quotes is Lisp, as in =org-babel-read=. Orgstar evaluates it with its own Emacs Lisp interpreter, which also knows =buffer-file-name=, =default-directory=, =system-type= and the functions =expand-file-name=, =file-name-directory=, =file-name-nondirectory=, =file-name-sans-extension= and =file-name-as-directory=.
333A header value that starts with =(=, ='=, =`= or =[= and is not in quotes is Lisp, as in =org-babel-read=. orgstar evaluates it with its own Emacs Lisp interpreter, which also knows =buffer-file-name=, =default-directory=, =system-type= and the functions =expand-file-name=, =file-name-directory=, =file-name-nondirectory=, =file-name-sans-extension= and =file-name-as-directory=.
334334
335335#+BEGIN_SRC org
336336,#+begin_src sh :dir (concat "/" "usr") :results output
@@ -375,7 +375,7 @@ A string or number takes the place of the form. Lisp that the interpreter cannot
375375
376376** Arguments that are refused
377377
378Orgstar does not run a block whose arguments it would handle differently from Emacs. Instead it says why and runs nothing.
378orgstar does not run a block whose arguments it would handle differently from Emacs. Instead it says why and runs nothing.
379379
380380| Argument | Refused for | Message |
381381|-----------------------------+-------------------------------------------------+----------------------------------------------------------|
@@ -479,7 +479,7 @@ for a in "$@"; do echo "[$a]"; done
479479- A session starts in the block's =:dir=, or the file's folder, the first time it is used.
480480- A shell session's output is what the block prints. =:results value= gives the exit status of the last command.
481481- A Python session runs the block at top level. Its value is the value of the last expression, so =return= is not used.
482- Sessions stop when you quit Orgstar, or when you cancel a block running in one.
482- Sessions stop when you quit orgstar, or when you cancel a block running in one.
483483
484484#+BEGIN_SRC org
485485,#+begin_src python :session py :results output
@@ -494,7 +494,7 @@ a * 3
494494
495495* Caching
496496
497With =:cache yes=, Orgstar computes a SHA-1 hash of the block's header arguments and expanded body, as =org-babel-sha1-hash= does, and writes it on the results line: =#+RESULTS[hash]:=. When you run the block again and the hash matches, nothing runs and the message area shows the cached value ("Cached: …").
497With =:cache yes=, orgstar computes a SHA-1 hash of the block's header arguments and expanded body, as =org-babel-sha1-hash= does, and writes it on the results line: =#+RESULTS[hash]:=. When you run the block again and the hash matches, nothing runs and the message area shows the cached value ("Cached: …").
498498
499499Change the block or its arguments and it runs again. Results inserted with =append= or =prepend= carry no hash. Inline blocks are not cached. A cached block that has Lisp in its header arguments the interpreter cannot evaluate is refused.
500500
@@ -583,9 +583,9 @@ An inline call, =call_double(n=6)=, has the same parts as a =#+CALL:= line: =cal
583583
584584* Emacs Lisp blocks
585585
586On the Mac, an =emacs-lisp= or =elisp= block runs in a new =emacs -Q --batch= for each run, with lexical binding on. =-Q= means your init file and packages are not loaded, and nothing carries over between runs. Orgstar looks for Emacs at =ORGSTAR_EMACS=, then =/opt/homebrew/bin/emacs=, =/usr/local/bin/emacs=, =/Applications/Emacs.app/Contents/MacOS/Emacs=, =/run/current-system/sw/bin/emacs= and =/usr/bin/emacs=. Without Emacs, the block fails with "Emacs isn't installed, so Emacs Lisp blocks can't run."
586On the Mac, an =emacs-lisp= or =elisp= block runs in a new =emacs -Q --batch= for each run, with lexical binding on. =-Q= means your init file and packages are not loaded, and nothing carries over between runs. orgstar looks for Emacs at =ORGSTAR_EMACS=, then =/opt/homebrew/bin/emacs=, =/usr/local/bin/emacs=, =/Applications/Emacs.app/Contents/MacOS/Emacs=, =/run/current-system/sw/bin/emacs= and =/usr/bin/emacs=. Without Emacs, the block fails with "Emacs isn't installed, so Emacs Lisp blocks can't run."
587587
588On iOS, Emacs Lisp blocks run in Orgstar's own Emacs Lisp interpreter. It covers ordinary list, string, number and control forms, =princ= and =message=. A block that uses something the interpreter does not have fails with "This block uses Emacs Lisp that runs only in Emacs, on the Mac." A Lisp error fails the run, as it does in Emacs.
588On iOS, Emacs Lisp blocks run in orgstar's own Emacs Lisp interpreter. It covers ordinary list, string, number and control forms, =princ= and =message=. A block that uses something the interpreter does not have fails with "This block uses Emacs Lisp that runs only in Emacs, on the Mac." A Lisp error fails the run, as it does in Emacs.
589589
590590Variables are bound with =let= around the body. =:results output= collects what the block prints with =princ=, =prin1=, =print= and =terpri=.
591591
@@ -688,7 +688,7 @@ Block switches also apply. =-r= removes coderef labels such as =(ref:name)=, usi
688688
689689The link is relative to the tangled file's folder. /name/ is the block's =#+NAME=, or the heading's title and the block's number under that heading, such as =Setup:2=.
690690
691Comments need the language's comment syntax. Orgstar knows it for: =emacs-lisp=, =elisp=, =lisp=, =scheme=, =asm= (=;;=); =python=, =ruby=, =perl=, =conf=, =toml=, =makefile=, =awk=, =tcl=, =m4=, =icon=, =desktop= and the shells except =fish= (=#=); =js=, =javascript=, =java=, =cpp=, =C++=, =objc=, =csharp=, =idl=, =pike=, =antlr=, =verilog= (=//=); =c=, =C=, =css= (=/* */=); =lua=, =sql=, =sqlite=, =vhdl= (=--=); =latex=, =tex=, =prolog= (=%%=); =ps=, =metapost= (=%=); =f90=, =dcl= (=!=); =html=, =xml=, =nxml=, =mhtml=, =sgml= (=<!-- -->=); =octave= (=##=); =pascal= (={ }=); =texinfo= (=@c=); =bibtex= (=@Comment=); =nroff= (=\"=); =bat= (=rem=). For any other language, =:comments= other than =no= stops tangling with a message.
691Comments need the language's comment syntax. orgstar knows it for: =emacs-lisp=, =elisp=, =lisp=, =scheme=, =asm= (=;;=); =python=, =ruby=, =perl=, =conf=, =toml=, =makefile=, =awk=, =tcl=, =m4=, =icon=, =desktop= and the shells except =fish= (=#=); =js=, =javascript=, =java=, =cpp=, =C++=, =objc=, =csharp=, =idl=, =pike=, =antlr=, =verilog= (=//=); =c=, =C=, =css= (=/* */=); =lua=, =sql=, =sqlite=, =vhdl= (=--=); =latex=, =tex=, =prolog= (=%%=); =ps=, =metapost= (=%=); =f90=, =dcl= (=!=); =html=, =xml=, =nxml=, =mhtml=, =sgml= (=<!-- -->=); =octave= (=##=); =pascal= (={ }=); =texinfo= (=@c=); =bibtex= (=@Comment=); =nroff= (=\"=); =bat= (=rem=). For any other language, =:comments= other than =no= stops tangling with a message.
692692
693693** Writing the files
694694
@@ -710,11 +710,11 @@ Tangling stops, writes nothing and says why when:
710710
711711* On iOS
712712
713- Only Emacs Lisp blocks run, in Orgstar's own interpreter. Any other language, compiled languages included, fails with "/language/ blocks need the Mac to run." (for example "C blocks need the Mac to run."), and so does an Emacs Lisp block whose =:var= refers to a block in another language.
713- Only Emacs Lisp blocks run, in orgstar's own interpreter. Any other language, compiled languages included, fails with "/language/ blocks need the Mac to run." (for example "C blocks need the Mac to run."), and so does an Emacs Lisp block whose =:var= refers to a block in another language.
714714- There are no sessions and no graphics.
715715- The trust prompt works the same way, with its own =trusted.json= on the device.
716716- There is no cancel command.
717- Tangling works, for files in folders Orgstar can write to.
717- Tangling works, for files in folders orgstar can write to.
718718- Edit Block opens a plain text sheet without highlighting.
719719
720720See [[file:14-ios.org][iOS]] for the rest of the iOS app.
docs/manual/guide/12-export.org +11 −11
@@ -1,6 +1,6 @@
11#+TITLE: Export
2#+DESCRIPTION: Exporting Org files from Orgstar to HTML and Markdown, and to PDF, LaTeX, ODT and plain text through Emacs.
3#+LEDE: Orgstar exports HTML and Markdown itself, and hands PDF, LaTeX, ODT and plain text to Emacs on the Mac.
2#+DESCRIPTION: Exporting Org files from orgstar to HTML and Markdown, and to PDF, LaTeX, ODT and plain text through Emacs.
3#+LEDE: orgstar exports HTML and Markdown itself, and hands PDF, LaTeX, ODT and plain text to Emacs on the Mac.
44
55* Exporting a file
66
@@ -38,7 +38,7 @@ The Export menu offers HTML and Markdown. It is under More in the editor, and in
3838
3939* HTML export
4040
41Orgstar writes a complete HTML page: a small built-in stylesheet that follows the system's light or dark appearance, the title, an author and date line, the table of contents, then the document. It does not use Emacs, and its output is close to, but not the same as, =ox-html=.
41orgstar writes a complete HTML page: a small built-in stylesheet that follows the system's light or dark appearance, the title, an author and date line, the table of contents, then the document. It does not use Emacs, and its output is close to, but not the same as, =ox-html=.
4242
4343** Title, author and date
4444
@@ -95,7 +95,7 @@ The built-in stylesheet is always included first. Other =#+HTML_…= keywords ar
9595
9696** Math
9797
98LaTeX fragments (=\(…\)=, =\[…\]=, =$…$=, =$$…$$=) and LaTeX environments are left in the page for MathJax. When the page has any, Orgstar adds MathJax 3 from =cdn.jsdelivr.net=, so the page needs a network connection to show math. Entities such as =\alpha= become their characters.
98LaTeX fragments (=\(…\)=, =\[…\]=, =$…$=, =$$…$$=) and LaTeX environments are left in the page for MathJax. When the page has any, orgstar adds MathJax 3 from =cdn.jsdelivr.net=, so the page needs a network connection to show math. Entities such as =\alpha= become their characters.
9999
100100** Includes
101101
@@ -130,7 +130,7 @@ A file that cannot be read is replaced by an empty line.
130130| ={{{n}}}=, ={{{n(name)}}}= | A counter, increased at each use. =n(name,-)= repeats the current value; =n(name,5)= sets it to 5. |
131131| ={{{time(format)}}}= | The current time, formatted as =format-time-string= does. |
132132
133Arguments are separated by commas; write =\,= for a literal comma. Macros defined with =(eval …)=, and macros Orgstar does not know, become empty. =#+MACRO:= definitions in setup files count.
133Arguments are separated by commas; write =\,= for a literal comma. Macros defined with =(eval …)=, and macros orgstar does not know, become empty. =#+MACRO:= definitions in setup files count.
134134
135135** Footnotes
136136
@@ -152,9 +152,9 @@ Links to =.org= files point to the =.html= file of the same name. Links to headi
152152
153153** Source blocks and their results
154154
155A source block is exported as =<pre><code class="language-LANG">=, with the code escaped and its common indentation removed. Orgstar does not color the code; the class lets a script or stylesheet in =#+HTML_HEAD= highlight it. Noweb references are shown as written. Line-number switches are ignored.
155A source block is exported as =<pre><code class="language-LANG">=, with the code escaped and its common indentation removed. orgstar does not color the code; the class lets a script or stylesheet in =#+HTML_HEAD= highlight it. Noweb references are shown as written. Line-number switches are ignored.
156156
157The block's =:exports= header argument decides what appears. Orgstar resolves it as running the block would: from the =#+begin_src= line, =#+HEADER:= lines, =header-args= properties and =#+PROPERTY:= lines (see [[file:11-code-blocks.org][Code blocks]]). Without one, it is =results= for =dot=, =plantuml=, =ditaa=, =gnuplot=, =latex= and =lilypond= blocks, as their Org defaults set it, and =code= for other languages.
157The block's =:exports= header argument decides what appears. orgstar resolves it as running the block would: from the =#+begin_src= line, =#+HEADER:= lines, =header-args= properties and =#+PROPERTY:= lines (see [[file:11-code-blocks.org][Code blocks]]). Without one, it is =results= for =dot=, =plantuml=, =ditaa=, =gnuplot=, =latex= and =lilypond= blocks, as their Org defaults set it, and =code= for other languages.
158158
159159| =:exports= | Exported |
160160|------------------+-------------------------------------------|
@@ -220,12 +220,12 @@ On the Mac, PDF, LaTeX, ODT and plain text exports are done by Emacs, with the =
220220| ODT | =org-odt-export-to-odt= |
221221| Plain text | =org-ascii-export-to-ascii= |
222222
223Orgstar runs =emacs -Q --batch= in the Org file's folder. It opens the file, replaces its contents with the editor's current text without saving, and calls the function. Emacs writes the result beside the file, as it would itself; with a destination chosen in the export dialog, Orgstar then moves it there. The message area shows "Exporting with Emacs…" and then "Exported to /name/".
223orgstar runs =emacs -Q --batch= in the Org file's folder. It opens the file, replaces its contents with the editor's current text without saving, and calls the function. Emacs writes the result beside the file, as it would itself; with a destination chosen in the export dialog, orgstar then moves it there. The message area shows "Exporting with Emacs…" and then "Exported to /name/".
224224
225225What you need:
226226
227227- Emacs, at =ORGSTAR_EMACS= or one of =/opt/homebrew/bin/emacs=, =/usr/local/bin/emacs=, =/Applications/Emacs.app/Contents/MacOS/Emacs=, =/run/current-system/sw/bin/emacs= or =/usr/bin/emacs=. Without it the export fails with "Emacs isn't installed, so this format can't be exported."
228- For PDF, a TeX installation that Emacs's LaTeX export can run. Emacs runs with your =PATH= plus =/opt/homebrew/bin=, =/usr/local/bin=, =/Library/TeX/texbin=, =/usr/bin= and =/bin=, the same as code blocks get, so =latexmk= and =pdflatex= from MacTeX or Homebrew are found when Orgstar was opened from the Dock.
228- For PDF, a TeX installation that Emacs's LaTeX export can run. Emacs runs with your =PATH= plus =/opt/homebrew/bin=, =/usr/local/bin=, =/Library/TeX/texbin=, =/usr/bin= and =/bin=, the same as code blocks get, so =latexmk= and =pdflatex= from MacTeX or Homebrew are found when orgstar was opened from the Dock.
229229
230230Things to know:
231231
@@ -236,7 +236,7 @@ Things to know:
236236- Edit ▸ Cancel Running Task (=⌘.=) stops the export and shows "Export canceled". Starting another export or table recalculation in Emacs cancels the one that is running.
237237- If Emacs fails, the message area shows the last line of its error output.
238238
239To use your own Emacs configuration, or formats Orgstar does not list, export from Emacs itself; see [[file:15-alongside-emacs.org][Alongside Emacs]].
239To use your own Emacs configuration, or formats orgstar does not list, export from Emacs itself; see [[file:15-alongside-emacs.org][Alongside Emacs]].
240240
241241* Citations
242242
@@ -260,7 +260,7 @@ Each =#+bibliography:= line names one file, relative to the Org file, optionally
260260=#+cite_export: PROCESSOR [BIBLIOGRAPHY-STYLE [CITATION-STYLE]]=.
261261
262262- With no =#+cite_export:=, or with =basic=, citations are processed.
263- With any other processor, such as =csl= or =biblatex=, Orgstar leaves citations as they are written.
263- With any other processor, such as =csl= or =biblatex=, orgstar leaves citations as they are written.
264264- The citation style, which may include a variant (=text/bare=), is the default for citations that do not name one.
265265
266266** Citation styles
docs/manual/guide/13-configuration.org +37 −37
@@ -4,16 +4,16 @@
44
55* Where settings live
66
7Orgstar keeps its settings in a configuration folder:
7orgstar keeps its settings in a configuration folder:
88
99- =$XDG_CONFIG_HOME/orgstar= when =XDG_CONFIG_HOME= is set and not empty,
1010- otherwise =~/.config/orgstar=.
1111
12The environment variable =ORGSTAR_CONFIG_DIR= overrides both. If a file is missing from the configuration folder but exists in =~/Library/Application Support/Orgstar= (where earlier versions kept it), Orgstar reads it from there, and reloads it when you edit it there.
12The environment variable =ORGSTAR_CONFIG_DIR= overrides both. If a file is missing from the configuration folder but exists in =~/Library/Application Support/Orgstar= (where earlier versions kept it), orgstar reads it from there, and reloads it when you edit it there.
1313
1414The folder holds these files:
1515
16| File | What it holds | Written by Orgstar |
16| File | What it holds | Written by orgstar |
1717|----------------------+------------------------------------------------------------------+---------------------------------------|
1818| =config.toml= | Every setting of the Settings window, and the theme | Yes, when you change a setting |
1919| =keymap.toml= | Your key bindings, on top of the preset | Only by Import from Emacs |
@@ -21,20 +21,20 @@ The folder holds these files:
2121| =views.toml= | Saved agenda views | No |
2222| =default-theme.toml= | The default theme's colors, for reference | Yes, at every launch |
2323
24=config.toml= is the source of truth. The Settings window writes each change into it, keeping your comments and the order of lines, and edits you make to the file apply while Orgstar runs. If the file doesn't exist at launch, Orgstar creates it with every setting at its current value and a comment after each one.
24=config.toml= is the source of truth. The Settings window writes each change into it, keeping your comments and the order of lines, and edits you make to the file apply while orgstar runs. If the file doesn't exist at launch, orgstar creates it with every setting at its current value and a comment after each one.
2525
26When you add the folder to a dotfiles repository, keep =default-theme.toml= out of it or ignore its changes: Orgstar rewrites it whenever its contents differ from the built-in theme.
26When you add the folder to a dotfiles repository, keep =default-theme.toml= out of it or ignore its changes: orgstar rewrites it whenever its contents differ from the built-in theme.
2727
2828** Opening config.toml
2929
30- Orgstar ▸ Edit Config File (=⌥⌘,=) opens =config.toml= as a buffer in the main window. The command palette has the same command as Edit Config File.
31- Settings ▸ General has three buttons for the file: Edit in Orgstar, Open with Default App, and Show in Finder.
30- orgstar ▸ Edit Config File (=⌥⌘,=) opens =config.toml= as a buffer in the main window. The command palette has the same command as Edit Config File.
31- Settings ▸ General has three buttons for the file: Edit in orgstar, Open with Default App, and Show in Finder.
3232
3333Saving the buffer applies the file, the same as saving it from another editor.
3434
3535** Problems in the files
3636
37If =config.toml= has a line Orgstar can't use, the problem shows in the message line under the editor, with a count when there are more. Each problem names the file and the key:
37If =config.toml= has a line orgstar can't use, the problem shows in the message line under the editor, with a count when there are more. Each problem names the file and the key:
3838
3939- =config.toml: unknown setting editor.foo=
4040- =config.toml: org-log-done must be one of nil, time, note=
@@ -45,13 +45,13 @@ A file that isn't valid TOML is reported with its parse error, and none of it ap
4545
4646* The Settings window
4747
48Open it with Orgstar ▸ Settings (=⌘,=). It has five panes. Each control writes the =config.toml= key named in the tables below; the config.toml reference below gives the type and the Emacs variable.
48Open it with orgstar ▸ Settings (=⌘,=). It has five panes. Each control writes the =config.toml= key named in the tables below; the config.toml reference below gives the type and the Emacs variable.
4949
5050** General
5151
5252| Control | Choices | Default | Key |
5353|--------------------------------------------+------------------------------------------------------------------------------+---------------------------------+------------------|
54| config.toml: Edit in Orgstar | Opens the file in the main window | | |
54| config.toml: Edit in orgstar | Opens the file in the main window | | |
5555| config.toml: Open with Default App | Opens the file in the app macOS uses for =.toml= | | |
5656| config.toml: Show in Finder | Selects the file in Finder | | |
5757| Emacs: Import from Emacs… | Opens the import sheet; see Import from Emacs below| | |
@@ -78,13 +78,13 @@ Automatic saving writes a file one second after you stop typing. The keymap pres
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= |
8080
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.
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.
8282
8383The Tags picker offers two values. =config.toml= accepts any integer; with a value other than =-77= or =0= the picker shows no selection.
8484
8585The long-lines switch applies to files as they open; View ▸ Truncate or Wrap Long Lines switches the file in front.
8686
87Default TODO keywords apply to files without a =#+TODO= line. Orgstar reads them at launch, so a change takes effect after you quit and reopen Orgstar.
87Default TODO keywords apply to files without a =#+TODO= line. orgstar reads them at launch, so a change takes effect after you quit and reopen orgstar.
8888
8989The two dependency switches are described under Dependencies in [[file:05-todos-and-tags.org][TODOs and tags]].
9090
@@ -120,7 +120,7 @@ See Themes and Fonts below.
120120
121121An entry's =APPT_WARNTIME= property overrides the lead time. The agenda is covered in [[file:07-agenda.org][The agenda]].
122122
123The calendar checkboxes appear once Show events from Calendar is on and Orgstar may read your calendars; turning the switch on asks for that access. While every calendar is checked, =calendar-event-calendars= is empty, so calendars you add later show too. The last checked calendar can't be unchecked; turn off Show events from Calendar instead.
123The calendar checkboxes appear once Show events from Calendar is on and orgstar may read your calendars; turning the switch on asks for that access. While every calendar is checked, =calendar-event-calendars= is empty, so calendars you add later show too. The last checked calendar can't be unchecked; turn off Show events from Calendar instead.
124124
125125Turning on the idle question sets =org-clock-idle-time= to 15 minutes; turning it off sets it to =0=. The minutes stepper is disabled while the question is off. Idle time and the clock history are covered in [[file:06-dates-and-clocking.org][Dates and clocking]].
126126
@@ -177,8 +177,8 @@ A key you remove from the file goes back to its default. A key that isn't in the
177177| =org-insert-heading-respect-content= | boolean | =true= | =M-RET= adds the new heading after the current subtree. Mirrors =org-insert-heading-respect-content=. |
178178| =org-M-RET-may-split-line= | boolean | =false= | =M-RET= in the middle of a line splits it at the caret. Mirrors the =default= entry of =org-M-RET-may-split-line=. |
179179| =org-list-allow-alphabetical= | boolean | =true= | =a.=, =b)=, =A.= are list bullets. Mirrors =org-list-allow-alphabetical=. |
180| =org-hide-emphasis-markers= | boolean | =true= | Your Emacs hides =*bold*= and ~=code=~ markers; Orgstar hides them when markup is hidden and measures text without them. Mirrors =org-hide-emphasis-markers=. |
181| =org-pretty-entities= | boolean | =true= | Your Emacs shows =\alpha= as α and lowers =x_{1}=; Orgstar does the same when markup is hidden. Mirrors =org-pretty-entities=. |
180| =org-hide-emphasis-markers= | boolean | =true= | Your Emacs hides =*bold*= and ~=code=~ markers; orgstar hides them when markup is hidden and measures text without them. Mirrors =org-hide-emphasis-markers=. |
181| =org-pretty-entities= | boolean | =true= | Your Emacs shows =\alpha= as α and lowers =x_{1}=; orgstar does the same when markup is hidden. Mirrors =org-pretty-entities=. |
182182| =org-todo-keywords= | string | see below | Keywords for files without =#+TODO=, in =#+TODO= syntax; separate sequences with =\n=. Letters in parentheses turn on fast selection. Read at launch. Mirrors =org-todo-keywords=. |
183183| =org-log-done= | string | ="nil"= | =nil=, =time= (a =CLOSED= timestamp) or =note= (=CLOSED= and a note). Mirrors =org-log-done=. |
184184| =org-log-reschedule= | string | ="nil"= | =nil=, =time= or =note=: log changing or removing a =SCHEDULED= date. Mirrors =org-log-reschedule=. |
@@ -196,7 +196,7 @@ A key you remove from the file goes back to its default. A key that isn't in the
196196| =org-use-speed-commands= | boolean | =false= | Single keys at the start of a heading line run commands (=n=, =p=, =t=, =c=, …). Mirrors =org-use-speed-commands=. |
197197| =org-cycle-hide-drawer-startup= | boolean | =true= | Fold drawers when a file opens. =#+STARTUP: hidedrawers= / =nohidedrawers= override it. Mirrors =org-cycle-hide-drawer-startup=. |
198198| =org-cycle-hide-block-startup= | boolean | =false= | Fold blocks when a file opens. =#+STARTUP: hideblocks= / =nohideblocks= override it. Mirrors =org-cycle-hide-block-startup=. |
199| =display-line-numbers-type= | boolean | =true= | Line numbers in the editor's gutter. Orgstar numbers lines absolutely; there is no relative or visual mode. |
199| =display-line-numbers-type= | boolean | =true= | Line numbers in the editor's gutter. orgstar numbers lines absolutely; there is no relative or visual mode. |
200200| =org-agenda-span= | integer | =10= | Days the agenda shows. Mirrors =org-agenda-span=. |
201201| =org-agenda-start-day= | string | ="+0d"= | The agenda's first day relative to today, as ="-3d"= or ="+0d"=. Only day offsets are accepted. Mirrors =org-agenda-start-day=. |
202202| =org-agenda-show-all-dates= | boolean | =false= | Show days without entries in the agenda; today always shows. Emacs's default is =t=. Mirrors =org-agenda-show-all-dates=. |
@@ -206,8 +206,8 @@ A key you remove from the file goes back to its default. A key that isn't in the
206206| =org-agenda-search-view-force-full-words= | boolean | =false= | Text search snippets match whole words only, as a leading =:= does. Mirrors =org-agenda-search-view-force-full-words=. |
207207| =org-agenda-dim-blocked-tasks= | string | ="t"= | =t= dims entries the two enforce settings block, =invisible= hides them (entries blocked only by checkboxes are still dimmed), =nil= shows them as usual. Mirrors =org-agenda-dim-blocked-tasks=. |
208208| =appt-message-warning-time= | integer | =12= | Minutes of warning before timed entries. An entry's =APPT_WARNTIME= property overrides it. Mirrors =appt-message-warning-time=. |
209| =org-clock-idle-time= | integer | =0= | Minutes without keyboard or mouse input, with a clock running, before Orgstar asks what to do with the idle time. =0= never asks (Emacs's =nil=). Mac only. Mirrors =org-clock-idle-time=. |
210| =org-clock-history-length= | integer | =5= | How many recently clocked entries Orgstar remembers. Mirrors =org-clock-history-length=. |
209| =org-clock-idle-time= | integer | =0= | Minutes without keyboard or mouse input, with a clock running, before orgstar asks what to do with the idle time. =0= never asks (Emacs's =nil=). Mac only. Mirrors =org-clock-idle-time=. |
210| =org-clock-history-length= | integer | =5= | How many recently clocked entries orgstar remembers. Mirrors =org-clock-history-length=. |
211211
212212The default =org-todo-keywords= is the first sequence of Doom Emacs's default:
213213
@@ -289,11 +289,11 @@ save = "explicit"
289289
290290** Names from earlier versions
291291
292Earlier versions used keys such as =editor.fill-column= and =agenda.span=. Orgstar still reads them. At launch, each such key in the file is renamed in place to its current name and moved to its current section; the rest of the file, and the comments on those lines, stay as they are. When a setting is in the file under both names, the current name wins and the old line is removed. A section the move leaves empty is removed. A file that lacks a whole section (such as =[theme]=) gets that section added at the end.
292Earlier versions used keys such as =editor.fill-column= and =agenda.span=. orgstar still reads them. At launch, each such key in the file is renamed in place to its current name and moved to its current section; the rest of the file, and the comments on those lines, stay as they are. When a setting is in the file under both names, the current name wins and the old line is removed. A section the move leaves empty is removed. A file that lacks a whole section (such as =[theme]=) gets that section added at the end.
293293
294294* keymap.toml and capture.toml
295295
296=keymap.toml= holds =[[bind]]= tables with =keys=, =command=, and optionally =mode= and =when=. They layer over the preset chosen in Keys. Orgstar reloads the file when it changes. See [[file:03-keys.org][Keys and commands]].
296=keymap.toml= holds =[[bind]]= tables with =keys=, =command=, and optionally =mode= and =when=. They layer over the preset chosen in Keys. orgstar reloads the file when it changes. See [[file:03-keys.org][Keys and commands]].
297297
298298#+BEGIN_SRC toml
299299[[bind]]
@@ -301,15 +301,15 @@ keys = "C-c a"
301301command = "app.agenda"
302302#+END_SRC
303303
304=capture.toml= holds =[[template]]= tables. Without the file, Orgstar uses two templates: =t= (Personal todo, under =Inbox= in =todo.org=) and =n= (Personal notes, under =Inbox= in =notes.org=). See [[file:08-capture.org][Capture]].
304=capture.toml= holds =[[template]]= tables. Without the file, orgstar uses two templates: =t= (Personal todo, under =Inbox= in =todo.org=) and =n= (Personal notes, under =Inbox= in =notes.org=). See [[file:08-capture.org][Capture]].
305305
306306=views.toml= holds =[[view]]= tables for the agenda; see [[file:07-agenda.org][The agenda]].
307307
308308* In-file settings
309309
310Keyword lines in a file set options for that file, as in Emacs. Orgstar reads them outside blocks; for =#+STARTUP= only keyword lines count, so a =#+STARTUP= line inside a paragraph or a block changes nothing: not folding, logging or inline images.
310Keyword lines in a file set options for that file, as in Emacs. orgstar reads them outside blocks; for =#+STARTUP= only keyword lines count, so a =#+STARTUP= line inside a paragraph or a block changes nothing: not folding, logging or inline images.
311311
312** Keywords Orgstar reads
312** Keywords orgstar reads
313313
314314| Keyword | Effect |
315315|-----------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------|
@@ -361,7 +361,7 @@ After you change a keyword line, press =C-c C-c= on it to read the file's settin
361361| =logredeadline=, =lognoteredeadline=, =nologredeadline= | The same, when a deadline changes. |
362362| =logdrawer=, =nologdrawer= | Notes go in =LOGBOOK=, or under the heading. |
363363
364After the startup visibility, Orgstar applies each heading's =VISIBILITY= property and folds subtrees tagged =ARCHIVE=, unless =showeverything= is set.
364After the startup visibility, orgstar applies each heading's =VISIBILITY= property and folds subtrees tagged =ARCHIVE=, unless =showeverything= is set.
365365
366366Completion offers every option of =org-startup-options=. Options not in the table above, such as =odd=, =entitiespretty=, =latexpreview=, =constSI= and the footnote options, are accepted and ignored.
367367
@@ -374,7 +374,7 @@ Completion offers every option of =org-startup-options=. Options not in the tabl
374374- URLs (anything starting with =scheme://=) aren't fetched.
375375- A setup file that can't be read, or isn't UTF-8, is skipped without a message.
376376
377Keywords from setup files count for TODO keywords, priorities, =#+STARTUP=, =#+TAGS=, =#+FILETAGS=, =#+PROPERTY=, =#+CATEGORY=, =#+ARCHIVE=, =#+COLUMNS=, =#+LINK=, =#+CONSTANTS= and export. Orgstar reads setup files when a file opens, when you press =C-c C-c= on a keyword line, and when the file changes on disk. If you edit only the setup file, press =C-c C-c= on a keyword line of each open file that uses it.
377Keywords from setup files count for TODO keywords, priorities, =#+STARTUP=, =#+TAGS=, =#+FILETAGS=, =#+PROPERTY=, =#+CATEGORY=, =#+ARCHIVE=, =#+COLUMNS=, =#+LINK=, =#+CONSTANTS= and export. orgstar reads setup files when a file opens, when you press =C-c C-c= on a keyword line, and when the file changes on disk. If you edit only the setup file, press =C-c C-c= on a keyword line of each open file that uses it.
378378
379379* Import from Emacs
380380
@@ -383,8 +383,8 @@ Import from Emacs reads your Emacs or Doom Emacs configuration and offers to car
383383** Running it
384384
3853851. Open Settings ▸ General and click Import from Emacs…, or run Import from Emacs… from the command palette (=⇧⌘P=).
3862. Orgstar looks for a configuration in these places, in order, and reads the first it finds: =$DOOMDIR=, =~/.config/doom=, =~/.doom.d=, =~/.config/emacs=, =~/.emacs.d=, =~/.emacs=. A folder counts when it holds =init.el=, =config.el= or =custom.el=. Doom's own installation folder (one with =lisp/doom.el=) is skipped.
3873. To read another configuration, click Choose… and pick a file or a folder. For a folder, Orgstar reads =init.el=, =config.el= and =custom.el= in it.
3862. orgstar looks for a configuration in these places, in order, and reads the first it finds: =$DOOMDIR=, =~/.config/doom=, =~/.doom.d=, =~/.config/emacs=, =~/.emacs.d=, =~/.emacs=. A folder counts when it holds =init.el=, =config.el= or =custom.el=. Doom's own installation folder (one with =lisp/doom.el=) is skipped.
3873. To read another configuration, click Choose… and pick a file or a folder. For a folder, orgstar reads =init.el=, =config.el= and =custom.el= in it.
3883884. The sheet lists what it found under Settings, Folders, Capture templates and Key bindings, each with the line it came from (=config.el:27=, or =Doom default=). Everything is selected; clear what you don't want.
3893895. Click Import. The sheet then summarizes what was imported and any problems.
390390
@@ -395,21 +395,21 @@ What Import does with each kind of item:
395395- Capture templates are appended to =capture.toml=, except those whose key is already in the file.
396396- Key bindings are appended to =keymap.toml=, except those already in the file with the same keys, command and state. Running the import again adds no duplicates.
397397
398The Not imported section lists what Orgstar read but can't use, with the reason: settings it has no equivalent for, values it can't work out without running Emacs, bindings to code rather than a command, and files it couldn't read. The footer counts variables that aren't about org, which are left alone.
398The Not imported section lists what orgstar read but can't use, with the reason: settings it has no equivalent for, values it can't work out without running Emacs, bindings to code rather than a command, and files it couldn't read. The footer counts variables that aren't about org, which are left alone.
399399
400400A literate configuration (=config.org=) isn't read. Point Choose… at the =config.el= it tangles to.
401401
402402** Doom Emacs
403403
404A configuration counts as Doom when it contains =(doom!=, =(map! = or =(after! =. Orgstar then also reads Doom's own org defaults, from the Doom installation in =$EMACSDIR=, =~/.config/emacs= or =~/.emacs.d=: =modules/lang/org/config.el= and =lisp/doom-emacs.el=. Your configuration overrides them. Doom defaults Orgstar has no use for are counted in the footer rather than listed.
404A configuration counts as Doom when it contains =(doom!=, =(map! = or =(after! =. orgstar then also reads Doom's own org defaults, from the Doom installation in =$EMACSDIR=, =~/.config/emacs= or =~/.emacs.d=: =modules/lang/org/config.el= and =lisp/doom-emacs.el=. Your configuration overrides them. Doom defaults orgstar has no use for are counted in the footer rather than listed.
405405
406406A Doom configuration, or any configuration that enables =evil=, adds =keymap = "doom"=.
407407
408408** What it reads
409409
410Orgstar reads the configuration as Lisp data; it never runs it. It looks at these forms:
410orgstar reads the configuration as Lisp data; it never runs it. It looks at these forms:
411411
412| Form | What Orgstar takes |
412| Form | What orgstar takes |
413413|----------------------------------------------------------------------+---------------------------------------------------------------------------------|
414414| =setq=, =setq-default=, =setq!=, =setopt=, =csetq= | Each variable and value |
415415| =defvar=, =defcustom= | The value, below every other assignment |
@@ -423,7 +423,7 @@ Orgstar reads the configuration as Lisp data; it never runs it. It looks at thes
423423
424424When a variable is set more than once, the last assignment wins, with assignments inside =after!= and similar forms winning over plain ones, and those over Doom's defaults.
425425
426Orgstar works out a value when it is a literal, a quoted or backquoted form (with =,= and =,@=), a variable set earlier in the configuration, or a call to =list=, =concat=, =expand-file-name=, =file-name-concat= or =file-name-as-directory= on such values. Anything else, such as a function call or a value computed from the environment, is listed under Not imported as worked out when Emacs runs.
426orgstar works out a value when it is a literal, a quoted or backquoted form (with =,= and =,@=), a variable set earlier in the configuration, or a call to =list=, =concat=, =expand-file-name=, =file-name-concat= or =file-name-as-directory= on such values. Anything else, such as a function call or a value computed from the environment, is listed under Not imported as worked out when Emacs runs.
427427
428428Only variables whose names start with =org-=, =appt-=, =display-line-numbers=, =fill-column=, =evil-=, =doom-font=, =doom-variable-pitch-font=, =doom-theme= or =calendar-week-start-day= are considered.
429429
@@ -448,7 +448,7 @@ Only variables whose names start with =org-=, =appt-=, =display-line-numbers=, =
448448| =org-agenda-files= | A folder for each entry; for a =.org= file, its folder |
449449| =org-capture-templates= | Templates for =capture.toml=; see below |
450450| =doom-font= | =font= and =font-size=, from =(font-spec :family … :size …)= or ="Family-14"= |
451| =doom-variable-pitch-font= | Not imported: Orgstar uses one font |
451| =doom-variable-pitch-font= | Not imported: orgstar uses one font |
452452| =doom-theme= | Not imported: set colors under =[theme]= |
453453| =evil-mode= in use, or Doom | =keymap = "doom"= |
454454
@@ -456,7 +456,7 @@ Any other =org-= or =appt-= variable is listed as having no equivalent.
456456
457457Capture templates are imported when their type is =entry=, =item=, =checkitem=, =plain= or =table-line=, their template is a string, and their target is =file=, =file+headline=, =file+olp=, =file+olp+datetree=, =file+datetree=, =file+weektree=, =id= or =clock=. The properties =:prepend=, =:immediate-finish=, =:jump-to-captured=, =:clock-in=, =:clock-keep=, =:clock-resume=, =:empty-lines=, =:empty-lines-before=, =:empty-lines-after=, =:tree-type= (=day=, =week=, =month=) and =:table-line-pos= carry over; others are listed as left out. Template groups (a key and a name only) are skipped.
458458
459Key bindings are imported when the command is one Orgstar has a counterpart for, such as =org-todo=, =org-schedule=, =org-refile=, =org-capture= or =save-buffer=. The clock commands =org-clock-in=, =org-clock-out=, =org-clock-cancel=, =org-clock-goto=, =org-clock-in-last=, =org-resolve-clocks= and =org-clock-mark-default-task= map to Clock In, Clock Out, Cancel Clock, Go to Clocked Entry, Clock In to Last Entry, Resolve Open Clocks… and Mark as Default Clock Task. Keys must be a string or =(kbd "…")=; bindings with key vectors such as =[f5]= are skipped. In a Doom configuration, bindings without a state go to the =normal= state.
459Key bindings are imported when the command is one orgstar has a counterpart for, such as =org-todo=, =org-schedule=, =org-refile=, =org-capture= or =save-buffer=. The clock commands =org-clock-in=, =org-clock-out=, =org-clock-cancel=, =org-clock-goto=, =org-clock-in-last=, =org-resolve-clocks= and =org-clock-mark-default-task= map to Clock In, Clock Out, Cancel Clock, Go to Clocked Entry, Clock In to Last Entry, Resolve Open Clocks… and Mark as Default Clock Task. Keys must be a string or =(kbd "…")=; bindings with key vectors such as =[f5]= are skipped. In a Doom configuration, bindings without a state go to the =normal= state.
460460
461461** Limits of the Lisp reader
462462
@@ -467,7 +467,7 @@ Key bindings are imported when the command is one Orgstar has a counterpart for,
467467
468468* Themes
469469
470Orgstar has one built-in theme, the default theme, with light and dark colors after GitHub's light and dark themes for text and code. TODO keywords, priorities and the agenda's statuses use the system's red, orange, blue and green, as iOS and macOS show them. You change it by setting colors in =config.toml=, or by keeping a theme in its own file.
470orgstar has one built-in theme, the default theme, with light and dark colors after GitHub's light and dark themes for text and code. TODO keywords, priorities and the agenda's statuses use the system's red, orange, blue and green, as iOS and macOS show them. You change it by setting colors in =config.toml=, or by keeping a theme in its own file.
471471
472472Colors are strings in the form ="#rrggbb"= or ="#rrggbbaa"=. They go in these tables:
473473
@@ -520,7 +520,7 @@ To keep a theme in its own file, put it in the configuration folder with the sam
520520theme-file = "solarized.toml"
521521#+END_SRC
522522
523The colors stack in this order, each over the one before: the default theme, the theme file, then the colors in =config.toml=. The path is relative to the configuration folder and may name a subfolder, as =themes/solarized.toml=. Orgstar reloads the theme file when it changes. Only colors are read from a theme file; =font= and the other type keys in its =[theme]= table are ignored.
523The colors stack in this order, each over the one before: the default theme, the theme file, then the colors in =config.toml=. The path is relative to the configuration folder and may name a subfolder, as =themes/solarized.toml=. orgstar reloads the theme file when it changes. Only colors are read from a theme file; =font= and the other type keys in its =[theme]= table are ignored.
524524
525525** Color keys
526526
@@ -593,7 +593,7 @@ An unknown color key, a value that isn't a color, or an unknown table such as =[
593593
594594* Appearance
595595
596Orgstar follows the system's light or dark appearance (System Settings ▸ Appearance). There is no setting to fix one appearance; to use the same colors in both, set them under =[theme]= rather than =[theme.light]= or =[theme.dark]=.
596orgstar follows the system's light or dark appearance (System Settings ▸ Appearance). There is no setting to fix one appearance; to use the same colors in both, set them under =[theme]= rather than =[theme.light]= or =[theme.dark]=.
597597
598598* Fonts
599599
docs/manual/guide/14-ios.org +21 −21
@@ -1,6 +1,6 @@
11#+TITLE: iPhone and iPad
22#+DESCRIPTION: The iOS app: folders, reading and editing, search, the agenda, widgets, capture, clocking, reminders, export and settings.
3#+LEDE: Orgstar for iPhone and iPad reads and edits the same org files as the Mac, with the agenda, capture and search.
3#+LEDE: orgstar for iPhone and iPad reads and edits the same org files as the Mac, with the agenda, capture and search.
44
55* Overview
66
@@ -15,16 +15,16 @@ Files open in a reader first. The Edit button in the reader opens the editor. Bo
1515
1616* Folders and file access
1717
18Orgstar on iOS works on folders you choose, in iCloud Drive or in another app's storage (for example a folder kept by a Syncthing client).
18orgstar on iOS works on folders you choose, in iCloud Drive or in another app's storage (for example a folder kept by a Syncthing client).
1919
20201. Open the Folders tab and tap Add Folder (the folder icon with a plus).
21212. Choose a folder in the picker.
2222
23Orgstar keeps access to the folder across launches. Each folder appears as a section listing its =.org= files by their path inside the folder. Remove Folder at the end of a section removes it from Orgstar; the files stay where they are.
23orgstar keeps access to the folder across launches. Each folder appears as a section listing its =.org= files by their path inside the folder. Remove Folder at the end of a section removes it from orgstar; the files stay where they are.
2424
25Files that iCloud hasn't downloaded to the device yet appear in grey with a cloud icon. Orgstar asks iCloud to download them and lists them as files once they arrive.
25Files that iCloud hasn't downloaded to the device yet appear in grey with a cloud icon. orgstar asks iCloud to download them and lists them as files once they arrive.
2626
27Orgstar sees changes made by iCloud and by apps that use the system's file coordination, and reads every folder again each time you return to the app, since not every sync app reports its changes. An open file takes in changes from disk as described in [[file:15-alongside-emacs.org][Working alongside Emacs and other tools]].
27orgstar sees changes made by iCloud and by apps that use the system's file coordination, and reads every folder again each time you return to the app, since not every sync app reports its changes. An open file takes in changes from disk as described in [[file:15-alongside-emacs.org][Working alongside Emacs and other tools]].
2828
2929There is no way to open a single file from the Files app. Add the folder that contains it.
3030
@@ -173,7 +173,7 @@ See [[file:07-agenda.org][The agenda]] for the rows, the views and matches, and
173173
174174** Widgets
175175
176Orgstar has two widgets. Add them as any widget: touch and hold the Home Screen or the Lock Screen, and choose Orgstar in the widget gallery.
176orgstar has two widgets. Add them as any widget: touch and hold the Home Screen or the Lock Screen, and choose orgstar in the widget gallery.
177177
178178| Widget | Sizes | Shows |
179179|--------+----------------------------------------------+---------------------------------------------------------------------------------------------|
@@ -184,13 +184,13 @@ What's left of today is today's entries and calendar events that aren't done, wi
184184
185185Tapping a row in the medium or large Today widget opens that entry; tapping elsewhere opens the agenda. Tapping Up Next opens the next entry, or the agenda when there is none.
186186
187Widgets can't read your folders, so the app writes the next seven days of the agenda (today included) for them to read: while it is open, when files, edits or settings change, when you return to the app, and every hour. Between those times the widgets move on by themselves as timed entries end and at midnight, but they show nothing new until you open Orgstar. Until the app has written the agenda once, they say =Open Orgstar to show your agenda here.= The widgets ignore the agenda's filter and show no days without entries.
187Widgets can't read your folders, so the app writes the next seven days of the agenda (today included) for them to read: while it is open, when files, edits or settings change, when you return to the app, and every hour. Between those times the widgets move on by themselves as timed entries end and at midnight, but they show nothing new until you open orgstar. Until the app has written the agenda once, they say =Open orgstar to show your agenda here.= The widgets ignore the agenda's filter and show no days without entries.
188188
189189** The clock's Live Activity
190190
191191While a clock runs, it shows on the Lock Screen and in the Dynamic Island: the heading, the time so far, and a Clock Out button. Clock Out stops the clock as Clock Out does in the app, and saves the file. Tapping the Live Activity opens the clocked entry.
192192
193The Live Activity starts when you clock in in the app and ends when the clock stops, however it stops. It needs Live Activities allowed for Orgstar in the Settings app (Settings ▸ Orgstar ▸ Live Activities).
193The Live Activity starts when you clock in in the app and ends when the clock stops, however it stops. It needs Live Activities allowed for orgstar in the Settings app (Settings ▸ orgstar ▸ Live Activities).
194194
195195** orgstar:// links
196196
@@ -217,17 +217,17 @@ Templates come from =capture.toml= in the configuration folder (see Settings bel
217217
218218** From the share sheet
219219
220Orgstar appears in the share sheet of other apps for a web link or text.
220orgstar appears in the share sheet of other apps for a web link or text.
221221
2221. Share a page or text and choose Orgstar.
2221. Share a page or text and choose orgstar.
2232232. Choose a template, edit the link's title, and add text.
2242243. Tap Capture.
225225
226The share extension doesn't file the entry itself. It leaves it for the app, which opens its capture sheet with the link and text the next time it becomes active. Several shared items open one after another. If the extension shows "Orgstar's shared folder isn't available", the app and its extension can't share data, and Capture is disabled.
226The share extension doesn't file the entry itself. It leaves it for the app, which opens its capture sheet with the link and text the next time it becomes active. Several shared items open one after another. If the extension shows "orgstar's shared folder isn't available", the app and its extension can't share data, and Capture is disabled.
227227
228228** From Shortcuts
229229
230Shortcuts has a Capture to Orgstar action, and Siri responds to "Capture to Orgstar". The action takes:
230Shortcuts has a Capture to orgstar action, and Siri responds to "Capture to orgstar". The action takes:
231231
232232- Text :: the text to capture, available to the template as =%i=.
233233- Template Key :: a key from =capture.toml=; empty uses the first template.
@@ -258,9 +258,9 @@ See [[file:06-dates-and-clocking.org][Dates and clocking]].
258258
259259* Reminders
260260
261With =reminders= on, Orgstar schedules a notification before each timed agenda entry in the next week, =appt-message-warning-time= minutes ahead (or the entry's =APPT_WARNTIME=). Tap a notification to open its entry. Notifications show while the app is open too.
261With =reminders= on, orgstar schedules a notification before each timed agenda entry in the next week, =appt-message-warning-time= minutes ahead (or the entry's =APPT_WARNTIME=). Tap a notification to open its entry. Notifications show while the app is open too.
262262
263iOS lets an app schedule at most 64 notifications, and Orgstar schedules more only while it runs. It updates them when files or settings change, when you return to the app, and every hour while it is open. The agenda's status line says how far ahead reminders are set ("Reminders are set through …"), or that notifications are off for Orgstar in the system Settings app.
263iOS lets an app schedule at most 64 notifications, and orgstar schedules more only while it runs. It updates them when files or settings change, when you return to the app, and every hour while it is open. The agenda's status line says how far ahead reminders are set ("Reminders are set through …"), or that notifications are off for orgstar in the system Settings app.
264264
265265* Export
266266
@@ -272,12 +272,12 @@ PDF, ODT, LaTeX and plain-text export need Emacs and aren't available on iOS. Se
272272
273273=C-c C-c= on a source block asks whether to run it (yes, no, or always for this block), as on the Mac.
274274
275On iOS, only Emacs Lisp blocks run. Orgstar evaluates them with its own Emacs Lisp interpreter, which covers a subset of the language. Other results:
275On iOS, only Emacs Lisp blocks run. orgstar evaluates them with its own Emacs Lisp interpreter, which covers a subset of the language. Other results:
276276
277277- A block in another language: "/language/ blocks need the Mac to run."
278278- Emacs Lisp the interpreter doesn't have: "This block uses Emacs Lisp that runs only in Emacs, on the Mac."
279279
280Table formulas that Orgstar computes itself work on iOS. A table whose formulas need Emacs reports "This table needs Emacs, which runs on the Mac", with the reason, and isn't changed.
280Table formulas that orgstar computes itself work on iOS. A table whose formulas need Emacs reports "This table needs Emacs, which runs on the Mac", with the reason, and isn't changed.
281281
282282Tangling (=C-c C-v t=, in Commands) works on iOS and writes the tangled files next to the org file, or where =:tangle= says.
283283
@@ -285,7 +285,7 @@ See [[file:11-code-blocks.org][Code blocks]] and [[file:10-tables.org][Tables]].
285285
286286* Conflicts and versions
287287
288When a file changes on disk while you have unsaved edits, Orgstar merges the change into your edits. When the changes overlap, the conflict sheet opens. It shows the difference (lines marked - are on disk, + in your version) and offers:
288When a file changes on disk while you have unsaved edits, orgstar merges the change into your edits. When the changes overlap, the conflict sheet opens. It shows the difference (lines marked - are on disk, + in your version) and offers:
289289
290290- Keep Mine :: write your version over the disk version.
291291- Use Disk Version :: replace your edits with the disk version.
@@ -305,7 +305,7 @@ See [[file:15-alongside-emacs.org][Working alongside Emacs and other tools]] for
305305The iOS app reads its settings from a configuration folder: a folder holding =config.toml= and =capture.toml=, such as a copy of the Mac's =~/.config/orgstar= synced through iCloud Drive or another app.
306306
3073071. Open the Settings tab.
3082. Tap Choose Folder… and choose the folder. If it has no =config.toml=, Orgstar writes one with every setting at its default, each with a comment, as the Mac does.
3082. Tap Choose Folder… and choose the folder. If it has no =config.toml=, orgstar writes one with every setting at its default, each with a comment, as the Mac does.
309309
310310Changes to the files apply as they sync, and again each time you return to the app. Problems in the files show in red under the folder. "No config.toml in /folder/; the defaults apply" means the folder has no =config.toml=, for example because it was removed after you chose the folder.
311311
@@ -318,7 +318,7 @@ The Agenda, TODO Dependencies and Calendar sections are the only places the app
318318- Show days without entries :: turns =org-agenda-show-all-dates= on or off.
319319- Blocked entries :: Dimmed, Hidden or Shown as usual (=org-agenda-dim-blocked-tasks=).
320320- TODO Dependencies :: Not done before TODO children (=org-enforce-todo-dependencies=) and Not done with unchecked boxes (=org-enforce-todo-checkbox-dependencies=).
321- Show Calendar Events :: turns on =calendar-events=, and asks for access to your calendars. iOS asks for full access, as Calendar has no read-only level; Orgstar only reads. While access is missing the section shows Allow Access to Calendars…; if you declined, allow it in the Settings app under Privacy & Security ▸ Calendars.
321- Show Calendar Events :: turns on =calendar-events=, and asks for access to your calendars. iOS asks for full access, as Calendar has no read-only level; orgstar only reads. While access is missing the section shows Allow Access to Calendars…; if you declined, allow it in the Settings app under Privacy & Security ▸ Calendars.
322322- The calendars :: tap one to show or hide its events (=calendar-event-calendars=). With every calendar checked the setting is empty, so calendars added later show too.
323323
324324These write =config.toml= in the configuration folder, as the Mac's Settings window does, so the Mac sees the change too. Without a configuration folder they are kept on the device.
@@ -345,13 +345,13 @@ These settings from =config.toml= apply on iOS:
345345
346346* Spotlight and Quick Look
347347
348Orgstar adds the org files in your folders to Spotlight with their title (=#+TITLE=, else the file name), author, description, tags, headings and text. A file is indexed again when it changes. Tap a Spotlight result to open the file in Orgstar's reader.
348orgstar adds the org files in your folders to Spotlight with their title (=#+TITLE=, else the file name), author, description, tags, headings and text. A file is indexed again when it changes. Tap a Spotlight result to open the file in orgstar's reader.
349349
350350Quick Look in the Files app shows org files as the HTML export renders them.
351351
352352* What the Mac has that iOS doesn't
353353
354- Running code blocks in languages other than Emacs Lisp, Emacs Lisp beyond Orgstar's interpreter, and tables that need Emacs.
354- Running code blocks in languages other than Emacs Lisp, Emacs Lisp beyond orgstar's interpreter, and tables that need Emacs.
355355- PDF, ODT, LaTeX and plain-text export.
356356- The Mac and Doom keymaps, Vim keys, and =keymap.toml=.
357357- Idle detection while a clock runs.
docs/manual/guide/15-alongside-emacs.org +41 −41
@@ -1,31 +1,31 @@
11#+TITLE: Working alongside Emacs and other tools
2#+DESCRIPTION: How Orgstar reads and writes files shared with Emacs and sync tools, merges outside changes, keeps recovery versions, calls Emacs, and differs from Emacs Org.
3#+LEDE: Orgstar works on plain org files in ordinary folders, so Emacs, other apps and sync tools can work on the same files.
2#+DESCRIPTION: How orgstar reads and writes files shared with Emacs and sync tools, merges outside changes, keeps recovery versions, calls Emacs, and differs from Emacs Org.
3#+LEDE: orgstar works on plain org files in ordinary folders, so Emacs, other apps and sync tools can work on the same files.
44
5* How Orgstar treats files
5* How orgstar treats files
66
77** Bytes on disk
88
9Orgstar edits the file's text directly; there is no separate document format. When it saves, text you didn't change is written back exactly as it was read:
9orgstar edits the file's text directly; there is no separate document format. When it saves, text you didn't change is written back exactly as it was read:
1010
1111- A file with no changes is never rewritten.
1212- Untouched lines keep their bytes, including trailing whitespace, tabs, and the presence or absence of a final newline.
13- Line endings are kept as they are. A file with CRLF line endings keeps them, and on the Mac the modeline shows =CRLF= for such a file. Orgstar doesn't convert line endings; new lines that Orgstar's commands insert end with LF.
13- Line endings are kept as they are. A file with CRLF line endings keeps them, and on the Mac the modeline shows =CRLF= for such a file. orgstar doesn't convert line endings; new lines that orgstar's commands insert end with LF.
1414
1515** Encodings
1616
17Orgstar edits UTF-8 files, with or without a byte order mark. A file that starts with a BOM keeps it.
17orgstar edits UTF-8 files, with or without a byte order mark. A file that starts with a BOM keeps it.
1818
19A file that isn't valid UTF-8 (UTF-16, Latin-1, or a file with invalid bytes) opens read-only. The window's subtitle says "Read-only: not UTF-8", undecodable bytes show as replacement characters, and commands that would change the file report that it "isn't UTF-8, so it can't be changed". Orgstar never converts such a file.
19A file that isn't valid UTF-8 (UTF-16, Latin-1, or a file with invalid bytes) opens read-only. The window's subtitle says "Read-only: not UTF-8", undecodable bytes show as replacement characters, and commands that would change the file report that it "isn't UTF-8, so it can't be changed". orgstar never converts such a file.
2020
2121** How a save works
2222
2323Saving replaces the file through a temporary file in the same folder (named =.name.org.orgstar-…=), under the system's file coordination, so iCloud and other coordinating apps see a complete file. The steps are:
2424
251. Read the file on disk. If it changed since Orgstar last read or wrote it, keep both versions in the recovery folder and merge the change into your edits (see below).
251. Read the file on disk. If it changed since orgstar last read or wrote it, keep both versions in the recovery folder and merge the change into your edits (see below).
26262. Read the file again. If it changed in the meantime, start over, up to three times.
27273. Replace the file. If another program replaced it between the check and the write, its version goes to the recovery folder and is merged into your edits.
284. Read the file back. If it changed right after the write, Orgstar's version goes to the recovery folder and the new disk version is merged in.
284. Read the file back. If it changed right after the write, orgstar's version goes to the recovery folder and the new disk version is merged in.
2929
3030Emacs and Syncthing don't use file coordination, so these checks can't lock them out. They narrow the window in which two writers can collide, and every version a save displaces is kept in the recovery folder.
3131
@@ -33,19 +33,19 @@ If the file keeps changing through all three attempts, the save fails with an er
3333
3434** Automatic and explicit saving
3535
36With =save = "automatic"= (the default), Orgstar saves a file one second after you stop typing. With ="explicit"=, only =⌘S= (Save) and =⌥⌘S= (Save All) save. See [[file:13-configuration.org][Configuration]]. The iOS app always saves automatically.
36With =save = "automatic"= (the default), orgstar saves a file one second after you stop typing. With ="explicit"=, only =⌘S= (Save) and =⌥⌘S= (Save All) save. See [[file:13-configuration.org][Configuration]]. The iOS app always saves automatically.
3737
38* Changes made outside Orgstar
38* Changes made outside orgstar
3939
40Orgstar watches your folders. On the Mac it uses FSEvents; on iOS it is told of changes by file coordination and reads the folders again when you return to the app. When a file that is open in Orgstar changes on disk:
40orgstar watches your folders. On the Mac it uses FSEvents; on iOS it is told of changes by file coordination and reads the folders again when you return to the app. When a file that is open in orgstar changes on disk:
4141
42- If you have no unsaved edits in it, Orgstar reloads it. Undo history for the file is cleared.
43- If you have unsaved edits, Orgstar merges the disk version into them and saves the result.
42- If you have no unsaved edits in it, orgstar reloads it. Undo history for the file is cleared.
43- If you have unsaved edits, orgstar merges the disk version into them and saves the result.
4444- If the changes conflict, nothing is saved and the conflict sheet opens.
4545
46The merge is a line-based three-way merge between the version Orgstar last read or wrote, your edits, and the disk version. A run of lines changed on one side only takes that side; changed the same way on both, it is taken once; changed differently on both, it is a conflict. Lines keep their endings, so CRLF files and a missing final newline survive a merge. A disk version that isn't valid UTF-8 always conflicts.
46The merge is a line-based three-way merge between the version orgstar last read or wrote, your edits, and the disk version. A run of lines changed on one side only takes that side; changed the same way on both, it is taken once; changed differently on both, it is a conflict. Lines keep their endings, so CRLF files and a missing final newline survive a merge. A disk version that isn't valid UTF-8 always conflicts.
4747
48After a reload or merge, Orgstar also reads the file's setup files again.
48After a reload or merge, orgstar also reads the file's setup files again.
4949
5050** The conflict sheet
5151
@@ -64,11 +64,11 @@ On the Mac, Revert to File on Disk (in the command palette) loads the disk versi
6464
6565** iCloud Drive
6666
67Orgstar reads and writes files under file coordination, which is how iCloud expects apps to work. Files iCloud hasn't downloaded yet (=.name.org.icloud= placeholders) aren't indexed; Orgstar asks iCloud to download them and indexes them when they arrive. On iOS they appear in the Folders tab with a cloud icon until then.
67orgstar reads and writes files under file coordination, which is how iCloud expects apps to work. Files iCloud hasn't downloaded yet (=.name.org.icloud= placeholders) aren't indexed; orgstar asks iCloud to download them and indexes them when they arrive. On iOS they appear in the Folders tab with a cloud icon until then.
6868
6969** Syncthing
7070
71Syncthing writes files without file coordination. Orgstar sees its changes through file watching and merges them as described above.
71Syncthing writes files without file coordination. orgstar sees its changes through file watching and merges them as described above.
7272
7373- Syncthing's temporary files (=.syncthing.*=) are ignored.
7474- Its folders =.stfolder= and =.stversions= are in the default =ignored-folders=.
@@ -86,11 +86,11 @@ Each choice then moves the copy to the recovery folder and deletes it from the f
8686
8787** Dropbox and other tools
8888
89Any program that writes files in your folders is treated the same way: Orgstar sees the change, reloads or merges, and keeps displaced versions. Programs that write through file coordination (iCloud, File Provider apps on iOS) are seen as they write; others are seen through FSEvents on the Mac and when you return to the app on iOS.
89Any program that writes files in your folders is treated the same way: orgstar sees the change, reloads or merges, and keeps displaced versions. Programs that write through file coordination (iCloud, File Provider apps on iOS) are seen as they write; others are seen through FSEvents on the Mac and when you return to the app on iOS.
9090
91** Files Orgstar ignores
91** Files orgstar ignores
9292
93When scanning folders, Orgstar skips Emacs lock files (=.#name=), backups (=name~=) and auto-save files (=#name#=), its own temporary and backup files (names containing =.orgstar-=), =.DS_Store=, =.localized=, and the folders in =ignored-folders=. With =show-hidden-files = false=, every dotfile and dot folder is skipped. Orgstar doesn't create or honour Emacs lock files.
93When scanning folders, orgstar skips Emacs lock files (=.#name=), backups (=name~=) and auto-save files (=#name#=), its own temporary and backup files (names containing =.orgstar-=), =.DS_Store=, =.localized=, and the folders in =ignored-folders=. With =show-hidden-files = false=, every dotfile and dot folder is skipped. orgstar doesn't create or honour Emacs lock files.
9494
9595* Recovery versions
9696
@@ -104,7 +104,7 @@ Each file has a subfolder named from a hash of its path, holding its last 20 kep
104104| Label | Kept when |
105105|-----------------+-------------------------------------------------------------------------------|
106106| =external= | A version written by another program was replaced or merged |
107| =local= | Orgstar's version was replaced, or set aside by Use Disk Version, Merge with Markers or Restore |
107| =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
110110Recovery 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.
@@ -116,15 +116,15 @@ Some features run Emacs in batch mode on the Mac. Everything else works without
116116| Feature | What runs |
117117|----------------------------------------------------------------+-----------------------------------------------------------------------------------------------|
118118| Emacs Lisp source blocks (=emacs-lisp=, =elisp=) | The block, in =emacs -Q --batch= |
119| Table formulas outside what Orgstar computes itself | =org-table-recalculate= on a copy of the file; the table's new text replaces the old one if the table didn't change meanwhile |
120| Lisp table formulas that Orgstar's Emacs Lisp interpreter can't evaluate | The same; Orgstar first asks whether to run Lisp (yes, no, always) |
119| Table formulas outside what orgstar computes itself | =org-table-recalculate= on a copy of the file; the table's new text replaces the old one if the table didn't change meanwhile |
120| Lisp table formulas that orgstar's Emacs Lisp interpreter can't evaluate | The same; orgstar first asks whether to run Lisp (yes, no, always) |
121121| Export to PDF, ODT, LaTeX and plain text | =org-latex-export-to-pdf=, =org-odt-export-to-odt=, =org-latex-export-to-latex= or =org-ascii-export-to-ascii= |
122122
123123HTML and Markdown export don't use Emacs. See [[file:11-code-blocks.org][Code blocks]], [[file:10-tables.org][Tables]] and [[file:12-export.org][Export]].
124124
125125** How Emacs is found
126126
127Orgstar uses the first of these that is an executable file:
127orgstar uses the first of these that is an executable file:
128128
1291291. the path in the environment variable =ORGSTAR_EMACS=,
1301302. =/opt/homebrew/bin/emacs=,
@@ -133,52 +133,52 @@ Orgstar uses the first of these that is an executable file:
1331335. =/run/current-system/sw/bin/emacs=,
1341346. =/usr/bin/emacs=.
135135
136An app started from the Dock doesn't see your shell's =PATH=, which is why Orgstar looks in fixed places. Without Emacs, these features report "Emacs isn't installed, so …" and change nothing.
136An app started from the Dock doesn't see your shell's =PATH=, which is why orgstar looks in fixed places. Without Emacs, these features report "Emacs isn't installed, so …" and change nothing.
137137
138138** What Emacs sees
139139
140140- Emacs runs with =-Q=: your =init.el=, packages and customizations aren't loaded. Org and the exporters are the versions bundled with that Emacs.
141- Orgstar writes a snapshot of the buffer to a temporary folder and runs Emacs on it, so unsaved edits are included. The working directory is the file's folder.
141- orgstar writes a snapshot of the buffer to a temporary folder and runs Emacs on it, so unsaved edits are included. The working directory is the file's folder.
142142- File-local variables marked safe apply (=enable-local-variables= is =:safe=).
143143- Export doesn't run source blocks (=org-export-use-babel= is =nil=). The exported file is written next to the org file, as Emacs writes it, or moved to the place you chose.
144- For export and table recalculation, Emacs gets your =PATH= with =/opt/homebrew/bin=, =/usr/local/bin=, =/Library/TeX/texbin=, =/usr/bin= and =/bin= added, as source blocks do, so the programs it starts, such as =pdflatex=, are found when Orgstar was opened from the Dock.
144- For export and table recalculation, Emacs gets your =PATH= with =/opt/homebrew/bin=, =/usr/local/bin=, =/Library/TeX/texbin=, =/usr/bin= and =/bin= added, as source blocks do, so the programs it starts, such as =pdflatex=, are found when orgstar was opened from the Dock.
145145- PDF export needs a LaTeX installation that Org's LaTeX exporter can run.
146146- A table recalculation that takes more than 60 seconds, or an export that takes more than 120 seconds, is stopped. Source blocks have a limit of 300 seconds. =⌘.= (Cancel Running Task) stops a running block, export or table recalculation sooner.
147147
148148* Quick Look
149149
150Orgstar includes a Quick Look extension for org files (=.org= and =.org_archive=). Pressing Space on an org file in Finder, or in the Files app on iOS, shows the file as the HTML export renders it, with its =#+SETUPFILE= keywords applied. The preview reads only UTF-8 files.
150orgstar includes a Quick Look extension for org files (=.org= and =.org_archive=). Pressing Space on an org file in Finder, or in the Files app on iOS, shows the file as the HTML export renders it, with its =#+SETUPFILE= keywords applied. The preview reads only UTF-8 files.
151151
152Inside Orgstar, selecting a file in the sidebar that isn't text shows a Quick Look preview, with Open with Default App and Show in Finder below it.
152Inside orgstar, selecting a file in the sidebar that isn't text shows a Quick Look preview, with Open with Default App and Show in Finder below it.
153153
154154* Spotlight
155155
156On the Mac, Orgstar includes a Spotlight importer for org files. Spotlight indexes each file's text, its title (=#+TITLE=, else the file name), =#+AUTHOR=, =#+DESCRIPTION=, and its tags (=#+FILETAGS= and heading tags) and headings as keywords. The importer reads only UTF-8 files.
156On the Mac, orgstar includes a Spotlight importer for org files. Spotlight indexes each file's text, its title (=#+TITLE=, else the file name), =#+AUTHOR=, =#+DESCRIPTION=, and its tags (=#+FILETAGS= and heading tags) and headings as keywords. The importer reads only UTF-8 files.
157157
158158On iOS, the app adds the files in your folders to Spotlight itself; see [[file:14-ios.org][iPhone and iPad]].
159159
160160* Finder
161161
162Orgstar declares the =org.orgmode.org= file type for the extensions =.org= and =.org_archive=, and registers as an editor for it, and as an alternate editor for plain text. Double-clicking an org file in Finder, dropping files on Orgstar's Dock icon, or running =open -a Orgstar file.org= opens each file as a buffer. Files opened while Orgstar is starting open once its window is ready. To make Orgstar the app that opens org files, use Finder's Get Info ▸ Open with ▸ Change All.
162orgstar declares the =org.orgmode.org= file type for the extensions =.org= and =.org_archive=, and registers as an editor for it, and as an alternate editor for plain text. Double-clicking an org file in Finder, dropping files on orgstar's Dock icon, or running =open -a orgstar file.org= opens each file as a buffer. Files opened while orgstar is starting open once its window is ready. To make orgstar the app that opens org files, use Finder's Get Info ▸ Open with ▸ Change All.
163163
164164* org-protocol and Shortcuts
165165
166Orgstar registers the =org-protocol:= URL scheme on the Mac and iOS, and handles two sub-protocols, in both the =?key=value= form and the older =:/a/b/c= form:
166orgstar registers the =org-protocol:= URL scheme on the Mac and iOS, and handles two sub-protocols, in both the =?key=value= form and the older =:/a/b/c= form:
167167
168168- =org-protocol://capture= opens Capture with the link's template, URL, title and body.
169169- =org-protocol://store-link= stores the link for =C-c C-l= and copies it to the clipboard.
170170
171Other sub-protocols, such as =open-source=, show "Orgstar handles org-protocol capture and store-link".
171Other sub-protocols, such as =open-source=, show "orgstar handles org-protocol capture and store-link".
172172
173The Shortcuts action Capture to Orgstar, on the Mac and iOS, files text with a capture template without opening the capture window. See [[file:08-capture.org][Capture]].
173The Shortcuts action Capture to orgstar, on the Mac and iOS, files text with a capture template without opening the capture window. See [[file:08-capture.org][Capture]].
174174
175175* Compatibility notes
176176
177177** Defaults that differ from Emacs
178178
179Orgstar's defaults follow a common Doom Emacs setup rather than plain Emacs in several places. If you use plain Emacs on the same files, set these in =config.toml= to match your Emacs, or use Import from Emacs; see [[file:13-configuration.org][Configuration]].
179orgstar's defaults follow a common Doom Emacs setup rather than plain Emacs in several places. If you use plain Emacs on the same files, set these in =config.toml= to match your Emacs, or use Import from Emacs; see [[file:13-configuration.org][Configuration]].
180180
181| Setting | Orgstar default | Plain Emacs default |
181| Setting | orgstar default | Plain Emacs default |
182182|--------------------------------------+-------------------------------------+---------------------------------|
183183| =fill-column= | 80 | 70 |
184184| =org-todo-keywords= | =TODO PROJ LOOP STRT WAIT HOLD IDEA=, done =DONE KILL= | =TODO=, done =DONE= |
@@ -194,7 +194,7 @@ Orgstar's defaults follow a common Doom Emacs setup rather than plain Emacs in s
194194| =org-agenda-start-day= | ="+0d"= | today |
195195| =org-agenda-show-all-dates= | =false= | =t= |
196196
197=org-hide-emphasis-markers= and =org-pretty-entities= matter for files you also edit in Emacs: Orgstar aligns tags and tables, and fills paragraphs, by the width text has on screen in your Emacs. If they don't match your Emacs, tags and tables that Orgstar aligns look misaligned in Emacs.
197=org-hide-emphasis-markers= and =org-pretty-entities= matter for files you also edit in Emacs: orgstar aligns tags and tables, and fills paragraphs, by the width text has on screen in your Emacs. If they don't match your Emacs, tags and tables that orgstar aligns look misaligned in Emacs.
198198
199199These behave as Emacs's defaults and can't be changed: =org-log-repeat= is =time=, fast TODO selection is on when keywords have keys, priorities are =A= to =C= with =B= as default unless =#+PRIORITIES= says otherwise, and =org-use-sub-superscripts= is ={}= for display (only =x_{1}= and =x^{2}= are lowered and raised).
200200
@@ -209,7 +209,7 @@ The agenda selects the same entries as Org's, but shows them its own way (see [[
209209
210210** Known differences from Emacs Org
211211
212Orgstar refuses some things with a message rather than doing something different from Emacs. These are the ones found in the current version.
212orgstar refuses some things with a message rather than doing something different from Emacs. These are the ones found in the current version.
213213
214214Code blocks (see [[file:11-code-blocks.org][Code blocks]]):
215215
@@ -218,7 +218,7 @@ Code blocks (see [[file:11-code-blocks.org][Code blocks]]):
218218- =:session= is supported only for shells and Python. C, C++, D, Java, Fortran and Clojure ignore it, as in Org.
219219- Clojure runs with babashka or the Clojure CLI only; other =:backend= values are refused.
220220- =:var= isn't supported for Ruby, JavaScript, R and awk blocks.
221- Header arguments, =:var= values and =:cache= that need Lisp evaluated by Emacs are refused when Orgstar's interpreter can't evaluate them: "… is Lisp that only Emacs can evaluate; nothing was run."
221- Header arguments, =:var= values and =:cache= that need Lisp evaluated by Emacs are refused when orgstar's interpreter can't evaluate them: "… is Lisp that only Emacs can evaluate; nothing was run."
222222- Noweb references that run a block aren't supported.
223223- Tangling refuses =:var= that would run a block, and tables and lists in =:var= for some languages.
224224- On iOS, only Emacs Lisp blocks run.
@@ -235,7 +235,7 @@ Capture templates (see [[file:08-capture.org][Capture]]):
235235
236236Tables and dynamic blocks (see [[file:10-tables.org][Tables]] and [[file:06-dates-and-clocking.org][Dates and clocking]]):
237237
238- Formulas outside Orgstar's own calculator go to Emacs on the Mac and are refused on iOS.
238- Formulas outside orgstar's own calculator go to Emacs on the Mac and are refused on iOS.
239239- Clock tables support the scopes =nil=, =file=, =subtree= and =treeN=; other scopes, =:match= and =:step= aren't supported.
240240- Dynamic blocks other than =clocktable= and =columnview= aren't supported. Column views of other files aren't supported.
241241
docs/manual/index.org +5 −5
@@ -1,9 +1,9 @@
1#+TITLE: Orgstar
1#+TITLE: orgstar
22#+DESCRIPTION: A native macOS and iOS editor for org-mode files.
3#+LEDE: Orgstar edits org files in place, alongside Emacs and the sync tools you already use.
3#+LEDE: orgstar edits org files in place, alongside Emacs and the sync tools you already use.
44#+OPTIONS: toc:nil
55
6Orgstar is an editor for [[https://orgmode.org][Org mode]] files on the Mac, with an app for
6orgstar is an editor for [[https://orgmode.org][Org mode]] files on the Mac, with an app for
77iPhone and iPad. It reads and writes the same plain-text files Emacs does, behaves the
88way Org does where the two overlap, and leaves every byte you didn't change as it was.
99
@@ -39,10 +39,10 @@ reminders, export and tangling.
3939
4040* Principles
4141
42- *The files are the source of truth.* There is no database of your notes. Orgstar
42- *The files are the source of truth.* There is no database of your notes. orgstar
4343 keeps an index for search and the agenda, rebuilt from the files whenever they change.
4444- *Only your edits are written.* Saving rewrites the bytes you changed and nothing
4545 else: indentation, line endings, encoding marks and unusual spacing elsewhere stay.
4646- *Org's behaviour, not a lookalike.* Commands follow what Org 9.8 does, and are
47 checked against Emacs in the test suite. Where Orgstar can't do something the way
47 checked against Emacs in the test suite. Where orgstar can't do something the way
4848 Org would, it says so and leaves the file alone rather than guessing.
docs/manual/install.org +6 −6
@@ -1,6 +1,6 @@
11#+TITLE: Install
2#+DESCRIPTION: Building Orgstar for the Mac and the iOS Simulator from source.
3#+LEDE: Orgstar is built from source; there are no prebuilt downloads yet.
2#+DESCRIPTION: Building orgstar for the Mac and the iOS Simulator from source.
3#+LEDE: orgstar is built from source; there are no prebuilt downloads yet.
44
55* Requirements
66
@@ -17,11 +17,11 @@
1717git clone https://gitbay.org/krz/orgstar.git
1818cd orgstar
1919scripts/build-app.sh
20open .build/app/Orgstar.app
20open .build/app/orgstar.app
2121#+END_SRC
2222
2323=scripts/build-app.sh= builds a release binary and assembles
24=.build/app/Orgstar.app= with its Quick Look and Spotlight extensions, signed ad hoc
24=.build/app/orgstar.app= with its Quick Look and Spotlight extensions, signed ad hoc
2525for use on your own Mac. Move it to =/Applications= to keep it. Pass a version number
2626as the first argument to stamp the bundle (=scripts/build-app.sh 1.0.0=); the default
2727is =0.1.0=.
@@ -45,7 +45,7 @@ For the Simulator without opening Xcode (this build has no widgets):
4545
4646#+BEGIN_SRC sh
4747scripts/build-ios-app.sh
48xcrun simctl install booted .build/ios-app/Orgstar.app
48xcrun simctl install booted .build/ios-app/orgstar.app
4949#+END_SRC
5050
5151See [[file:guide/14-ios.org][iPhone and iPad]] for what it does.
@@ -63,5 +63,5 @@ Your settings live in =~/.config/orgstar/= and survive rebuilds.
6363
6464* Uninstalling
6565
66Delete =Orgstar.app=. To remove your settings as well, delete =~/.config/orgstar/=.
66Delete =orgstar.app=. To remove your settings as well, delete =~/.config/orgstar/=.
6767Your org files are never stored inside the app.
docs/manual/orgo.toml +2 −2
@@ -1,8 +1,8 @@
1# The Orgstar user manual, built with orgo and published to the pages branch by
1# The orgstar user manual, built with orgo and published to the pages branch by
22# scripts/publish-docs.sh.
33
44[site]
5title = "Orgstar"
5title = "orgstar"
66description = "A native macOS and iOS editor for org-mode files."
77language = "en"
88base_url = ""
docs/manual/quickstart.org +2 −2
@@ -5,7 +5,7 @@
55* Add a folder
66
77Choose File ▸ Add Folder… (=⇧⌘O=) and pick the folder that holds your org files.
8It appears in the sidebar, and Orgstar indexes every org file under it for search,
8It appears in the sidebar, and orgstar indexes every org file under it for search,
99the agenda and links. You can add several folders. Nothing is copied or moved.
1010
1111If you don't have org files yet, add an empty folder and create =notes.org= in it from
@@ -13,7 +13,7 @@ Finder or the sidebar.
1313
1414* Choose your keys
1515
16Open Orgstar ▸ Settings… (=⌘,=) and pick *Keys* under General:
16Open orgstar ▸ Settings… (=⌘,=) and pick *Keys* under General:
1717
1818- *Emacs*: Org's own bindings, =C-c C-t= and friends. The default.
1919- *Mac*: standard Mac editing keys, with Org commands on =⌃⌘= combinations.
docs/manual/templates/base.html +1 −1
@@ -49,7 +49,7 @@
4949{%- endif %}
5050{% block content %}{{ body | safe }}{% endblock %}</main>
5151<footer class="site">
52Orgstar is 0BSD-licensed. Source: <a href="https://gitbay.org/krz/orgstar">gitbay.org/krz/orgstar</a>.
52orgstar is 0BSD-licensed. Source: <a href="https://gitbay.org/krz/orgstar">gitbay.org/krz/orgstar</a>.
5353</footer>
5454</body>
5555</html>
ios/Orgstar.xcodeproj/project.pbxproj −4
@@ -481,8 +481,6 @@
481481 DEVELOPMENT_TEAM = ZCNAX3VL9D;
482482 GENERATE_INFOPLIST_FILE = NO;
483483 INFOPLIST_FILE = Orgstar/Info.plist;
484 INFOPLIST_KEY_CFBundleDisplayName = orgstar;
485 INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.productivity";
486484 LD_RUNPATH_SEARCH_PATHS = (
487485 "$(inherited)",
488486 "@executable_path/Frameworks",
@@ -565,8 +563,6 @@
565563 DEVELOPMENT_TEAM = ZCNAX3VL9D;
566564 GENERATE_INFOPLIST_FILE = NO;
567565 INFOPLIST_FILE = Orgstar/Info.plist;
568 INFOPLIST_KEY_CFBundleDisplayName = orgstar;
569 INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.productivity";
570566 LD_RUNPATH_SEARCH_PATHS = (
571567 "$(inherited)",
572568 "@executable_path/Frameworks",
ios/Orgstar/Info.plist +5 −3
@@ -3,13 +3,15 @@
33<plist version="1.0">
44<dict>
55 <key>CFBundleDisplayName</key>
6 <string>Orgstar</string>
6 <string>orgstar</string>
77 <key>CFBundleExecutable</key>
88 <string>$(EXECUTABLE_NAME)</string>
99 <key>CFBundleIdentifier</key>
1010 <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11 <key>LSApplicationCategoryType</key>
12 <string>public.app-category.productivity</string>
1113 <key>CFBundleName</key>
12 <string>Orgstar</string>
14 <string>orgstar</string>
1315 <key>CFBundlePackageType</key>
1416 <string>APPL</string>
1517 <key>CFBundleShortVersionString</key>
@@ -36,7 +38,7 @@
3638 <key>CFBundleVersion</key>
3739 <string>$(CURRENT_PROJECT_VERSION)</string>
3840 <key>NSCalendarsFullAccessUsageDescription</key>
39 <string>The agenda shows your calendar events alongside your Org entries. Orgstar only reads them.</string>
41 <string>The agenda shows your calendar events alongside your Org entries. orgstar only reads them.</string>
4042 <key>NSSupportsLiveActivities</key>
4143 <true/>
4244 <key>UIApplicationSceneManifest</key>
ios/OrgstarQuickLook/Info.plist +1 −1
@@ -7,7 +7,7 @@
77 <key>CFBundleName</key>
88 <string>$(PRODUCT_NAME)</string>
99 <key>CFBundleDisplayName</key>
10 <string>Orgstar</string>
10 <string>orgstar</string>
1111 <key>CFBundleExecutable</key>
1212 <string>$(EXECUTABLE_NAME)</string>
1313 <key>CFBundlePackageType</key>
ios/OrgstarShare/Info.plist +1 −1
@@ -7,7 +7,7 @@
77 <key>CFBundleName</key>
88 <string>$(PRODUCT_NAME)</string>
99 <key>CFBundleDisplayName</key>
10 <string>Orgstar</string>
10 <string>orgstar</string>
1111 <key>CFBundleExecutable</key>
1212 <string>$(EXECUTABLE_NAME)</string>
1313 <key>CFBundlePackageType</key>
ios/OrgstarWidgets/Info.plist +1 −1
@@ -7,7 +7,7 @@
77 <key>CFBundleName</key>
88 <string>$(PRODUCT_NAME)</string>
99 <key>CFBundleDisplayName</key>
10 <string>Orgstar</string>
10 <string>orgstar</string>
1111 <key>CFBundleExecutable</key>
1212 <string>$(EXECUTABLE_NAME)</string>
1313 <key>CFBundlePackageType</key>
scripts/build-app.sh +5 −5
@@ -1,12 +1,12 @@
11#!/bin/sh
2# Builds Orgstar.app in .build/app from the release binary, signed ad hoc for local use. The
2# Builds orgstar.app in .build/app from the release binary, signed ad hoc for local use. The
33# icon is drawn by scripts/make-icon.swift.
44# Usage: scripts/build-app.sh [version]
55set -eu
66
77cd "$(dirname "$0")/.."
88version="${1:-0.1.0}"
9app=".build/app/Orgstar.app"
9app=".build/app/orgstar.app"
1010
1111swift build -c release --product Orgstar
1212swift build -c release --product OrgstarQuickLook
@@ -29,9 +29,9 @@ cat > "$app/Contents/Info.plist" <<EOF
2929 <key>CFBundleIdentifier</key>
3030 <string>sh.krz.orgstar</string>
3131 <key>CFBundleName</key>
32 <string>Orgstar</string>
32 <string>orgstar</string>
3333 <key>CFBundleDisplayName</key>
34 <string>Orgstar</string>
34 <string>orgstar</string>
3535 <key>CFBundleExecutable</key>
3636 <string>Orgstar</string>
3737 <key>CFBundlePackageType</key>
@@ -95,7 +95,7 @@ cat > "$app/Contents/Info.plist" <<EOF
9595 <key>LSApplicationCategoryType</key>
9696 <string>public.app-category.productivity</string>
9797 <key>NSCalendarsFullAccessUsageDescription</key>
98 <string>The agenda shows your calendar events alongside your Org entries. Orgstar only reads them.</string>
98 <string>The agenda shows your calendar events alongside your Org entries. orgstar only reads them.</string>
9999 <key>NSHighResolutionCapable</key>
100100 <true/>
101101 <key>NSPrincipalClass</key>
scripts/build-ios-app.sh +9 −7
@@ -1,12 +1,12 @@
11#!/bin/sh
2# Builds Orgstar.app for the iOS Simulator in .build/ios-app from the OrgstarMobile product,
3# signed ad hoc. Install with `xcrun simctl install booted .build/ios-app/Orgstar.app`.
2# Builds orgstar.app for the iOS Simulator in .build/ios-app from the OrgstarMobile product,
3# signed ad hoc. Install with `xcrun simctl install booted .build/ios-app/orgstar.app`.
44# Usage: scripts/build-ios-app.sh [version]
55set -eu
66
77cd "$(dirname "$0")/.."
88version="${1:-0.1.0}"
9app=".build/ios-app/Orgstar.app"
9app=".build/ios-app/orgstar.app"
1010products=".build/ios/Build/Products/Debug-iphonesimulator"
1111
1212# The entitlements (the app group the share extension leaves captures in) go where the
@@ -32,9 +32,11 @@ cat > "$app/Info.plist" <<PLIST
3232 <key>CFBundleIdentifier</key>
3333 <string>sh.krz.orgstar</string>
3434 <key>CFBundleName</key>
35 <string>Orgstar</string>
35 <string>orgstar</string>
3636 <key>CFBundleDisplayName</key>
37 <string>Orgstar</string>
37 <string>orgstar</string>
38 <key>LSApplicationCategoryType</key>
39 <string>public.app-category.productivity</string>
3840 <key>CFBundleExecutable</key>
3941 <string>OrgstarMobile</string>
4042 <key>CFBundlePackageType</key>
@@ -48,7 +50,7 @@ cat > "$app/Info.plist" <<PLIST
4850 <key>MinimumOSVersion</key>
4951 <string>26.0</string>
5052 <key>NSCalendarsFullAccessUsageDescription</key>
51 <string>The agenda shows your calendar events alongside your Org entries. Orgstar only reads them.</string>
53 <string>The agenda shows your calendar events alongside your Org entries. orgstar only reads them.</string>
5254 <key>UIDeviceFamily</key>
5355 <array><integer>1</integer><integer>2</integer></array>
5456 <key>UILaunchScreen</key>
@@ -128,7 +130,7 @@ appex() { # name, bundle id suffix, extension point, principal class, attributes
128130 <key>CFBundleName</key>
129131 <string>$1</string>
130132 <key>CFBundleDisplayName</key>
131 <string>Orgstar</string>
133 <string>orgstar</string>
132134 <key>CFBundleExecutable</key>
133135 <string>$1</string>
134136 <key>CFBundlePackageType</key>