Commit cba778d55e
Verified · cmc
Layout: unified · split
Package.swift +1 −1
| @@ -85,7 +85,7 @@ let package = Package( | ||
| 85 | 85 | .executableTarget(name: "Orgstar", dependencies: ["OrgApp", "OrgEditorAppKit", "OrgHighlight"]), |
| 86 | 86 | // The iOS app, bundled by scripts/build-ios-app.sh. |
| 87 | 87 | .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. | |
| 89 | 89 | .executableTarget(name: "OrgstarQuickLook", dependencies: ["OrgCore"], linkerSettings: extensionEntry), |
| 90 | 90 | .executableTarget(name: "OrgstarSpotlight", dependencies: ["OrgCore"], linkerSettings: extensionEntry), |
| 91 | 91 | // 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 | |
| 2 | 2 | |
| 3 | 3 | A native macOS editor for org-mode files, with an iOS app for iPhone and iPad. |
| 4 | 4 | |
| 5 | The files are the source of truth: Orgstar edits them in place and leaves | |
| 5 | The files are the source of truth: orgstar edits them in place and leaves | |
| 6 | 6 | every byte you didn't change as it was, so Emacs and sync tools can work on |
| 7 | 7 | the same folder. |
| 8 | 8 | |
| @@ -17,13 +17,13 @@ and tangling, Simulator builds only so far. | ||
| 17 | 17 | Requires macOS 26 and Xcode 27 (Swift 6.2 tools). |
| 18 | 18 | |
| 19 | 19 | ```sh |
| 20 | scripts/build-app.sh # builds .build/app/Orgstar.app, signed ad hoc | |
| 21 | open .build/app/Orgstar.app | |
| 20 | scripts/build-app.sh # builds .build/app/orgstar.app, signed ad hoc | |
| 21 | open .build/app/orgstar.app | |
| 22 | 22 | ``` |
| 23 | 23 | |
| 24 | 24 | Add a folder with File > Add Folder… (⇧⌘O). ⌘P opens a file by name, ⇧⌘F |
| 25 | 25 | searches, ⇧⌘A shows the agenda. In the editor, TAB on a heading cycles its |
| 26 | folding and Shift-TAB cycles the whole file. Orgstar opens `.org` files from | |
| 26 | folding and Shift-TAB cycles the whole file. orgstar opens `.org` files from | |
| 27 | 27 | Finder once the app has been launched. |
| 28 | 28 | |
| 29 | 29 | C-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. | ||
| 32 | 32 | `org-protocol://capture?template=…&url=…&title=…&body=…` and |
| 33 | 33 | `org-protocol://store-link?url=…&title=…` links work as in Emacs, so browser |
| 34 | 34 | bookmarklets 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. | |
| 36 | 36 | |
| 37 | 37 | The iOS app (iOS 26) is the "Orgstar iOS" scheme in `ios/Orgstar.xcodeproj`, with the |
| 38 | 38 | share 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 | ||
| 40 | 40 | For the Simulator without Xcode: |
| 41 | 41 | |
| 42 | 42 | ```sh |
| 43 | scripts/build-ios-app.sh # builds .build/ios-app/Orgstar.app | |
| 44 | xcrun simctl install booted .build/ios-app/Orgstar.app | |
| 43 | scripts/build-ios-app.sh # builds .build/ios-app/orgstar.app | |
| 44 | xcrun simctl install booted .build/ios-app/orgstar.app | |
| 45 | 45 | ``` |
| 46 | 46 | |
| 47 | On iOS, Orgstar in the share sheet takes a page or text with a template; the | |
| 47 | On iOS, orgstar in the share sheet takes a page or text with a template; the | |
| 48 | 48 | app opens its capture sheet with it when it's next active. Shortcuts has the |
| 49 | same "Capture to Orgstar" action as on the Mac. | |
| 49 | same "Capture to orgstar" action as on the Mac. | |
| 50 | 50 | |
| 51 | Settings live in `~/.config/orgstar/config.toml` (Orgstar ▸ Edit Config File), | |
| 51 | Settings live in `~/.config/orgstar/config.toml` (orgstar ▸ Edit Config File), | |
| 52 | 52 | with keys in `keymap.toml` and capture templates in `capture.toml` beside it. |
| 53 | 53 | Settings ▸ General ▸ Import from Emacs reads an existing Emacs or Doom |
| 54 | 54 | configuration. |
Sources/OrgApp/EmacsImport.swift +6 −6
| @@ -449,11 +449,11 @@ public struct EmacsImport: Sendable { | ||
| 449 | 449 | continue |
| 450 | 450 | } |
| 451 | 451 | 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)) | |
| 453 | 453 | continue |
| 454 | 454 | } |
| 455 | 455 | 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)) | |
| 457 | 457 | continue |
| 458 | 458 | } |
| 459 | 459 | let modes = isDoom ? binding.modes.map { $0 ?? "normal" } : binding.modes |
| @@ -510,7 +510,7 @@ public struct EmacsImport: Sendable { | ||
| 510 | 510 | case "org-log-into-drawer": |
| 511 | 511 | if let s = value.string { add(name, .string(s)) } else { add(name, .string(truthy ? "LOGBOOK" : "")) } |
| 512 | 512 | 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) | |
| 514 | 514 | case "org-agenda-span": |
| 515 | 515 | let days: Int? = value.integer ?? ["day": 1, "week": 7, "fortnight": 14, "month": 30, "year": 365][value.symbol ?? ""] |
| 516 | 516 | guard let days else { return note("unknown span \(value.description)") } |
| @@ -545,13 +545,13 @@ public struct EmacsImport: Sendable { | ||
| 545 | 545 | case "org-capture-templates": |
| 546 | 546 | for entry in value.elements ?? [] { captureTemplate(entry, source: source, env: env, id: id) } |
| 547 | 547 | case "doom-font": |
| 548 | note("not a font-spec Orgstar can read") | |
| 548 | note("not a font-spec orgstar can read") | |
| 549 | 549 | 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") | |
| 551 | 551 | case "doom-theme": |
| 552 | 552 | note("Emacs themes aren't read; set colors under [theme] in config.toml") |
| 553 | 553 | default: |
| 554 | note("Orgstar has no equivalent") | |
| 554 | note("orgstar has no equivalent") | |
| 555 | 555 | } |
| 556 | 556 | } |
| 557 | 557 | |
Sources/OrgApp/LinkFollow.swift +3 −3
| @@ -45,16 +45,16 @@ extension DocumentSession { | ||
| 45 | 45 | case "coderef": |
| 46 | 46 | return .message("Coderef links aren't supported") |
| 47 | 47 | case "shell", "elisp": |
| 48 | return .message("Orgstar doesn't run \(link.type) links") | |
| 48 | return .message("orgstar doesn't run \(link.type) links") | |
| 49 | 49 | default: |
| 50 | return .message("Orgstar can't open \(link.type) links") | |
| 50 | return .message("orgstar can't open \(link.type) links") | |
| 51 | 51 | } |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | static func url(_ string: String) -> LinkFollow { |
| 55 | 55 | let allowed = CharacterSet.urlFragmentAllowed.union(.urlQueryAllowed).union(CharacterSet(charactersIn: "#%")) |
| 56 | 56 | 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)") | |
| 58 | 58 | } |
| 59 | 59 | return .openExternally(url) |
| 60 | 60 | } |
Sources/OrgApp/UserConfig.swift +3 −3
| @@ -146,7 +146,7 @@ public enum UserConfig { | ||
| 146 | 146 | Setting(section: "", key: "org-agenda-start-day", defaultsKey: "agendaStartOffset", kind: .dayOffset, fallback: .string("+0d"), |
| 147 | 147 | comment: "the agenda's first day: \"-3d\", \"+0d\"", legacy: "agenda.start-offset"), |
| 148 | 148 | 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: ""), | |
| 150 | 150 | Setting(section: "", key: "org-agenda-skip-scheduled-if-done", defaultsKey: "agendaSkipScheduledIfDone", kind: .bool, fallback: .bool(false), |
| 151 | 151 | comment: "leave done entries out of the agenda even on the day they are scheduled", legacy: ""), |
| 152 | 152 | Setting(section: "", key: "org-agenda-skip-deadline-if-done", defaultsKey: "agendaSkipDeadlineIfDone", kind: .bool, fallback: .bool(false), |
| @@ -379,8 +379,8 @@ public enum UserConfig { | ||
| 379 | 379 | |
| 380 | 380 | private static func template(_ value: (Setting) -> TOML.Value) -> String { |
| 381 | 381 | 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 | |
| 384 | 384 | # and saved agenda views in views.toml, all in this folder. |
| 385 | 385 | |
| 386 | 386 | # Emacs variables, by their Emacs names. |
Sources/OrgCore/Capture/Capture.swift +1 −1
| @@ -409,7 +409,7 @@ public enum Capture { | ||
| 409 | 409 | } |
| 410 | 410 | consumed = j - i |
| 411 | 411 | 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.")) | |
| 413 | 413 | case "[": |
| 414 | 414 | return .failure(.message("Template escapes like %[file] aren't supported yet.")) |
| 415 | 415 | default: |
Sources/OrgCore/Compute/BabelExpand.swift +1 −1
| @@ -518,7 +518,7 @@ extension Babel { | ||
| 518 | 518 | run = "echo | clojure -M \(file)\n" |
| 519 | 519 | programs = ["clojure"] |
| 520 | 520 | 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.") | |
| 522 | 522 | } |
| 523 | 523 | return CompiledRun(source: expanded, script: start + "cat > \(file)\n" + run + end, programs: [programs]) |
| 524 | 524 | default: |
Sources/OrgEditorAppKit/EditorCommands.swift +1 −1
| @@ -59,7 +59,7 @@ public enum EditorCommands { | ||
| 59 | 59 | EditorCommand(id: "app.block.cancel", title: "Leave Block", action: .app), |
| 60 | 60 | |
| 61 | 61 | 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), | |
| 63 | 63 | EditorCommand(id: "app.save-all", title: "Save All Buffers", action: .app), |
| 64 | 64 | EditorCommand(id: "app.buffer.switch", title: "Switch to Buffer…", action: .app), |
| 65 | 65 | 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 { | ||
| 225 | 225 | /// The default theme written out, to copy colors from. |
| 226 | 226 | public static func defaultThemeFile() -> String { |
| 227 | 227 | 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 | |
| 229 | 229 | # starts, so change colors in config.toml. A key set under [theme] colors both |
| 230 | 230 | # appearances; [theme.light] and [theme.dark] set one. Colors are "#rrggbb" or |
| 231 | 231 | # "#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 { | ||
| 656 | 656 | /// How far ahead notifications are set, as the design asks the agenda to show. |
| 657 | 657 | private var reminderStatus: String? { |
| 658 | 658 | 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." } | |
| 660 | 660 | guard let through = scheduler.scheduledThrough else { return nil } |
| 661 | 661 | return "Reminders are set through " + through.formatted(.dateTime.weekday(.abbreviated).day().month(.abbreviated).hour().minute()) + "." |
| 662 | 662 | } |
Sources/Orgstar/CaptureIntent.swift +2 −2
| @@ -6,7 +6,7 @@ import OrgCore | ||
| 6 | 6 | /// Shortcuts' "Capture to Orgstar": files text with a capture template without the capture |
| 7 | 7 | /// window. Prompts in the template take their defaults. |
| 8 | 8 | struct CaptureIntent: AppIntent { |
| 9 | static let title: LocalizedStringResource = "Capture to Orgstar" | |
| 9 | static let title: LocalizedStringResource = "Capture to orgstar" | |
| 10 | 10 | static let description = IntentDescription("Files text with one of your capture templates.") |
| 11 | 11 | |
| 12 | 12 | @Parameter(title: "Text") |
| @@ -27,7 +27,7 @@ struct CaptureIntent: AppIntent { | ||
| 27 | 27 | func perform() async throws -> some IntentResult & ReturnsValue<String> & ProvidesDialog { |
| 28 | 28 | // Launched for the intent, the window sets the models up shortly. |
| 29 | 29 | 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") } | |
| 31 | 31 | let placed = session.capture( |
| 32 | 32 | text, templateKey: template, templates: CaptureTemplates.load().templates, workspace: workspace, clock: clock, |
| 33 | 33 | clipboard: NSPasteboard.general.string(forType: .string) ?? "", userName: NSFullUserName() |
Sources/Orgstar/ContentView.swift +2 −2
| @@ -212,7 +212,7 @@ struct ContentView: View { | ||
| 212 | 212 | } |
| 213 | 213 | } |
| 214 | 214 | } |
| 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") | |
| 216 | 216 | .navigationSubtitle(session.isReadOnly ? "Read-only: not UTF-8" : "") |
| 217 | 217 | .searchable(text: $query, placement: .toolbar, prompt: "Search notes") |
| 218 | 218 | .searchFocused($searchFocused) |
| @@ -333,7 +333,7 @@ struct ContentView: View { | ||
| 333 | 333 | commands.showingQuickOpen = false |
| 334 | 334 | } |
| 335 | 335 | } |
| 336 | .alert("Orgstar", isPresented: errorShown) { | |
| 336 | .alert("orgstar", isPresented: errorShown) { | |
| 337 | 337 | Button("OK") { |
| 338 | 338 | workspace.lastError = nil |
| 339 | 339 | session.lastError = nil |
Sources/Orgstar/EmacsImportView.swift +1 −1
| @@ -104,7 +104,7 @@ struct EmacsImportView: View { | ||
| 104 | 104 | |
| 105 | 105 | private func footnote(_ result: EmacsImport) -> String { |
| 106 | 106 | 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") } | |
| 108 | 108 | return parts.joined(separator: "; ") |
| 109 | 109 | } |
| 110 | 110 | |
Sources/Orgstar/OrgstarApp.swift +5 −5
| @@ -121,7 +121,7 @@ final class AppCommands { | ||
| 121 | 121 | NSPasteboard.general.clearContents() |
| 122 | 122 | NSPasteboard.general.setString(link, forType: .string) |
| 123 | 123 | case nil: |
| 124 | show("Orgstar handles org-protocol capture and store-link") | |
| 124 | show("orgstar handles org-protocol capture and store-link") | |
| 125 | 125 | } |
| 126 | 126 | } |
| 127 | 127 | |
| @@ -302,7 +302,7 @@ struct OrgstarApp: App { | ||
| 302 | 302 | } |
| 303 | 303 | |
| 304 | 304 | var body: some Scene { |
| 305 | Window("Orgstar", id: "main") { | |
| 305 | Window("orgstar", id: "main") { | |
| 306 | 306 | switch workspace { |
| 307 | 307 | case .success(let model): |
| 308 | 308 | ContentView(workspace: model, session: session, commands: commands, scheduler: scheduler, clock: clock) |
| @@ -568,7 +568,7 @@ struct SettingsView: View { | ||
| 568 | 568 | Section { |
| 569 | 569 | LabeledContent("config.toml") { |
| 570 | 570 | HStack { |
| 571 | Button("Edit in Orgstar") { editConfig() } | |
| 571 | Button("Edit in orgstar") { editConfig() } | |
| 572 | 572 | Button("Open with Default App") { NSWorkspace.shared.open(UserConfig.configFile) } |
| 573 | 573 | Button("Show in Finder") { NSWorkspace.shared.activateFileViewerSelecting([UserConfig.configFile]) } |
| 574 | 574 | } |
| @@ -636,7 +636,7 @@ struct SettingsView: View { | ||
| 636 | 636 | Section { |
| 637 | 637 | TextField("Default TODO keywords", text: $todoKeywords, axis: .vertical) |
| 638 | 638 | } 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.") | |
| 640 | 640 | .settingsFooter() |
| 641 | 641 | } |
| 642 | 642 | Section { |
| @@ -703,7 +703,7 @@ struct SettingsView: View { | ||
| 703 | 703 | Toggle("Show events from Calendar", isOn: $calendarEvents) |
| 704 | 704 | if calendarEvents { |
| 705 | 705 | 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.") | |
| 707 | 707 | .foregroundStyle(.secondary) |
| 708 | 708 | } |
| 709 | 709 | ForEach(calendars, id: \.id) { calendar in |
Sources/OrgstarMobile/AgendaScreen.swift +2 −2
| @@ -249,10 +249,10 @@ struct AgendaScreen: View, Equatable { | ||
| 249 | 249 | /// at most 64, and sets no more while the app isn't opened. |
| 250 | 250 | private var reminderStatus: String? { |
| 251 | 251 | 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." } | |
| 253 | 253 | guard let through = scheduler.scheduledThrough else { return nil } |
| 254 | 254 | 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." | |
| 256 | 256 | } |
| 257 | 257 | |
| 258 | 258 | // MARK: - Days |
Sources/OrgstarMobile/CaptureIntent.swift +2 −2
| @@ -7,7 +7,7 @@ import OrgCore | ||
| 7 | 7 | /// sheet. Prompts in the template take their defaults, and `%c` is empty: reading the |
| 8 | 8 | /// pasteboard would ask for permission on every run. |
| 9 | 9 | struct CaptureIntent: AppIntent { |
| 10 | static let title: LocalizedStringResource = "Capture to Orgstar" | |
| 10 | static let title: LocalizedStringResource = "Capture to orgstar" | |
| 11 | 11 | static let description = IntentDescription("Files text with one of your capture templates.") |
| 12 | 12 | |
| 13 | 13 | @Parameter(title: "Text") |
| @@ -24,7 +24,7 @@ struct CaptureIntent: AppIntent { | ||
| 24 | 24 | @MainActor |
| 25 | 25 | func perform() async throws -> some IntentResult & ReturnsValue<String> & ProvidesDialog { |
| 26 | 26 | 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") } | |
| 28 | 28 | let placed = model.session.capture( |
| 29 | 29 | text, templateKey: template, templates: CaptureTemplates.load().templates, workspace: workspace, clock: model.clock, |
| 30 | 30 | clipboard: "", userName: "" |
Sources/OrgstarMobile/OrgstarMobileApp.swift +1 −1
| @@ -306,6 +306,6 @@ struct RootView: View { | ||
| 306 | 306 | /// The iOS app has nothing to run elsewhere. |
| 307 | 307 | @main |
| 308 | 308 | enum 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.") } | |
| 310 | 310 | } |
| 311 | 311 | #endif |
Sources/OrgstarShare/ShareViewController.swift +3 −3
| @@ -70,7 +70,7 @@ struct ShareForm: View { | ||
| 70 | 70 | NavigationStack { |
| 71 | 71 | Form { |
| 72 | 72 | if !available { |
| 73 | Text("Orgstar's shared folder isn't available.").foregroundStyle(.red) | |
| 73 | Text("orgstar's shared folder isn't available.").foregroundStyle(.red) | |
| 74 | 74 | } |
| 75 | 75 | if !templates.isEmpty { |
| 76 | 76 | Picker("Template", selection: $template) { |
| @@ -88,10 +88,10 @@ struct ShareForm: View { | ||
| 88 | 88 | } |
| 89 | 89 | Section { |
| 90 | 90 | } 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.") | |
| 92 | 92 | } |
| 93 | 93 | } |
| 94 | .navigationTitle("Orgstar") | |
| 94 | .navigationTitle("orgstar") | |
| 95 | 95 | .navigationBarTitleDisplayMode(.inline) |
| 96 | 96 | .toolbar { |
| 97 | 97 | ToolbarItem(placement: .cancellationAction) { Button("Cancel") { finish(nil) } } |
Sources/OrgstarWidgets/TodayWidget.swift +1 −1
| @@ -25,7 +25,7 @@ struct TodayView: View { | ||
| 25 | 25 | if let snapshot = entry.snapshot { |
| 26 | 26 | content(snapshot) |
| 27 | 27 | } else { |
| 28 | Text("Open Orgstar to show your agenda here.") | |
| 28 | Text("Open orgstar to show your agenda here.") | |
| 29 | 29 | .font(.caption) |
| 30 | 30 | .foregroundStyle(.secondary) |
| 31 | 31 | .frame(maxWidth: .infinity, maxHeight: .infinity) |
Sources/OrgstarWidgets/UpNextWidget.swift +1 −1
| @@ -56,7 +56,7 @@ struct UpNextView: View { | ||
| 56 | 56 | } else { |
| 57 | 57 | VStack(alignment: .leading, spacing: 0) { |
| 58 | 58 | 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) | |
| 60 | 60 | } |
| 61 | 61 | .frame(maxWidth: .infinity, alignment: .leading) |
| 62 | 62 | } |
Tests/OrgAppTests/AppTests.swift +1 −1
| @@ -1062,7 +1062,7 @@ struct LinkFollowTests { | ||
| 1062 | 1062 | #expect(follow("file:pic.png") == .message("No file " + (notes.url.appendingPathComponent("sub/pic.png").path as NSString).standardizingPath)) |
| 1063 | 1063 | #expect(follow("https://orgmode.org/a b") == .openExternally(URL(string: "https://orgmode.org/a%20b")!)) |
| 1064 | 1064 | #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")) | |
| 1066 | 1066 | } |
| 1067 | 1067 | |
| 1068 | 1068 | @Test func followsAttachmentAndRadioLinks() throws { |
Tests/OrgCoreTests/BabelCompiledTests.swift +1 −1
| @@ -220,6 +220,6 @@ struct BabelCompiledTests { | ||
| 220 | 220 | Issue.record("planned cider") |
| 221 | 221 | return |
| 222 | 222 | } |
| 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.") | |
| 224 | 224 | } |
| 225 | 225 | } |
docs/manual/guide/01-files-and-folders.org +30 −30
| @@ -1,23 +1,23 @@ | ||
| 1 | 1 | #+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. | |
| 4 | 4 | |
| 5 | 5 | * The window |
| 6 | 6 | |
| 7 | Orgstar has one main window, titled with the name of the buffer it shows. From left to right it holds: | |
| 7 | orgstar has one main window, titled with the name of the buffer it shows. From left to right it holds: | |
| 8 | 8 | |
| 9 | 9 | - the *sidebar*, listing the folders you added and the files in them; |
| 10 | 10 | - the *outline pane*, listing the headings of the open file, with the *backlinks pane* under it; |
| 11 | 11 | - the *editor*, with the optional tab bar above it and the modeline and echo area below it; |
| 12 | 12 | - the *inspector*, hidden by default, showing column view and clocked time. |
| 13 | 13 | |
| 14 | The 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. | |
| 14 | The 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. | |
| 15 | 15 | |
| 16 | 16 | The 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. |
| 17 | 17 | |
| 18 | 18 | With 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=. |
| 19 | 19 | |
| 20 | The 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. | |
| 20 | The 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. | |
| 21 | 21 | |
| 22 | 22 | ** Menus and the command palette |
| 23 | 23 | |
| @@ -38,27 +38,27 @@ Several commands in this chapter are only in the palette, not in a menu: Close O | ||
| 38 | 38 | |
| 39 | 39 | The 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. |
| 40 | 40 | |
| 41 | Orgstar 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). | |
| 41 | orgstar 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). | |
| 42 | 42 | |
| 43 | 43 | * Folders |
| 44 | 44 | |
| 45 | Orgstar 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. | |
| 45 | orgstar 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. | |
| 46 | 46 | |
| 47 | 47 | ** Adding a folder |
| 48 | 48 | |
| 49 | Choose 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. | |
| 49 | Choose 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. | |
| 50 | 50 | |
| 51 | Orgstar 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. | |
| 51 | orgstar 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. | |
| 52 | 52 | |
| 53 | Orgstar keeps the list of folders, the index and recovery versions in =~/Library/Application Support/Orgstar=. | |
| 53 | orgstar keeps the list of folders, the index and recovery versions in =~/Library/Application Support/Orgstar=. | |
| 54 | 54 | |
| 55 | 55 | ** Removing a folder |
| 56 | 56 | |
| 57 | Click =−= 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. | |
| 57 | Click =−= 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. | |
| 58 | 58 | |
| 59 | 59 | ** What the sidebar lists |
| 60 | 60 | |
| 61 | Each 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. | |
| 61 | Each 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. | |
| 62 | 62 | |
| 63 | 63 | The sidebar lists every file in the folder, not only org files, with an icon for its kind: |
| 64 | 64 | |
| @@ -78,7 +78,7 @@ Some files are never listed or indexed: | ||
| 78 | 78 | |
| 79 | 79 | - Emacs backups (names ending in =~=), auto-save files (names starting with =#=) and lock files (=.#name=); |
| 80 | 80 | - Syncthing's temporary files (=.syncthing.*=); |
| 81 | - Orgstar's own temporary files (names containing =.orgstar-=); | |
| 81 | - orgstar's own temporary files (names containing =.orgstar-=); | |
| 82 | 82 | - =.DS_Store= and =.localized=; |
| 83 | 83 | - 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=. |
| 84 | 84 | |
| @@ -108,13 +108,13 @@ Right-click a root's header for New File…, Expand or Collapse, Show in Finder | ||
| 108 | 108 | Click a file in the sidebar to open it. Other ways: |
| 109 | 109 | |
| 110 | 110 | - *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. | |
| 112 | 112 | - *Links*: following a =file:= link or an ID link opens the target file; see [[file:09-links.org][Links]]. |
| 113 | 113 | - *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=. |
| 114 | 114 | |
| 115 | A 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). | |
| 115 | A 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). | |
| 116 | 116 | |
| 117 | Orgstar 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. | |
| 117 | orgstar 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. | |
| 118 | 118 | |
| 119 | 119 | ** Files that aren't org |
| 120 | 120 | |
| @@ -124,7 +124,7 @@ How a file opens depends on what it is: | ||
| 124 | 124 | - *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. |
| 125 | 125 | - *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. |
| 126 | 126 | |
| 127 | Text files from Finder use Orgstar only if you choose it with Open With, since Orgstar is not their default app. | |
| 127 | Text files from Finder use orgstar only if you choose it with Open With, since orgstar is not their default app. | |
| 128 | 128 | |
| 129 | 129 | * Buffers |
| 130 | 130 | |
| @@ -150,7 +150,7 @@ Switch to Buffer asks in the echo area. The choices are the open buffers, most r | ||
| 150 | 150 | |
| 151 | 151 | Close 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. |
| 152 | 152 | |
| 153 | When 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. | |
| 153 | When 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. | |
| 154 | 154 | |
| 155 | 155 | ** Buffer names |
| 156 | 156 | |
| @@ -179,7 +179,7 @@ While the field holds text, the outline pane shows the results in place of the o | ||
| 179 | 179 | |
| 180 | 180 | How matching works: |
| 181 | 181 | |
| 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. | |
| 183 | 183 | - Each word you type matches words that start with it: =proj= finds =project= and =projection=. |
| 184 | 184 | - Every word must match within the same heading. |
| 185 | 185 | - 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 | ||
| 219 | 219 | |
| 220 | 220 | ** How a save works |
| 221 | 221 | |
| 222 | Orgstar does not assume it is the only program writing your files. Emacs, Syncthing, iCloud and Git may change them too. Each save: | |
| 222 | orgstar does not assume it is the only program writing your files. Emacs, Syncthing, iCloud and Git may change them too. Each save: | |
| 223 | 223 | |
| 224 | 1. 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. | |
| 224 | 1. 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. | |
| 225 | 225 | 2. 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. |
| 226 | 226 | 3. 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. |
| 227 | 227 | |
| @@ -231,10 +231,10 @@ A save keeps the file's encoding details: a UTF-8 byte order mark stays, and tex | ||
| 231 | 231 | |
| 232 | 232 | * External changes |
| 233 | 233 | |
| 234 | Orgstar watches the files in your folders. When a file with an open buffer changes on disk: | |
| 234 | orgstar watches the files in your folders. When a file with an open buffer changes on disk: | |
| 235 | 235 | |
| 236 | 236 | - 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. | |
| 238 | 238 | - If both sides changed the same lines differently, the buffer has a conflict. |
| 239 | 239 | |
| 240 | 240 | Reloading 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 | ||
| 268 | 268 | |
| 269 | 269 | ** Syncthing conflict copies |
| 270 | 270 | |
| 271 | When 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. | |
| 271 | When 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. | |
| 272 | 272 | |
| 273 | 273 | When 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: |
| 274 | 274 | |
| @@ -282,31 +282,31 @@ Each choice moves the copy to recovery and deletes it from the folder. The buffe | ||
| 282 | 282 | |
| 283 | 283 | ** Recovery versions |
| 284 | 284 | |
| 285 | Whenever 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=. | |
| 285 | Whenever 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=. | |
| 286 | 286 | |
| 287 | 287 | Run Recovery Versions… from the palette to see the open file's versions, newest first, each with its date and why it was kept: |
| 288 | 288 | |
| 289 | 289 | | Label | Meaning | |
| 290 | 290 | |-------------------------+-------------------------------------------------| |
| 291 | 291 | | 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 | | |
| 293 | 293 | | Sync conflict copy | A Syncthing conflict copy you resolved | |
| 294 | 294 | |
| 295 | 295 | Select 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. |
| 296 | 296 | |
| 297 | 297 | ** iCloud |
| 298 | 298 | |
| 299 | Files 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. | |
| 299 | Files 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. | |
| 300 | 300 | |
| 301 | 301 | * Encodings and line endings |
| 302 | 302 | |
| 303 | Orgstar edits UTF-8 files, with or without a byte order mark. | |
| 303 | orgstar edits UTF-8 files, with or without a byte order mark. | |
| 304 | 304 | |
| 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. | |
| 306 | 306 | - A file with a UTF-8 byte order mark keeps it when saved; the modeline shows =BOM=. |
| 307 | 307 | - A file containing CRLF line endings shows =CRLF= in the modeline. Existing line endings are kept. |
| 308 | 308 | |
| 309 | Orgstar does not convert between encodings or line endings. | |
| 309 | orgstar does not convert between encodings or line endings. | |
| 310 | 310 | |
| 311 | 311 | * On iOS |
| 312 | 312 | |
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 | ||
| 18 | 18 | |
| 19 | 19 | The 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]=. |
| 20 | 20 | |
| 21 | The 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. | |
| 21 | The 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. | |
| 22 | 22 | |
| 23 | 23 | ** Styling |
| 24 | 24 | |
| @@ -135,7 +135,7 @@ With no =#+STARTUP= visibility option, a file opens with every heading shown. Dr | ||
| 135 | 135 | #+STARTUP: content hideblocks |
| 136 | 136 | #+END_SRC |
| 137 | 137 | |
| 138 | When 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=: | |
| 138 | When 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=: | |
| 139 | 139 | |
| 140 | 140 | #+BEGIN_SRC org |
| 141 | 141 | ,* Reference |
| @@ -252,9 +252,9 @@ Electric pairs are on by default and work in org files only. Set =electric-pair- | ||
| 252 | 252 | |
| 253 | 253 | Spell 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=. |
| 254 | 254 | |
| 255 | Misspelt 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. | |
| 255 | Misspelt 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. | |
| 256 | 256 | |
| 257 | Orgstar never corrects spelling on its own; automatic spelling correction, text replacement and smart quotes and dashes are off. | |
| 257 | orgstar never corrects spelling on its own; automatic spelling correction, text replacement and smart quotes and dashes are off. | |
| 258 | 258 | |
| 259 | 259 | On iOS, spell checking follows =spell-check= in the synced =config.toml=, and is off by default. |
| 260 | 260 | |
| @@ -270,7 +270,7 @@ Long lines wrap at the edge of the editor by default. View ▸ Truncate or Wrap | ||
| 270 | 270 | |
| 271 | 271 | To 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. |
| 272 | 272 | |
| 273 | Wrapping 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. | |
| 273 | Wrapping 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. | |
| 274 | 274 | |
| 275 | 275 | * View toggles |
| 276 | 276 | |
| @@ -290,7 +290,7 @@ Line numbers show in a margin left of the text, as =display-line-numbers-mode= s | ||
| 290 | 290 | |
| 291 | 291 | * Themes |
| 292 | 292 | |
| 293 | The 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]]. | |
| 293 | The 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]]. | |
| 294 | 294 | |
| 295 | 295 | The iOS editor uses the same theme and display settings, read from the synced =config.toml=; see [[file:14-ios.org][iPhone and iPad]]. |
| 296 | 296 | |
docs/manual/guide/03-keys.org +19 −19
| @@ -1,10 +1,10 @@ | ||
| 1 | 1 | #+TITLE: Keys and commands |
| 2 | 2 | #+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. | |
| 4 | 4 | |
| 5 | 5 | * Commands and keymaps |
| 6 | 6 | |
| 7 | Each 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. | |
| 7 | Each 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. | |
| 8 | 8 | |
| 9 | 9 | Ids 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. |
| 10 | 10 | |
| @@ -39,7 +39,7 @@ Option pressed together with Control or Command always counts as Meta, whatever | ||
| 39 | 39 | |
| 40 | 40 | ** Contexts |
| 41 | 41 | |
| 42 | One 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. | |
| 42 | One 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. | |
| 43 | 43 | |
| 44 | 44 | | Context | Holds when | |
| 45 | 45 | |-+-| |
| @@ -65,9 +65,9 @@ In a file that is not an Org file, =org.= commands never apply, so their keys fa | ||
| 65 | 65 | |
| 66 | 66 | ** Prefix keys and key hints |
| 67 | 67 | |
| 68 | A 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-=. | |
| 68 | A 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-=. | |
| 69 | 69 | |
| 70 | If 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. | |
| 70 | If 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. | |
| 71 | 71 | |
| 72 | 72 | =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. |
| 73 | 73 | |
| @@ -104,8 +104,8 @@ These come from the menu bar and work in every preset. In the Doom preset, keys | ||
| 104 | 104 | |
| 105 | 105 | | Menu | Item | Key | |
| 106 | 106 | |-+-+-| |
| 107 | | Orgstar | Settings… | =⌘,= | | |
| 108 | | Orgstar | Edit Config File | =⌥⌘,= | | |
| 107 | | orgstar | Settings… | =⌘,= | | |
| 108 | | orgstar | Edit Config File | =⌥⌘,= | | |
| 109 | 109 | | File | Add Folder… | =⇧⌘O= | |
| 110 | 110 | | File | Quick Open… | =⌘P= | |
| 111 | 111 | | File | Command Palette… | =⇧⌘P= | |
| @@ -164,9 +164,9 @@ command = "org.todo.cycle" | ||
| 164 | 164 | | =when= | no | A context from the table in [[*Contexts][Contexts]]. Without it the binding holds everywhere. | |
| 165 | 165 | | =mode= | no | An evil state for the Doom preset: ="normal"=, ="insert"= or ="visual"=. | |
| 166 | 166 | |
| 167 | The [[*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]]). | |
| 167 | The [[*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]]). | |
| 168 | 168 | |
| 169 | Orgstar 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. | |
| 169 | orgstar 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. | |
| 170 | 170 | |
| 171 | 171 | ** Key notation |
| 172 | 172 | |
| @@ -275,17 +275,17 @@ command = "app.reload-keymap" | ||
| 275 | 275 | |
| 276 | 276 | ** Reloading and errors |
| 277 | 277 | |
| 278 | Orgstar 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=. | |
| 278 | orgstar 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=. | |
| 279 | 279 | |
| 280 | Problems 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. | |
| 280 | Problems 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. | |
| 281 | 281 | |
| 282 | 282 | ** Importing from Emacs |
| 283 | 283 | |
| 284 | Settings ▸ 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]]. | |
| 284 | Settings ▸ 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]]. | |
| 285 | 285 | |
| 286 | 286 | * Vim editing (Doom preset) |
| 287 | 287 | |
| 288 | The 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. | |
| 288 | The 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. | |
| 289 | 289 | |
| 290 | 290 | ** How keys are handled |
| 291 | 291 | |
| @@ -414,7 +414,7 @@ A count is digits before a command; =0= only counts after another digit. A regis | ||
| 414 | 414 | |
| 415 | 415 | Pasting 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. |
| 416 | 416 | |
| 417 | Registers 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. | |
| 417 | Registers 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. | |
| 418 | 418 | |
| 419 | 419 | ** Repeat |
| 420 | 420 | |
| @@ -558,7 +558,7 @@ Besides the leader, the preset binds these evil-org and Doom keys in normal stat | ||
| 558 | 558 | | =SPC h r r= | Reload Keymap (=app.reload-keymap=) | |
| 559 | 559 | | =SPC n l= | Store Link (=org.link.store=) | |
| 560 | 560 | | =SPC o a= | Agenda (=app.agenda=) | |
| 561 | | =SPC q q= | Quit Orgstar (=app.quit=) | | |
| 561 | | =SPC q q= | Quit orgstar (=app.quit=) | | |
| 562 | 562 | | =SPC s p= | Search Notes (=app.search=) | |
| 563 | 563 | | =SPC s s= | Find (=edit.find=) | |
| 564 | 564 | | =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 | ||
| 624 | 624 | |
| 625 | 625 | ** Ex commands |
| 626 | 626 | |
| 627 | =:= opens a prompt in the echo area. Orgstar understands these: | |
| 627 | =:= opens a prompt in the echo area. orgstar understands these: | |
| 628 | 628 | |
| 629 | 629 | | Command | Does | |
| 630 | 630 | |-+-| |
| 631 | 631 | | =: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. | | |
| 633 | 633 | | =:wq=, =:wq!=, =:x= | Saves, then closes the window. | |
| 634 | 634 | | =:e= /file/, =:edit= /file/ | Opens /file/, relative to the current file's folder; =~= is expanded. | |
| 635 | 635 | | =: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 | ||
| 646 | 646 | |
| 647 | 647 | ** Not available |
| 648 | 648 | |
| 649 | Things 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. | |
| 649 | Things 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. | |
| 650 | 650 | |
| 651 | 651 | * Keys in other windows |
| 652 | 652 | |
| @@ -961,7 +961,7 @@ When a key appears in several rows, it runs the command whose condition holds at | ||
| 961 | 961 | | Reload Keymap (=app.reload-keymap=) | — | — | =SPC h r r= (N) | Reads =keymap.toml= again. | |
| 962 | 962 | | Check Spelling While Typing (=editor.toggle-spell-check=) | — | — | =SPC t s= (N) | Turns spell checking while typing on or off. | |
| 963 | 963 | | 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=). | | |
| 965 | 965 | |
| 966 | 966 | ** Unbound commands |
| 967 | 967 | |
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. | ||
| 46 | 46 | Two settings change where Insert Heading puts the heading. Both are in Settings ▸ |
| 47 | 47 | Editing and in =config.toml= under the Emacs variable names: |
| 48 | 48 | |
| 49 | | Setting (=config.toml=) | Settings ▸ Editing | Orgstar default | Org default | | |
| 49 | | Setting (=config.toml=) | Settings ▸ Editing | orgstar default | Org default | | |
| 50 | 50 | |--------------------------------------+-----------------------------------------------+-----------------+-------------| |
| 51 | 51 | | =org-insert-heading-respect-content= | M-RET adds the new heading after the subtree | =true= | =nil= | |
| 52 | 52 | | =org-M-RET-may-split-line= | M-RET splits the line at the caret | =false= | =t= | |
| 53 | 53 | |
| 54 | With =org-insert-heading-respect-content= on (the Orgstar default), Insert Heading | |
| 54 | With =org-insert-heading-respect-content= on (the orgstar default), Insert Heading | |
| 55 | 55 | behaves as Insert Heading After Subtree: the new heading goes after the end of the |
| 56 | 56 | current subtree, at the current level. Insert Heading also does this when the caret is |
| 57 | 57 | in folded text. |
| @@ -65,7 +65,7 @@ With it off, Insert Heading works where the caret is: | ||
| 65 | 65 | - In body text, a new heading line is started below. With =org-M-RET-may-split-line= |
| 66 | 66 | on, the line is split at the caret first. |
| 67 | 67 | |
| 68 | Orgstar follows Org's =org-blank-before-new-entry= default of =auto= for headings: if | |
| 68 | orgstar follows Org's =org-blank-before-new-entry= default of =auto= for headings: if | |
| 69 | 69 | the heading the caret is in is preceded by a blank line, the new heading is too. |
| 70 | 70 | |
| 71 | 71 | Insert 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. | ||
| 114 | 114 | can't move past its parent or the start or end of the file. The caret keeps its column. |
| 115 | 115 | |
| 116 | 116 | On a list item the same keys move the item; in a table they move the row. On other |
| 117 | lines they do nothing. Orgstar has no =org-drag-element= for paragraphs. | |
| 117 | lines they do nothing. orgstar has no =org-drag-element= for paragraphs. | |
| 118 | 118 | |
| 119 | 119 | ** Moving between headings |
| 120 | 120 | |
| @@ -305,7 +305,7 @@ sparse view. | ||
| 305 | 305 | |
| 306 | 306 | * Plain lists |
| 307 | 307 | |
| 308 | Orgstar's list commands are ports of =org-list.el=. A list item starts with a bullet: | |
| 308 | orgstar's list commands are ports of =org-list.el=. A list item starts with a bullet: | |
| 309 | 309 | =-=, =+=, =*= (not at the left margin, where it would be a heading), or a number |
| 310 | 310 | followed by =.= or =)=. With alphabetical lists on, =a.=, =A.=, =a)= and =A)= are bullets |
| 311 | 311 | too. A description item has =::= after its term: |
| @@ -315,10 +315,10 @@ too. A description item has =::= after its term: | ||
| 315 | 315 | - eggs |
| 316 | 316 | 1. free range |
| 317 | 317 | 2. brown |
| 318 | - Orgstar :: an org editor for macOS and iOS | |
| 318 | - orgstar :: an org editor for macOS and iOS | |
| 319 | 319 | #+END_SRC |
| 320 | 320 | |
| 321 | | Setting (=config.toml=) | Settings ▸ Editing | Orgstar default | Org default | | |
| 321 | | Setting (=config.toml=) | Settings ▸ Editing | orgstar default | Org default | | |
| 322 | 322 | |-------------------------------+----------------------------------+-----------------+-------------| |
| 323 | 323 | | =org-list-allow-alphabetical= | Lists can use letters (a. b. c.) | =true= | =nil= | |
| 324 | 324 | |
| @@ -340,7 +340,7 @@ too. A description item has =::= after its term: | ||
| 340 | 340 | Insert Item works anywhere inside an item. The new item gets the next bullet: the same |
| 341 | 341 | symbol, the next number or the next letter. In a description list the new item has an |
| 342 | 342 | empty term followed by =::=, with the caret on the term. With =org-M-RET-may-split-line= on, text after the caret moves |
| 343 | to the new item; with it off (the Orgstar default), the new item goes after the current | |
| 343 | to the new item; with it off (the orgstar default), the new item goes after the current | |
| 344 | 344 | one. At the start of an item, the new item is inserted before it. If the list's items |
| 345 | 345 | are separated by blank lines, so is the new one. |
| 346 | 346 | |
| @@ -368,7 +368,7 @@ list (=org-cycle-list-bullet=) through: | ||
| 368 | 368 | |
| 369 | 369 | =*= is skipped for a list at the left margin. Description lists skip the numbered and |
| 370 | 370 | lettered bullets. Lettered bullets are offered only when the list has 26 items or |
| 371 | fewer. Org also cycles bullets with =S-<left>= and =S-<right>= on an item; Orgstar | |
| 371 | fewer. Org also cycles bullets with =S-<left>= and =S-<right>= on an item; orgstar | |
| 372 | 372 | does not bind those on items. |
| 373 | 373 | |
| 374 | 374 | Numbered 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: | ||
| 436 | 436 | | =recursive= | count all descendants, not only direct children | |
| 437 | 437 | |
| 438 | 438 | For TODO statistics, =COOKIE_DATA= is read with inheritance, from the parent or an |
| 439 | ancestor. Orgstar counts TODO children hierarchically, as Org does with | |
| 439 | ancestor. orgstar counts TODO children hierarchically, as Org does with | |
| 440 | 440 | =org-hierarchical-todo-statistics= at its default. |
| 441 | 441 | |
| 442 | 442 | * Blocks |
| @@ -468,7 +468,7 @@ Doom presets) asks for a block type, one keystroke: | ||
| 468 | 468 | | =v= | =verse= | |
| 469 | 469 | |
| 470 | 470 | Press =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 | |
| 472 | 472 | inserted at the caret's indentation. With a selection, the block wraps the selected |
| 473 | 473 | lines, and for =src=, =example=, =export= and =comment= blocks, lines that would read as |
| 474 | 474 | headings 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]]. | ||
| 507 | 507 | |
| 508 | 508 | * Drawers |
| 509 | 509 | |
| 510 | A drawer is a named group of lines between =:NAME:= and =:END:=. Orgstar writes the | |
| 510 | A drawer is a named group of lines between =:NAME:= and =:END:=. orgstar writes the | |
| 511 | 511 | =PROPERTIES= drawer for properties and, depending on =org-log-into-drawer=, a =LOGBOOK= |
| 512 | 512 | drawer for state notes and clock lines (see [[file:05-todos-and-tags.org][TODOs and tags]] and |
| 513 | 513 | [[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 | ||
| 571 | 571 | ** Allowed values |
| 572 | 572 | |
| 573 | 573 | A property =KEY_ALL= lists the values =KEY= may take, separated by spaces, with quotes |
| 574 | around values that contain spaces. Orgstar looks for it on the entry, then its | |
| 574 | around values that contain spaces. orgstar looks for it on the entry, then its | |
| 575 | 575 | ancestors, then the file: |
| 576 | 576 | |
| 577 | 577 | #+BEGIN_SRC org |
| @@ -584,7 +584,7 @@ whose value is =[ ]= or =[X]= toggles between them. | ||
| 584 | 584 | |
| 585 | 585 | ** Inheritance |
| 586 | 586 | |
| 587 | Orgstar inherits properties as Org does with =org-use-property-inheritance= at its | |
| 587 | orgstar inherits properties as Org does with =org-use-property-inheritance= at its | |
| 588 | 588 | default of =nil=: a property applies only to the entry that has it, with these |
| 589 | 589 | exceptions: |
| 590 | 590 | |
| @@ -594,11 +594,11 @@ exceptions: | ||
| 594 | 594 | - =KEY_ALL= allowed values and =COOKIE_DATA= for TODO statistics are looked up through |
| 595 | 595 | the ancestors. |
| 596 | 596 | |
| 597 | Orgstar has no setting for =org-use-property-inheritance=. | |
| 597 | orgstar has no setting for =org-use-property-inheritance=. | |
| 598 | 598 | |
| 599 | 599 | ** Special properties |
| 600 | 600 | |
| 601 | Org computes some properties instead of reading them from a drawer. Orgstar treats | |
| 601 | Org computes some properties instead of reading them from a drawer. orgstar treats | |
| 602 | 602 | these as special and doesn't offer them as allowed-value lists: =ALLTAGS=, =BLOCKED=, |
| 603 | 603 | =CLOCKSUM=, =CLOCKSUM_T=, =CLOSED=, =DEADLINE=, =FILE=, =ITEM=, =PRIORITY=, =SCHEDULED=, |
| 604 | 604 | =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 | ||
| 641 | 641 | heading. Done (or Escape) closes the sheet. |
| 642 | 642 | |
| 643 | 643 | The sheet is read-only. Org's column view lets you edit values in place and writes |
| 644 | parent summaries back into the file; Orgstar's does neither. Change values with Set | |
| 644 | parent summaries back into the file; orgstar's does neither. Change values with Set | |
| 645 | 645 | Property, or edit the drawer. |
| 646 | 646 | |
| 647 | 647 | ** The Columns inspector |
| @@ -708,7 +708,7 @@ is created when needed (Org's =org-footnote-section=): | ||
| 708 | 708 | |
| 709 | 709 | #+BEGIN_SRC org |
| 710 | 710 | ,* Notes |
| 711 | Orgstar reads org files.[fn:1] | |
| 711 | orgstar reads org files.[fn:1] | |
| 712 | 712 | |
| 713 | 713 | ,* Footnotes |
| 714 | 714 | |
| @@ -750,7 +750,7 @@ subtree are shifted to match, and tags are realigned. A subtree can't be refiled | ||
| 750 | 750 | itself. |
| 751 | 751 | |
| 752 | 752 | For the open file, targets come from the buffer, including unsaved edits. When the |
| 753 | target is another file, Orgstar writes that file first, into its open buffer if it has | |
| 753 | target is another file, orgstar writes that file first, into its open buffer if it has | |
| 754 | 754 | one, otherwise through the normal save path, and removes the subtree from the source |
| 755 | 755 | only after that succeeds. If the target file changed on disk in the meantime, nothing |
| 756 | 756 | is refiled. |
| @@ -758,7 +758,7 @@ is refiled. | ||
| 758 | 758 | This matches Org with =org-refile-targets= set to headings of maximum level 3 in all |
| 759 | 759 | files, =org-refile-use-outline-path= set to =file=, =org-reverse-note-order= =nil= (new |
| 760 | 760 | entries go last), =org-log-refile= =nil= and =org-refile-keep= =nil=. None of these is |
| 761 | configurable in Orgstar. Refiling from the agenda is covered in [[file:07-agenda.org][Agenda]]. | |
| 761 | configurable in orgstar. Refiling from the agenda is covered in [[file:07-agenda.org][Agenda]]. | |
| 762 | 762 | |
| 763 | 763 | * Archiving |
| 764 | 764 | |
| @@ -789,7 +789,7 @@ Within the same file, tags it inherited are added to its heading. After the subt | ||
| 789 | 789 | leaves, the parent's statistics cookies are updated. The entry's TODO state is not |
| 790 | 790 | changed. |
| 791 | 791 | |
| 792 | If the archive file is open, the subtree goes into its buffer. Otherwise Orgstar writes | |
| 792 | If the archive file is open, the subtree goes into its buffer. Otherwise orgstar writes | |
| 793 | 793 | the archive file first and removes the subtree from the source only after that |
| 794 | 794 | succeeds. Org's option =org-archive-location= in Emacs is not read; use the =ARCHIVE= |
| 795 | 795 | property 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 | ||
| 817 | 817 | indented by level. Click a heading to go to it; folded text around it opens. A heading |
| 818 | 818 | with no title is shown as =(untitled)=. |
| 819 | 819 | |
| 820 | Show or hide it with the toolbar button or View ▸ Show or Hide Outline. Orgstar | |
| 820 | Show or hide it with the toolbar button or View ▸ Show or Hide Outline. orgstar | |
| 821 | 821 | remembers the choice for org files; for other files the pane starts hidden and shows |
| 822 | 822 | "Only org files have an outline." Drag the divider to resize it. While the search field |
| 823 | 823 | has 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]]. | ||
| 875 | 875 | |
| 876 | 876 | * Not supported |
| 877 | 877 | |
| 878 | These Org structure features are not in Orgstar: | |
| 878 | These Org structure features are not in orgstar: | |
| 879 | 879 | |
| 880 | 880 | - =org-insert-drawer=, =org-copy= (refile a copy) and =org-refile= with a prefix |
| 881 | 881 | (jump to a target). |
docs/manual/guide/05-todos-and-tags.org +11 −11
| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | #+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. | |
| 3 | 3 | #+LEDE: Mark headings as tasks, record when their state changes, rank them, and label them with tags. |
| 4 | 4 | |
| 5 | 5 | * TODO keywords |
| @@ -21,7 +21,7 @@ Files without a =#+TODO= line use the keywords in Settings ▸ Editing ▸ Defau | ||
| 21 | 21 | TODO(t) PROJ(p) LOOP(r) STRT(s) WAIT(w) HOLD(h) IDEA(i) | DONE(d) KILL(k) |
| 22 | 22 | #+END_SRC |
| 23 | 23 | |
| 24 | The 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]=. | |
| 24 | The 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]=. | |
| 25 | 25 | |
| 26 | 26 | ** Keywords in the file |
| 27 | 27 | |
| @@ -95,7 +95,7 @@ Insert TODO Heading (=org-insert-todo-heading=, =M-S-RET= in Emacs and Doom, ⌘ | ||
| 95 | 95 | |
| 96 | 96 | ** Dependencies |
| 97 | 97 | |
| 98 | With =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: | |
| 98 | With =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: | |
| 99 | 99 | |
| 100 | 100 | #+BEGIN_EXAMPLE |
| 101 | 101 | TODO 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 | ||
| 122 | 122 | |
| 123 | 123 | * Logging state changes |
| 124 | 124 | |
| 125 | Orgstar logs state changes as =org-todo= does in Org 9.8. | |
| 125 | orgstar logs state changes as =org-todo= does in Org 9.8. | |
| 126 | 126 | |
| 127 | 127 | ** CLOSED |
| 128 | 128 | |
| 129 | When =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: | |
| 129 | When =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: | |
| 130 | 130 | |
| 131 | 131 | #+BEGIN_SRC org |
| 132 | 132 | ,* DONE Book the venue |
| @@ -160,11 +160,11 @@ The headings are Org's default =org-log-note-headings=: | ||
| 160 | 160 | | New deadline | =New deadline from "[old date]" on [timestamp]= | |
| 161 | 161 | | Deadline removed | =Removed deadline, was "[old date]" on [timestamp]= | |
| 162 | 162 | |
| 163 | Rescheduling 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=). | |
| 163 | Rescheduling 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=). | |
| 164 | 164 | |
| 165 | 165 | ** The LOGBOOK drawer |
| 166 | 166 | |
| 167 | With =org-log-into-drawer= set to a drawer name, notes go at the top of that drawer, which Orgstar creates when it is missing: | |
| 167 | With =org-log-into-drawer= set to a drawer name, notes go at the top of that drawer, which orgstar creates when it is missing: | |
| 168 | 168 | |
| 169 | 169 | #+BEGIN_SRC org |
| 170 | 170 | ,* DONE Book the venue |
| @@ -283,11 +283,11 @@ The view shows the inherited tags, the current selection, and each tag with its | ||
| 283 | 283 | - Tags without a key get one: their first letter if it is free, otherwise the next free character from =a–z=, =A–Z= and ={|}~=. |
| 284 | 284 | - The selected tags are written in the order of the =#+TAGS= lines, followed by any others. |
| 285 | 285 | |
| 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. | |
| 287 | 287 | |
| 288 | 288 | ** Inheritance |
| 289 | 289 | |
| 290 | An 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=). | |
| 290 | An 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=). | |
| 291 | 291 | |
| 292 | 292 | #+BEGIN_SRC org |
| 293 | 293 | ,#+FILETAGS: :home: |
| @@ -300,7 +300,7 @@ Here "Prune the roses" has the tags =home= and =outdoor= through inheritance. | ||
| 300 | 300 | |
| 301 | 301 | ** Alignment |
| 302 | 302 | |
| 303 | Orgstar 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: | |
| 303 | orgstar 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: | |
| 304 | 304 | |
| 305 | 305 | | Value | Placement | |
| 306 | 306 | |------------+----------------------------------------------------| |
| @@ -322,7 +322,7 @@ A =[/]= or =[%]= cookie in a heading shows how many of its children are done: | ||
| 322 | 322 | ,** TODO Forward the mail |
| 323 | 323 | #+END_SRC |
| 324 | 324 | |
| 325 | Orgstar 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. | |
| 325 | orgstar 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. | |
| 326 | 326 | |
| 327 | 327 | The =COOKIE_DATA= property changes what the parent's cookie counts: |
| 328 | 328 | |
docs/manual/guide/06-dates-and-clocking.org +25 −25
| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | #+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. | |
| 3 | 3 | #+LEDE: Put dates on entries, plan work with scheduled dates and deadlines, and record the time you spend. |
| 4 | 4 | |
| 5 | 5 | * Timestamps |
| @@ -16,7 +16,7 @@ A timestamp is a date, optionally with a time, in angle brackets (active) or squ | ||
| 16 | 16 | |
| 17 | 17 | - Active timestamps put the entry on the agenda for that day. Inactive ones are records only. |
| 18 | 18 | - =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. | |
| 20 | 20 | |
| 21 | 21 | ** Repeaters and warning periods |
| 22 | 22 | |
| @@ -44,7 +44,7 @@ Units are =h= (hours), =d=, =w=, =m= and =y=. What happens when a repeating task | ||
| 44 | 44 | |
| 45 | 45 | ** Diary sexps |
| 46 | 46 | |
| 47 | The 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. | |
| 47 | The 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. | |
| 48 | 48 | |
| 49 | 49 | * Inserting timestamps |
| 50 | 50 | |
| @@ -67,7 +67,7 @@ Every command that asks for a date shows the same prompt (=org-read-date=): a te | ||
| 67 | 67 | - =RET= accepts. An empty answer takes the default: the date of the timestamp being changed, or today. |
| 68 | 68 | - =Esc= cancels. |
| 69 | 69 | |
| 70 | Orgstar 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. | |
| 70 | orgstar 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. | |
| 71 | 71 | |
| 72 | 72 | | You type | Result | |
| 73 | 73 | |--------------------+-----------------------------------------------------------| |
| @@ -144,7 +144,7 @@ DEADLINE: <2026-10-31 Sat -7d> SCHEDULED: <2026-10-20 Tue> | ||
| 144 | 144 | |
| 145 | 145 | Schedule 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]]). |
| 146 | 146 | |
| 147 | With =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: | |
| 147 | With =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: | |
| 148 | 148 | |
| 149 | 149 | #+BEGIN_SRC org |
| 150 | 150 | ,* TODO Submit the tax return |
| @@ -156,7 +156,7 @@ Where these notes go, and the =#+STARTUP= words, are covered in [[file:05-todos- | ||
| 156 | 156 | |
| 157 | 157 | * Repeating tasks |
| 158 | 158 | |
| 159 | When 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: | |
| 159 | When 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: | |
| 160 | 160 | |
| 161 | 161 | 1. 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. |
| 162 | 162 | 2. =CLOSED= is removed. |
| @@ -184,7 +184,7 @@ SCHEDULED: <2026-10-10 Sat .+3d> | ||
| 184 | 184 | - State "DONE" from "TODO" [2026-10-07 Wed 18:02] |
| 185 | 185 | #+END_SRC |
| 186 | 186 | |
| 187 | A 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. | |
| 187 | A 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. | |
| 188 | 188 | |
| 189 | 189 | To turn the repeat note off for a file, use =#+STARTUP: nologrepeat=; =lognoterepeat= asks for a note instead. |
| 190 | 190 | |
| @@ -202,7 +202,7 @@ Set Effort asks for a value, such as =0:30= or =2:00=, starting with the current | ||
| 202 | 202 | ,#+PROPERTY: Effort_ALL 0:15 0:30 1:00 2:00 4:00 |
| 203 | 203 | #+END_SRC |
| 204 | 204 | |
| 205 | Effort appears in column view and in clock tables with =:properties ("Effort")=. Orgstar does not compare the running clock with the effort estimate. | |
| 205 | Effort appears in column view and in clock tables with =:properties ("Effort")=. orgstar does not compare the running clock with the effort estimate. | |
| 206 | 206 | |
| 207 | 207 | * Clocking |
| 208 | 208 | |
| @@ -222,7 +222,7 @@ Clocking records the time you work on an entry as =CLOCK:= lines in its =LOGBOOK | ||
| 222 | 222 | |
| 223 | 223 | The 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]]). |
| 224 | 224 | |
| 225 | Orgstar 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=. | |
| 225 | orgstar 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=. | |
| 226 | 226 | |
| 227 | 227 | ** Clocking in and out |
| 228 | 228 | |
| @@ -245,17 +245,17 @@ CLOCK: [2026-10-06 Tue 14:00]--[2026-10-06 Tue 15:30] => 1:30 | ||
| 245 | 245 | |
| 246 | 246 | With 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=. |
| 247 | 247 | |
| 248 | Orgstar 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. | |
| 248 | orgstar 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. | |
| 249 | 249 | |
| 250 | 250 | These parts of Org's clocking are not implemented: |
| 251 | 251 | |
| 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; | |
| 253 | 253 | - 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; |
| 254 | 254 | - a =CLOCK_INTO_DRAWER= property or another drawer name: clocks always go into =LOGBOOK=. |
| 255 | 255 | |
| 256 | 256 | ** The running clock |
| 257 | 257 | |
| 258 | While a clock runs, Orgstar shows it in three places, refreshed every 30 seconds: | |
| 258 | While a clock runs, orgstar shows it in three places, refreshed every 30 seconds: | |
| 259 | 259 | |
| 260 | 260 | - the mode line under the editor: =⏱ 0:42 Write the report=; |
| 261 | 261 | - 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 | ||
| 265 | 265 | |
| 266 | 266 | ** Recent entries |
| 267 | 267 | |
| 268 | Orgstar 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. | |
| 268 | orgstar 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. | |
| 269 | 269 | |
| 270 | 270 | Entries 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. |
| 271 | 271 | |
| @@ -282,13 +282,13 @@ Type a key to choose. =q=, =x= or =Esc= leave the question. With an empty histor | ||
| 282 | 282 | |
| 283 | 283 | Clock 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". |
| 284 | 284 | |
| 285 | Mark 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. | |
| 285 | Mark 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. | |
| 286 | 286 | |
| 287 | 287 | ** Open clocks |
| 288 | 288 | |
| 289 | An 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. | |
| 289 | An 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. | |
| 290 | 290 | |
| 291 | When 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: | |
| 291 | When 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: | |
| 292 | 292 | |
| 293 | 293 | #+BEGIN_EXAMPLE |
| 294 | 294 | Dangling 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 | ||
| 298 | 298 | |
| 299 | 299 | Resolve Open Clocks… asks the same about every open clock, the running one included, and says "No open clocks" when there are none. |
| 300 | 300 | |
| 301 | Unlike Org, Orgstar doesn't show the clock's line while it asks; =j= opens it afterwards, except while clocking in. | |
| 301 | Unlike Org, orgstar doesn't show the clock's line while it asks; =j= opens it afterwards, except while clocking in. | |
| 302 | 302 | |
| 303 | 303 | The 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). |
| 304 | 304 | |
| @@ -336,7 +336,7 @@ You stopped another clock 12 mins ago; start this one from then? (y or n) | ||
| 336 | 336 | |
| 337 | 337 | On 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. |
| 338 | 338 | |
| 339 | While 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: | |
| 339 | While 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: | |
| 340 | 340 | |
| 341 | 341 | #+BEGIN_EXAMPLE |
| 342 | 342 | Clocked 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 | ||
| 346 | 346 | |
| 347 | 347 | ** Editing clock lines |
| 348 | 348 | |
| 349 | You 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=). | |
| 349 | You 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=). | |
| 350 | 350 | |
| 351 | 351 | =C-c .= on a clock line's range replaces one of its timestamps, as in any range of days (see "Inserting timestamps"). |
| 352 | 352 | |
| @@ -377,7 +377,7 @@ Copy puts it on the clipboard; Save writes it to a file. | ||
| 377 | 377 | |
| 378 | 378 | * Clock tables |
| 379 | 379 | |
| 380 | A clock table is a dynamic block that Orgstar fills with a summary of clocked time (=org-clocktable-write-default=). | |
| 380 | A clock table is a dynamic block that orgstar fills with a summary of clocked time (=org-clocktable-write-default=). | |
| 381 | 381 | |
| 382 | 382 | | Command | Org command | Emacs, Doom | |
| 383 | 383 | |---------------------------------+----------------------+-----------------| |
| @@ -468,14 +468,14 @@ How habits appear in the agenda, with the graph covering 21 days back and 7 ahea | ||
| 468 | 468 | |
| 469 | 469 | * Reminders |
| 470 | 470 | |
| 471 | Orgstar can post a macOS notification before entries that have a time of day, as Emacs's =appt= does with =org-agenda-to-appt=. | |
| 471 | orgstar can post a macOS notification before entries that have a time of day, as Emacs's =appt= does with =org-agenda-to-appt=. | |
| 472 | 472 | |
| 473 | 473 | - 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. |
| 474 | 474 | - 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. | |
| 476 | 476 | - 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. | |
| 478 | 478 | |
| 479 | Orgstar 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. | |
| 479 | orgstar 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. | |
| 480 | 480 | |
| 481 | Turn 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]]. | |
| 481 | Turn 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] | ||
| 22 | 22 | |
| 23 | 23 | * Agenda files |
| 24 | 24 | |
| 25 | Orgstar 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. | |
| 25 | orgstar 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. | |
| 26 | 26 | |
| 27 | 27 | To include files in subfolders as well, turn on Settings ▸ Agenda ▸ Include files in subfolders, or set this in =config.toml=: |
| 28 | 28 | |
| @@ -157,7 +157,7 @@ With =org-enforce-todo-dependencies= or =org-enforce-todo-checkbox-dependencies= | ||
| 157 | 157 | |
| 158 | 158 | * Calendar events |
| 159 | 159 | |
| 160 | The 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: | |
| 160 | The 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: | |
| 161 | 161 | |
| 162 | 162 | - On the Mac, turn on Settings ▸ Agenda ▸ Show events from Calendar, and check the calendars to show. |
| 163 | 163 | - On iOS, turn on Settings ▸ Calendar ▸ Show Calendar Events, and tap the calendars to show. |
| @@ -171,7 +171,7 @@ calendar-event-calendars = "Work, Family" | ||
| 171 | 171 | |
| 172 | 172 | =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. |
| 173 | 173 | |
| 174 | The 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. | |
| 174 | The 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. | |
| 175 | 175 | |
| 176 | 176 | Events appear only in the day, week and month view: |
| 177 | 177 | |
| @@ -185,7 +185,7 @@ On the Mac, double-click an event, or select it and press =RET=, to open it in C | ||
| 185 | 185 | |
| 186 | 186 | * Done keywords the agenda doesn't know |
| 187 | 187 | |
| 188 | A 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 ~|~: | |
| 188 | A 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 ~|~: | |
| 189 | 189 | |
| 190 | 190 | #+BEGIN_SRC toml |
| 191 | 191 | org-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 | ||
| 207 | 207 | <%%(org-class 2026 9 7 2026 12 18 1 41)> |
| 208 | 208 | #+END_SRC |
| 209 | 209 | |
| 210 | Lines 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. | |
| 210 | Lines 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. | |
| 211 | 211 | |
| 212 | 212 | | Function | Applies | Date order | |
| 213 | 213 | |--------------------------------------------+--------------------------------------------------------------------+-------------------| |
| @@ -323,7 +323,7 @@ Names are case-insensitive. Prefix a character in a name with =\= to use it lite | ||
| 323 | 323 | | =SCHEDULED=, =DEADLINE=, =CLOSED= | The planning timestamp | |
| 324 | 324 | | =TIMESTAMP=, =TIMESTAMP_IA= | The entry's first active or inactive timestamp | |
| 325 | 325 | |
| 326 | Properties 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. | |
| 326 | Properties 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. | |
| 327 | 327 | |
| 328 | 328 | ** TODO keywords |
| 329 | 329 | |
| @@ -450,7 +450,7 @@ The =\= prompt reads every word as a tag, whether or not a line has it; there, = | ||
| 450 | 450 | |
| 451 | 451 | * Prefix format and colors |
| 452 | 452 | |
| 453 | The 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. | |
| 453 | The 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. | |
| 454 | 454 | |
| 455 | 455 | The agenda's colors come from these theme keys (see [[file:13-configuration.org][Configuration]]): |
| 456 | 456 | |
| @@ -519,7 +519,7 @@ Each action finds the entry again by its heading line before it changes anything | ||
| 519 | 519 | |
| 520 | 520 | * Reminders |
| 521 | 521 | |
| 522 | Orgstar 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. | |
| 522 | orgstar 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. | |
| 523 | 523 | |
| 524 | 524 | | Setting | Default | =config.toml= | |
| 525 | 525 | |-------------------------------+---------+------------------------------------| |
| @@ -530,7 +530,7 @@ Both are in Settings ▸ Agenda. An entry's =APPT_WARNTIME= property, in minutes | ||
| 530 | 530 | |
| 531 | 531 | The 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. |
| 532 | 532 | |
| 533 | On 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. | |
| 533 | On 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. | |
| 534 | 534 | |
| 535 | 535 | * The board |
| 536 | 536 | |
| @@ -573,6 +573,6 @@ The Agenda tab shows the same views from the same files, using the settings in t | ||
| 573 | 573 | - Marking an entry done and rescheduling one give haptic feedback. |
| 574 | 574 | - Log Mode, in the span menu, turns log mode on and off. The widgets never show log mode's entries. |
| 575 | 575 | - 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. | |
| 577 | 577 | |
| 578 | 578 | The 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: | ||
| 12 | 12 | | Emacs | =C-c c= or =⇧⌘N= | |
| 13 | 13 | | Doom | =SPC X= (normal state), =C-c c= or =⇧⌘N= | |
| 14 | 14 | |
| 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=: | |
| 16 | 16 | |
| 17 | 17 | #+BEGIN_SRC toml |
| 18 | 18 | [orgstar] |
| @@ -51,7 +51,7 @@ The + at the right of a day's header in the agenda, or =k= in the Mac agenda (=o | ||
| 51 | 51 | - An empty answer to a date prompt (=%^t= and the others) is that day. |
| 52 | 52 | - With =datetree = true=, the entry goes under that day in the date tree. |
| 53 | 53 | |
| 54 | When 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: | |
| 54 | When 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: | |
| 55 | 55 | |
| 56 | 56 | #+BEGIN_SRC org |
| 57 | 57 | ,* TODO Call the bank |
| @@ -239,7 +239,7 @@ With =olp=, the tree goes under that outline path, one level down, instead of at | ||
| 239 | 239 | |
| 240 | 240 | * org-protocol |
| 241 | 241 | |
| 242 | Orgstar 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. | |
| 242 | orgstar 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. | |
| 243 | 243 | |
| 244 | 244 | ** capture |
| 245 | 245 | |
| @@ -264,7 +264,7 @@ org-protocol://store-link?url=https%3A%2F%2Fexample.com&title=Example | ||
| 264 | 264 | |
| 265 | 265 | This 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. |
| 266 | 266 | |
| 267 | Other handlers, such as =open-source=, report that Orgstar handles only capture and store-link. | |
| 267 | Other handlers, such as =open-source=, report that orgstar handles only capture and store-link. | |
| 268 | 268 | |
| 269 | 269 | ** Bookmarklets |
| 270 | 270 | |
| @@ -291,16 +291,16 @@ template = "* %:description\n:PROPERTIES:\n:URL: %:link\n:END:\n%U\n%i\n%?" | ||
| 291 | 291 | |
| 292 | 292 | * Shortcuts |
| 293 | 293 | |
| 294 | The Shortcuts action Capture to Orgstar files text with a template, without the capture window. It has two parameters: | |
| 294 | The Shortcuts action Capture to orgstar files text with a template, without the capture window. It has two parameters: | |
| 295 | 295 | |
| 296 | 296 | | Parameter | Meaning | |
| 297 | 297 | |--------------+-------------------------------------------------------------------------| |
| 298 | 298 | | Text | The text, inserted as =%i= | |
| 299 | 299 | | Template Key | A template's =key= in =capture.toml=; the first template when empty | |
| 300 | 300 | |
| 301 | Every 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. | |
| 301 | Every 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. | |
| 302 | 302 | |
| 303 | On the Mac, the action opens Orgstar if it isn't running and waits up to five seconds for it to be ready. | |
| 303 | On the Mac, the action opens orgstar if it isn't running and waits up to five seconds for it to be ready. | |
| 304 | 304 | |
| 305 | 305 | * Capture on iOS |
| 306 | 306 | |
| @@ -316,15 +316,15 @@ Differences from the Mac: there is no selection, clipboard, current file, user n | ||
| 316 | 316 | |
| 317 | 317 | ** The share sheet |
| 318 | 318 | |
| 319 | In another app, share a web page or text and choose Orgstar. The share form has: | |
| 319 | In another app, share a web page or text and choose orgstar. The share form has: | |
| 320 | 320 | |
| 321 | 321 | - a Template picker, with the templates the app read the last time it ran; |
| 322 | 322 | - for a link, its title (editable) and address; |
| 323 | 323 | - a Text field, filled with shared text. |
| 324 | 324 | |
| 325 | Capture 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. | |
| 325 | Capture 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. | |
| 326 | 326 | |
| 327 | The share form lists no templates until Orgstar has run once with your configuration folder; the capture sheet then starts on the first template. | |
| 327 | The share form lists no templates until orgstar has run once with your configuration folder; the capture sheet then starts on the first template. | |
| 328 | 328 | |
| 329 | 329 | * Importing templates from Emacs |
| 330 | 330 | |
| @@ -346,4 +346,4 @@ Import from Emacs (see [[file:13-configuration.org][Configuration]] and [[file:1 | ||
| 346 | 346 | |
| 347 | 347 | A 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. |
| 348 | 348 | |
| 349 | Emacs 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. | |
| 349 | Emacs 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 @@ | ||
| 1 | 1 | #+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. | |
| 3 | 3 | #+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. |
| 4 | 4 | |
| 5 | 5 | * Link syntax |
| 6 | 6 | |
| 7 | Orgstar reads links the way =org-element-link-parser= does. There are three forms. | |
| 7 | orgstar reads links the way =org-element-link-parser= does. There are three forms. | |
| 8 | 8 | |
| 9 | 9 | | Form | Example | Notes | |
| 10 | 10 | |---------------+-------------------------------------------+-------------------------------------------------------------| |
| @@ -18,7 +18,7 @@ custom ID. Anything without a known =type:= prefix is a search for text in the | ||
| 18 | 18 | current file (a "fuzzy" link). A link may run over a line break; the break and |
| 19 | 19 | surrounding blanks read as one space. |
| 20 | 20 | |
| 21 | Backslashes before brackets are escaped as in =org-link-escape=: when Orgstar writes | |
| 21 | Backslashes before brackets are escaped as in =org-link-escape=: when orgstar writes | |
| 22 | 22 | a link it doubles backslashes that come before a bracket or the end, and it reads them |
| 23 | 23 | back the same way. |
| 24 | 24 | |
| @@ -60,10 +60,10 @@ A message in the echo area explains a link that can't be followed. | ||
| 60 | 60 | | Heading | =[[*Weekly review]]= | Moves to the heading in this file with that title. | |
| 61 | 61 | | Text | =[[budget table]]= | Searches this file: a =<<budget table>>= target, then =#+NAME: budget table=, then a heading. | |
| 62 | 62 | | 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. | | |
| 64 | 64 | | =attachment= | =[[attachment:scan.pdf]]= | Opens the file in the entry's attachment folder; see /Attachment links/ below. | |
| 65 | 65 | | 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. | | |
| 67 | 67 | |
| 68 | 68 | The text search follows =org-link-search=. A dedicated =<<target>>= matches its words |
| 69 | 69 | case-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 | ||
| 84 | 84 | |
| 85 | 85 | What happens depends on the file: |
| 86 | 86 | |
| 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. | |
| 89 | 89 | - Anything else (images, PDFs, archives, media) is handed to macOS, which opens it in |
| 90 | 90 | the default app for that type. |
| 91 | 91 | |
| @@ -163,7 +163,7 @@ A stored link that you insert is removed from the stored list, as with | ||
| 163 | 163 | |
| 164 | 164 | ** File paths in inserted links |
| 165 | 165 | |
| 166 | When the inserted link is a =file:= link, Orgstar rewrites it as | |
| 166 | When the inserted link is a =file:= link, orgstar rewrites it as | |
| 167 | 167 | =org-link-make-string-for-buffer= does: |
| 168 | 168 | |
| 169 | 169 | - 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 | ||
| 201 | 201 | 5. Before the first heading, the link searches for the text of the current line. |
| 202 | 202 | |
| 203 | 203 | The echo area shows =Stored:= and the description or link. Storing the same link again |
| 204 | moves it to the front of the list. Stored links last until you quit Orgstar; they | |
| 204 | moves it to the front of the list. Stored links last until you quit orgstar; they | |
| 205 | 205 | aren't saved between sessions, as in Emacs. |
| 206 | 206 | |
| 207 | 207 | * IDs |
| @@ -327,7 +327,7 @@ every file when it opens. In a file, =#+STARTUP: inlineimages= or | ||
| 327 | 327 | |
| 328 | 328 | * org-protocol store-link |
| 329 | 329 | |
| 330 | Orgstar handles =org-protocol://store-link= URLs, in the new form | |
| 330 | orgstar handles =org-protocol://store-link= URLs, in the new form | |
| 331 | 331 | ~org-protocol://store-link?url=…&title=…~ and the old form |
| 332 | 332 | =org-protocol://store-link:/URL/TITLE=. The URL is added to your stored links with |
| 333 | 333 | the 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 @@ | ||
| 1 | 1 | #+TITLE: Tables |
| 2 | 2 | #+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. | |
| 4 | 4 | |
| 5 | 5 | * Tables in Org |
| 6 | 6 | |
| @@ -14,14 +14,14 @@ that starts with =|-= is a horizontal rule: | ||
| 14 | 14 | | Pear | 12 | 0.75 | |
| 15 | 15 | #+END_SRC |
| 16 | 16 | |
| 17 | Orgstar follows =org-table.el= from Org 9.8.7, with =org-table-automatic-realign= on, | |
| 17 | orgstar follows =org-table.el= from Org 9.8.7, with =org-table-automatic-realign= on, | |
| 18 | 18 | =org-table-tab-jumps-over-hlines= on, and formulas adjusted without asking when rows |
| 19 | 19 | and columns move (=org-table-fix-formulas-confirm= nil). Tables inside dynamic blocks |
| 20 | 20 | count as tables; tables inside other blocks don't. |
| 21 | 21 | |
| 22 | 22 | * Creating a table |
| 23 | 23 | |
| 24 | Type =|=, a few field names separated by =|=, and press =TAB=: Orgstar aligns the line | |
| 24 | Type =|=, a few field names separated by =|=, and press =TAB=: orgstar aligns the line | |
| 25 | 25 | as a table and moves to the next field, adding a row after the last one. Type =|-= on |
| 26 | 26 | the line below a row and press =TAB= to turn it into a full-width rule. |
| 27 | 27 | |
| @@ -167,7 +167,7 @@ Import and export are Mac only. | ||
| 167 | 167 | |
| 168 | 168 | * Formulas |
| 169 | 169 | |
| 170 | Orgstar evaluates Org's spreadsheet formulas, =org-table-recalculate= and | |
| 170 | orgstar evaluates Org's spreadsheet formulas, =org-table-recalculate= and | |
| 171 | 171 | =org-table-eval-formula=, natively: Calc expressions in a reimplementation of the part |
| 172 | 172 | of Emacs Calc that tables use, and Lisp formulas in a small Emacs Lisp evaluator. What |
| 173 | 173 | falls outside them is handed to Emacs on the Mac (see /When Emacs is needed/). |
| @@ -451,7 +451,7 @@ field, as does a Calc error. | ||
| 451 | 451 | |
| 452 | 452 | There are three ways to set a formula. |
| 453 | 453 | |
| 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 | |
| 455 | 455 | ~$N=expr~ as the column's formula and evaluates it, as |
| 456 | 456 | =org-table-maybe-eval-formula= does. Type ~:=expr~ instead to store a field formula |
| 457 | 457 | ~@R$C=expr~. |
| @@ -467,7 +467,7 @@ formula in the formula editor below or from the =#+TBLFM:= line. | ||
| 467 | 467 | | Org ▸ Set Column Formula | ~C-c =~ | Org ▸ Set Column Formula | ~C-c =~ | |
| 468 | 468 | | Org ▸ Set Field Formula | none | Org ▸ Set Field Formula | none | |
| 469 | 469 | |
| 470 | Org's ~C-u C-c =~ for field formulas has no equivalent key, because Orgstar has no | |
| 470 | Org's ~C-u C-c =~ for field formulas has no equivalent key, because orgstar has no | |
| 471 | 471 | prefix argument; use the menu item or type ~:=~ in the field. |
| 472 | 472 | |
| 473 | 473 | *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 | ||
| 514 | 514 | - Lisp functions not listed above. |
| 515 | 515 | |
| 516 | 516 | The echo area shows =Recalculating in Emacs (reason)…=, then =Recalculated in Emacs=. |
| 517 | Orgstar runs =emacs -Q --batch= on a copy of the file, so your Emacs init file, | |
| 517 | orgstar runs =emacs -Q --batch= on a copy of the file, so your Emacs init file, | |
| 518 | 518 | packages and customizations are not loaded, then replaces the table with Emacs's |
| 519 | 519 | result. It looks for Emacs at the path in the =ORGSTAR_EMACS= environment variable, |
| 520 | 520 | then =/opt/homebrew/bin/emacs=, =/usr/local/bin/emacs=, |
| @@ -522,7 +522,7 @@ then =/opt/homebrew/bin/emacs=, =/usr/local/bin/emacs=, | ||
| 522 | 522 | =/usr/bin/emacs=. If none is found, the echo area says Emacs isn't installed and the |
| 523 | 523 | table is unchanged. Emacs gets your =PATH= with =/opt/homebrew/bin=, =/usr/local/bin=, |
| 524 | 524 | =/Library/TeX/texbin=, =/usr/bin= and =/bin= added, as code blocks and export do, so |
| 525 | programs a formula starts are found when Orgstar was opened from the Dock. The run | |
| 525 | programs a formula starts are found when orgstar was opened from the Dock. The run | |
| 526 | 526 | stops after 60 seconds. If you edit the table while Emacs is working, its result is |
| 527 | 527 | discarded. |
| 528 | 528 | |
| @@ -530,7 +530,7 @@ Edit ▸ Cancel Running Task (=⌘.=) stops the recalculation; the echo area sho | ||
| 530 | 530 | =Recalculation canceled= and the table is unchanged. Starting another recalculation or |
| 531 | 531 | export in Emacs cancels the one that is running. |
| 532 | 532 | |
| 533 | If the table's formulas contain Lisp, Orgstar asks first: | |
| 533 | If the table's formulas contain Lisp, orgstar asks first: | |
| 534 | 534 | =This table's formulas run Lisp. Run them? (yes, no, always)=. =always= trusts this |
| 535 | 535 | table's text in this file, so the question isn't asked again until the text changes. |
| 536 | 536 | |
| @@ -540,8 +540,8 @@ left as it was; the echo area shows =The formula was stored; recalculating it ne | ||
| 540 | 540 | Emacs= and the reason. =TAB= and =RET= still move to the next field. Recalculate the |
| 541 | 541 | table to run the formula in Emacs. |
| 542 | 542 | |
| 543 | For how Orgstar and Emacs share files, see | |
| 544 | [[file:15-alongside-emacs.org][Using Orgstar alongside Emacs]]. | |
| 543 | For how orgstar and Emacs share files, see | |
| 544 | [[file:15-alongside-emacs.org][Using orgstar alongside Emacs]]. | |
| 545 | 545 | |
| 546 | 546 | * table.el tables |
| 547 | 547 | |
| @@ -556,13 +556,13 @@ them, are recognized and kept as written: | ||
| 556 | 556 | +-------+-------+ |
| 557 | 557 | #+END_SRC |
| 558 | 558 | |
| 559 | Orgstar doesn't edit them as tables: =TAB=, alignment and formulas don't apply. HTML | |
| 559 | orgstar doesn't edit them as tables: =TAB=, alignment and formulas don't apply. HTML | |
| 560 | 560 | export renders them as tables, with cells that span rows and columns, and Markdown |
| 561 | 561 | export writes them as a code block. See [[file:12-export.org][Export]]. |
| 562 | 562 | |
| 563 | 563 | * Plotting |
| 564 | 564 | |
| 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 | |
| 566 | 566 | plots (=org-plot/gnuplot= is not available). |
| 567 | 567 | |
| 568 | 568 | * On iOS |
docs/manual/guide/11-code-blocks.org +21 −21
| @@ -1,6 +1,6 @@ | ||
| 1 | 1 | #+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. | |
| 4 | 4 | |
| 5 | 5 | * Source blocks |
| 6 | 6 | |
| @@ -12,7 +12,7 @@ return 6 * 7 | ||
| 12 | 12 | ,#+end_src |
| 13 | 13 | #+END_SRC |
| 14 | 14 | |
| 15 | Orgstar 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. | |
| 15 | orgstar 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. | |
| 16 | 16 | |
| 17 | 17 | Lines 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. |
| 18 | 18 | |
| @@ -82,7 +82,7 @@ The block's text is remembered when the run starts. If you edit the block while | ||
| 82 | 82 | |
| 83 | 83 | ** Languages that run |
| 84 | 84 | |
| 85 | On 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. | |
| 85 | On 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. | |
| 86 | 86 | |
| 87 | 87 | | Language | Program run | |
| 88 | 88 | |------------------------------------------------------------------+-----------------------------------------------------| |
| @@ -105,7 +105,7 @@ A run that takes longer than five minutes is stopped. Runs in a =:session= have | ||
| 105 | 105 | |
| 106 | 106 | ** Compiled languages |
| 107 | 107 | |
| 108 | On 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. | |
| 108 | On 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. | |
| 109 | 109 | |
| 110 | 110 | | Language | Commands | |
| 111 | 111 | |-----------------+----------------------------------------------------------------------------------| |
| @@ -135,21 +135,21 @@ When =:imports= is absent, a D block reads the =IMPORTS= property where it is, a | ||
| 135 | 135 | |
| 136 | 136 | Java'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=. |
| 137 | 137 | |
| 138 | Any other Clojure backend is refused: "The cider backend for clojure needs Emacs; Orgstar runs babashka or clojure-cli." | |
| 138 | Any other Clojure backend is refused: "The cider backend for clojure needs Emacs; orgstar runs babashka or clojure-cli." | |
| 139 | 139 | |
| 140 | Before 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." | |
| 140 | Before 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." | |
| 141 | 141 | |
| 142 | 142 | ** The trust prompt |
| 143 | 143 | |
| 144 | Before a block runs, Orgstar asks "Run this /language/ block? (yes, no, always)", as =org-confirm-babel-evaluate= does. | |
| 144 | Before a block runs, orgstar asks "Run this /language/ block? (yes, no, always)", as =org-confirm-babel-evaluate= does. | |
| 145 | 145 | |
| 146 | 146 | - =yes= runs it this once. |
| 147 | 147 | - =no= does not run it. |
| 148 | 148 | - =always= runs it and remembers the block, so it runs without asking next time. |
| 149 | 149 | |
| 150 | A 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. | |
| 150 | A 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. | |
| 151 | 151 | |
| 152 | When 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." | |
| 152 | When 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." | |
| 153 | 153 | |
| 154 | 154 | ** =:eval= |
| 155 | 155 | |
| @@ -159,7 +159,7 @@ When a block's =:var= or =:stdin= refers to other blocks that have to run first, | ||
| 159 | 159 | | =query= | Asks every time, with only =yes= and =no=. A block reached through =:var= with =:eval query= makes the whole chain ask every time. | |
| 160 | 160 | | anything else, or absent | Runs after the trust prompt. | |
| 161 | 161 | |
| 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. | |
| 163 | 163 | |
| 164 | 164 | ** Cancelling a run |
| 165 | 165 | |
| @@ -302,7 +302,7 @@ echo hello | ||
| 302 | 302 | |
| 303 | 303 | ** Where they come from |
| 304 | 304 | |
| 305 | Orgstar merges header arguments in this order, each layer overriding the ones before it (=org-babel-get-src-block-info=): | |
| 305 | orgstar merges header arguments in this order, each layer overriding the ones before it (=org-babel-get-src-block-info=): | |
| 306 | 306 | |
| 307 | 307 | 1. =#+PROPERTY: header-args …= in the file, then =header-args= properties of the block's headings, from the outermost heading inwards. |
| 308 | 308 | 2. =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 | ||
| 330 | 330 | |
| 331 | 331 | ** Lisp in header values |
| 332 | 332 | |
| 333 | A 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=. | |
| 333 | A 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=. | |
| 334 | 334 | |
| 335 | 335 | #+BEGIN_SRC org |
| 336 | 336 | ,#+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 | ||
| 375 | 375 | |
| 376 | 376 | ** Arguments that are refused |
| 377 | 377 | |
| 378 | Orgstar does not run a block whose arguments it would handle differently from Emacs. Instead it says why and runs nothing. | |
| 378 | orgstar does not run a block whose arguments it would handle differently from Emacs. Instead it says why and runs nothing. | |
| 379 | 379 | |
| 380 | 380 | | Argument | Refused for | Message | |
| 381 | 381 | |-----------------------------+-------------------------------------------------+----------------------------------------------------------| |
| @@ -479,7 +479,7 @@ for a in "$@"; do echo "[$a]"; done | ||
| 479 | 479 | - A session starts in the block's =:dir=, or the file's folder, the first time it is used. |
| 480 | 480 | - A shell session's output is what the block prints. =:results value= gives the exit status of the last command. |
| 481 | 481 | - 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. | |
| 483 | 483 | |
| 484 | 484 | #+BEGIN_SRC org |
| 485 | 485 | ,#+begin_src python :session py :results output |
| @@ -494,7 +494,7 @@ a * 3 | ||
| 494 | 494 | |
| 495 | 495 | * Caching |
| 496 | 496 | |
| 497 | With =: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: …"). | |
| 497 | With =: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: …"). | |
| 498 | 498 | |
| 499 | 499 | Change 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. |
| 500 | 500 | |
| @@ -583,9 +583,9 @@ An inline call, =call_double(n=6)=, has the same parts as a =#+CALL:= line: =cal | ||
| 583 | 583 | |
| 584 | 584 | * Emacs Lisp blocks |
| 585 | 585 | |
| 586 | On 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." | |
| 586 | On 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." | |
| 587 | 587 | |
| 588 | On 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. | |
| 588 | On 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. | |
| 589 | 589 | |
| 590 | 590 | Variables are bound with =let= around the body. =:results output= collects what the block prints with =princ=, =prin1=, =print= and =terpri=. |
| 591 | 591 | |
| @@ -688,7 +688,7 @@ Block switches also apply. =-r= removes coderef labels such as =(ref:name)=, usi | ||
| 688 | 688 | |
| 689 | 689 | The 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=. |
| 690 | 690 | |
| 691 | Comments 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. | |
| 691 | Comments 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. | |
| 692 | 692 | |
| 693 | 693 | ** Writing the files |
| 694 | 694 | |
| @@ -710,11 +710,11 @@ Tangling stops, writes nothing and says why when: | ||
| 710 | 710 | |
| 711 | 711 | * On iOS |
| 712 | 712 | |
| 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. | |
| 714 | 714 | - There are no sessions and no graphics. |
| 715 | 715 | - The trust prompt works the same way, with its own =trusted.json= on the device. |
| 716 | 716 | - 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. | |
| 718 | 718 | - Edit Block opens a plain text sheet without highlighting. |
| 719 | 719 | |
| 720 | 720 | See [[file:14-ios.org][iOS]] for the rest of the iOS app. |
docs/manual/guide/12-export.org +11 −11
| @@ -1,6 +1,6 @@ | ||
| 1 | 1 | #+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. | |
| 4 | 4 | |
| 5 | 5 | * Exporting a file |
| 6 | 6 | |
| @@ -38,7 +38,7 @@ The Export menu offers HTML and Markdown. It is under More in the editor, and in | ||
| 38 | 38 | |
| 39 | 39 | * HTML export |
| 40 | 40 | |
| 41 | Orgstar 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=. | |
| 41 | orgstar 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=. | |
| 42 | 42 | |
| 43 | 43 | ** Title, author and date |
| 44 | 44 | |
| @@ -95,7 +95,7 @@ The built-in stylesheet is always included first. Other =#+HTML_…= keywords ar | ||
| 95 | 95 | |
| 96 | 96 | ** Math |
| 97 | 97 | |
| 98 | LaTeX 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. | |
| 98 | LaTeX 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. | |
| 99 | 99 | |
| 100 | 100 | ** Includes |
| 101 | 101 | |
| @@ -130,7 +130,7 @@ A file that cannot be read is replaced by an empty line. | ||
| 130 | 130 | | ={{{n}}}=, ={{{n(name)}}}= | A counter, increased at each use. =n(name,-)= repeats the current value; =n(name,5)= sets it to 5. | |
| 131 | 131 | | ={{{time(format)}}}= | The current time, formatted as =format-time-string= does. | |
| 132 | 132 | |
| 133 | Arguments 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. | |
| 133 | Arguments 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. | |
| 134 | 134 | |
| 135 | 135 | ** Footnotes |
| 136 | 136 | |
| @@ -152,9 +152,9 @@ Links to =.org= files point to the =.html= file of the same name. Links to headi | ||
| 152 | 152 | |
| 153 | 153 | ** Source blocks and their results |
| 154 | 154 | |
| 155 | A 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. | |
| 155 | A 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. | |
| 156 | 156 | |
| 157 | The 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. | |
| 157 | The 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. | |
| 158 | 158 | |
| 159 | 159 | | =:exports= | Exported | |
| 160 | 160 | |------------------+-------------------------------------------| |
| @@ -220,12 +220,12 @@ On the Mac, PDF, LaTeX, ODT and plain text exports are done by Emacs, with the = | ||
| 220 | 220 | | ODT | =org-odt-export-to-odt= | |
| 221 | 221 | | Plain text | =org-ascii-export-to-ascii= | |
| 222 | 222 | |
| 223 | Orgstar 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/". | |
| 223 | orgstar 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/". | |
| 224 | 224 | |
| 225 | 225 | What you need: |
| 226 | 226 | |
| 227 | 227 | - 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. | |
| 229 | 229 | |
| 230 | 230 | Things to know: |
| 231 | 231 | |
| @@ -236,7 +236,7 @@ Things to know: | ||
| 236 | 236 | - 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. |
| 237 | 237 | - If Emacs fails, the message area shows the last line of its error output. |
| 238 | 238 | |
| 239 | To use your own Emacs configuration, or formats Orgstar does not list, export from Emacs itself; see [[file:15-alongside-emacs.org][Alongside Emacs]]. | |
| 239 | To use your own Emacs configuration, or formats orgstar does not list, export from Emacs itself; see [[file:15-alongside-emacs.org][Alongside Emacs]]. | |
| 240 | 240 | |
| 241 | 241 | * Citations |
| 242 | 242 | |
| @@ -260,7 +260,7 @@ Each =#+bibliography:= line names one file, relative to the Org file, optionally | ||
| 260 | 260 | =#+cite_export: PROCESSOR [BIBLIOGRAPHY-STYLE [CITATION-STYLE]]=. |
| 261 | 261 | |
| 262 | 262 | - 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. | |
| 264 | 264 | - The citation style, which may include a variant (=text/bare=), is the default for citations that do not name one. |
| 265 | 265 | |
| 266 | 266 | ** Citation styles |
docs/manual/guide/13-configuration.org +37 −37
| @@ -4,16 +4,16 @@ | ||
| 4 | 4 | |
| 5 | 5 | * Where settings live |
| 6 | 6 | |
| 7 | Orgstar keeps its settings in a configuration folder: | |
| 7 | orgstar keeps its settings in a configuration folder: | |
| 8 | 8 | |
| 9 | 9 | - =$XDG_CONFIG_HOME/orgstar= when =XDG_CONFIG_HOME= is set and not empty, |
| 10 | 10 | - otherwise =~/.config/orgstar=. |
| 11 | 11 | |
| 12 | The 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. | |
| 12 | The 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. | |
| 13 | 13 | |
| 14 | 14 | The folder holds these files: |
| 15 | 15 | |
| 16 | | File | What it holds | Written by Orgstar | | |
| 16 | | File | What it holds | Written by orgstar | | |
| 17 | 17 | |----------------------+------------------------------------------------------------------+---------------------------------------| |
| 18 | 18 | | =config.toml= | Every setting of the Settings window, and the theme | Yes, when you change a setting | |
| 19 | 19 | | =keymap.toml= | Your key bindings, on top of the preset | Only by Import from Emacs | |
| @@ -21,20 +21,20 @@ The folder holds these files: | ||
| 21 | 21 | | =views.toml= | Saved agenda views | No | |
| 22 | 22 | | =default-theme.toml= | The default theme's colors, for reference | Yes, at every launch | |
| 23 | 23 | |
| 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. | |
| 25 | 25 | |
| 26 | When 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. | |
| 26 | When 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. | |
| 27 | 27 | |
| 28 | 28 | ** Opening config.toml |
| 29 | 29 | |
| 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. | |
| 32 | 32 | |
| 33 | 33 | Saving the buffer applies the file, the same as saving it from another editor. |
| 34 | 34 | |
| 35 | 35 | ** Problems in the files |
| 36 | 36 | |
| 37 | If =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: | |
| 37 | If =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: | |
| 38 | 38 | |
| 39 | 39 | - =config.toml: unknown setting editor.foo= |
| 40 | 40 | - =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 | ||
| 45 | 45 | |
| 46 | 46 | * The Settings window |
| 47 | 47 | |
| 48 | Open 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. | |
| 48 | Open 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. | |
| 49 | 49 | |
| 50 | 50 | ** General |
| 51 | 51 | |
| 52 | 52 | | Control | Choices | Default | Key | |
| 53 | 53 | |--------------------------------------------+------------------------------------------------------------------------------+---------------------------------+------------------| |
| 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 | | | | |
| 55 | 55 | | config.toml: Open with Default App | Opens the file in the app macOS uses for =.toml= | | | |
| 56 | 56 | | config.toml: Show in Finder | Selects the file in Finder | | | |
| 57 | 57 | | 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 | ||
| 78 | 78 | | Entries can't be done before their TODO children (org-enforce-todo-dependencies) | On or off | Off | =org-enforce-todo-dependencies= | |
| 79 | 79 | | Entries can't be done with unchecked boxes (org-enforce-todo-checkbox-dependencies) | On or off | Off | =org-enforce-todo-checkbox-dependencies= | |
| 80 | 80 | |
| 81 | The 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. | |
| 81 | The two "Emacs hides" and "Emacs shows" switches describe your Emacs, not orgstar's display. Tag alignment, table alignment and =M-q= measure text the way your Emacs displays it, so a file edited in both keeps the same layout. Set them to match your Emacs configuration. They also control whether orgstar hides markers and shows entities when markup is hidden. | |
| 82 | 82 | |
| 83 | 83 | The Tags picker offers two values. =config.toml= accepts any integer; with a value other than =-77= or =0= the picker shows no selection. |
| 84 | 84 | |
| 85 | 85 | The long-lines switch applies to files as they open; View ▸ Truncate or Wrap Long Lines switches the file in front. |
| 86 | 86 | |
| 87 | Default 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. | |
| 87 | Default 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. | |
| 88 | 88 | |
| 89 | 89 | The two dependency switches are described under Dependencies in [[file:05-todos-and-tags.org][TODOs and tags]]. |
| 90 | 90 | |
| @@ -120,7 +120,7 @@ See Themes and Fonts below. | ||
| 120 | 120 | |
| 121 | 121 | An entry's =APPT_WARNTIME= property overrides the lead time. The agenda is covered in [[file:07-agenda.org][The agenda]]. |
| 122 | 122 | |
| 123 | The 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. | |
| 123 | The 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. | |
| 124 | 124 | |
| 125 | 125 | Turning 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]]. |
| 126 | 126 | |
| @@ -177,8 +177,8 @@ A key you remove from the file goes back to its default. A key that isn't in the | ||
| 177 | 177 | | =org-insert-heading-respect-content= | boolean | =true= | =M-RET= adds the new heading after the current subtree. Mirrors =org-insert-heading-respect-content=. | |
| 178 | 178 | | =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=. | |
| 179 | 179 | | =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=. | | |
| 182 | 182 | | =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=. | |
| 183 | 183 | | =org-log-done= | string | ="nil"= | =nil=, =time= (a =CLOSED= timestamp) or =note= (=CLOSED= and a note). Mirrors =org-log-done=. | |
| 184 | 184 | | =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 | ||
| 196 | 196 | | =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=. | |
| 197 | 197 | | =org-cycle-hide-drawer-startup= | boolean | =true= | Fold drawers when a file opens. =#+STARTUP: hidedrawers= / =nohidedrawers= override it. Mirrors =org-cycle-hide-drawer-startup=. | |
| 198 | 198 | | =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. | | |
| 200 | 200 | | =org-agenda-span= | integer | =10= | Days the agenda shows. Mirrors =org-agenda-span=. | |
| 201 | 201 | | =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=. | |
| 202 | 202 | | =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 | ||
| 206 | 206 | | =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=. | |
| 207 | 207 | | =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=. | |
| 208 | 208 | | =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=. | | |
| 211 | 211 | |
| 212 | 212 | The default =org-todo-keywords= is the first sequence of Doom Emacs's default: |
| 213 | 213 | |
| @@ -289,11 +289,11 @@ save = "explicit" | ||
| 289 | 289 | |
| 290 | 290 | ** Names from earlier versions |
| 291 | 291 | |
| 292 | Earlier 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. | |
| 292 | Earlier 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. | |
| 293 | 293 | |
| 294 | 294 | * keymap.toml and capture.toml |
| 295 | 295 | |
| 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]]. | |
| 297 | 297 | |
| 298 | 298 | #+BEGIN_SRC toml |
| 299 | 299 | [[bind]] |
| @@ -301,15 +301,15 @@ keys = "C-c a" | ||
| 301 | 301 | command = "app.agenda" |
| 302 | 302 | #+END_SRC |
| 303 | 303 | |
| 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]]. | |
| 305 | 305 | |
| 306 | 306 | =views.toml= holds =[[view]]= tables for the agenda; see [[file:07-agenda.org][The agenda]]. |
| 307 | 307 | |
| 308 | 308 | * In-file settings |
| 309 | 309 | |
| 310 | Keyword 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. | |
| 310 | Keyword 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. | |
| 311 | 311 | |
| 312 | ** Keywords Orgstar reads | |
| 312 | ** Keywords orgstar reads | |
| 313 | 313 | |
| 314 | 314 | | Keyword | Effect | |
| 315 | 315 | |-----------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------| |
| @@ -361,7 +361,7 @@ After you change a keyword line, press =C-c C-c= on it to read the file's settin | ||
| 361 | 361 | | =logredeadline=, =lognoteredeadline=, =nologredeadline= | The same, when a deadline changes. | |
| 362 | 362 | | =logdrawer=, =nologdrawer= | Notes go in =LOGBOOK=, or under the heading. | |
| 363 | 363 | |
| 364 | After the startup visibility, Orgstar applies each heading's =VISIBILITY= property and folds subtrees tagged =ARCHIVE=, unless =showeverything= is set. | |
| 364 | After the startup visibility, orgstar applies each heading's =VISIBILITY= property and folds subtrees tagged =ARCHIVE=, unless =showeverything= is set. | |
| 365 | 365 | |
| 366 | 366 | Completion 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. |
| 367 | 367 | |
| @@ -374,7 +374,7 @@ Completion offers every option of =org-startup-options=. Options not in the tabl | ||
| 374 | 374 | - URLs (anything starting with =scheme://=) aren't fetched. |
| 375 | 375 | - A setup file that can't be read, or isn't UTF-8, is skipped without a message. |
| 376 | 376 | |
| 377 | Keywords 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. | |
| 377 | Keywords 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. | |
| 378 | 378 | |
| 379 | 379 | * Import from Emacs |
| 380 | 380 | |
| @@ -383,8 +383,8 @@ Import from Emacs reads your Emacs or Doom Emacs configuration and offers to car | ||
| 383 | 383 | ** Running it |
| 384 | 384 | |
| 385 | 385 | 1. Open Settings ▸ General and click Import from Emacs…, or run Import from Emacs… from the command palette (=⇧⌘P=). |
| 386 | 2. 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. | |
| 387 | 3. 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. | |
| 386 | 2. 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. | |
| 387 | 3. 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. | |
| 388 | 388 | 4. 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. |
| 389 | 389 | 5. Click Import. The sheet then summarizes what was imported and any problems. |
| 390 | 390 | |
| @@ -395,21 +395,21 @@ What Import does with each kind of item: | ||
| 395 | 395 | - Capture templates are appended to =capture.toml=, except those whose key is already in the file. |
| 396 | 396 | - 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. |
| 397 | 397 | |
| 398 | The 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. | |
| 398 | The 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. | |
| 399 | 399 | |
| 400 | 400 | A literate configuration (=config.org=) isn't read. Point Choose… at the =config.el= it tangles to. |
| 401 | 401 | |
| 402 | 402 | ** Doom Emacs |
| 403 | 403 | |
| 404 | A 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. | |
| 404 | A 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. | |
| 405 | 405 | |
| 406 | 406 | A Doom configuration, or any configuration that enables =evil=, adds =keymap = "doom"=. |
| 407 | 407 | |
| 408 | 408 | ** What it reads |
| 409 | 409 | |
| 410 | Orgstar reads the configuration as Lisp data; it never runs it. It looks at these forms: | |
| 410 | orgstar reads the configuration as Lisp data; it never runs it. It looks at these forms: | |
| 411 | 411 | |
| 412 | | Form | What Orgstar takes | | |
| 412 | | Form | What orgstar takes | | |
| 413 | 413 | |----------------------------------------------------------------------+---------------------------------------------------------------------------------| |
| 414 | 414 | | =setq=, =setq-default=, =setq!=, =setopt=, =csetq= | Each variable and value | |
| 415 | 415 | | =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 | ||
| 423 | 423 | |
| 424 | 424 | When 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. |
| 425 | 425 | |
| 426 | Orgstar 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. | |
| 426 | orgstar 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. | |
| 427 | 427 | |
| 428 | 428 | Only 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. |
| 429 | 429 | |
| @@ -448,7 +448,7 @@ Only variables whose names start with =org-=, =appt-=, =display-line-numbers=, = | ||
| 448 | 448 | | =org-agenda-files= | A folder for each entry; for a =.org= file, its folder | |
| 449 | 449 | | =org-capture-templates= | Templates for =capture.toml=; see below | |
| 450 | 450 | | =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 | | |
| 452 | 452 | | =doom-theme= | Not imported: set colors under =[theme]= | |
| 453 | 453 | | =evil-mode= in use, or Doom | =keymap = "doom"= | |
| 454 | 454 | |
| @@ -456,7 +456,7 @@ Any other =org-= or =appt-= variable is listed as having no equivalent. | ||
| 456 | 456 | |
| 457 | 457 | Capture 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. |
| 458 | 458 | |
| 459 | Key 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. | |
| 459 | Key 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. | |
| 460 | 460 | |
| 461 | 461 | ** Limits of the Lisp reader |
| 462 | 462 | |
| @@ -467,7 +467,7 @@ Key bindings are imported when the command is one Orgstar has a counterpart for, | ||
| 467 | 467 | |
| 468 | 468 | * Themes |
| 469 | 469 | |
| 470 | Orgstar 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. | |
| 470 | orgstar 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. | |
| 471 | 471 | |
| 472 | 472 | Colors are strings in the form ="#rrggbb"= or ="#rrggbbaa"=. They go in these tables: |
| 473 | 473 | |
| @@ -520,7 +520,7 @@ To keep a theme in its own file, put it in the configuration folder with the sam | ||
| 520 | 520 | theme-file = "solarized.toml" |
| 521 | 521 | #+END_SRC |
| 522 | 522 | |
| 523 | The 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. | |
| 523 | The 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. | |
| 524 | 524 | |
| 525 | 525 | ** Color keys |
| 526 | 526 | |
| @@ -593,7 +593,7 @@ An unknown color key, a value that isn't a color, or an unknown table such as =[ | ||
| 593 | 593 | |
| 594 | 594 | * Appearance |
| 595 | 595 | |
| 596 | Orgstar 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]=. | |
| 596 | orgstar 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]=. | |
| 597 | 597 | |
| 598 | 598 | * Fonts |
| 599 | 599 | |
docs/manual/guide/14-ios.org +21 −21
| @@ -1,6 +1,6 @@ | ||
| 1 | 1 | #+TITLE: iPhone and iPad |
| 2 | 2 | #+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. | |
| 4 | 4 | |
| 5 | 5 | * Overview |
| 6 | 6 | |
| @@ -15,16 +15,16 @@ Files open in a reader first. The Edit button in the reader opens the editor. Bo | ||
| 15 | 15 | |
| 16 | 16 | * Folders and file access |
| 17 | 17 | |
| 18 | Orgstar 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). | |
| 18 | orgstar 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). | |
| 19 | 19 | |
| 20 | 20 | 1. Open the Folders tab and tap Add Folder (the folder icon with a plus). |
| 21 | 21 | 2. Choose a folder in the picker. |
| 22 | 22 | |
| 23 | Orgstar 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. | |
| 23 | orgstar 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. | |
| 24 | 24 | |
| 25 | Files 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. | |
| 25 | Files 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. | |
| 26 | 26 | |
| 27 | Orgstar 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]]. | |
| 27 | orgstar 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]]. | |
| 28 | 28 | |
| 29 | 29 | There is no way to open a single file from the Files app. Add the folder that contains it. |
| 30 | 30 | |
| @@ -173,7 +173,7 @@ See [[file:07-agenda.org][The agenda]] for the rows, the views and matches, and | ||
| 173 | 173 | |
| 174 | 174 | ** Widgets |
| 175 | 175 | |
| 176 | Orgstar 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. | |
| 176 | orgstar 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. | |
| 177 | 177 | |
| 178 | 178 | | Widget | Sizes | Shows | |
| 179 | 179 | |--------+----------------------------------------------+---------------------------------------------------------------------------------------------| |
| @@ -184,13 +184,13 @@ What's left of today is today's entries and calendar events that aren't done, wi | ||
| 184 | 184 | |
| 185 | 185 | Tapping 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. |
| 186 | 186 | |
| 187 | Widgets 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. | |
| 187 | Widgets 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. | |
| 188 | 188 | |
| 189 | 189 | ** The clock's Live Activity |
| 190 | 190 | |
| 191 | 191 | While 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. |
| 192 | 192 | |
| 193 | The 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). | |
| 193 | The 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). | |
| 194 | 194 | |
| 195 | 195 | ** orgstar:// links |
| 196 | 196 | |
| @@ -217,17 +217,17 @@ Templates come from =capture.toml= in the configuration folder (see Settings bel | ||
| 217 | 217 | |
| 218 | 218 | ** From the share sheet |
| 219 | 219 | |
| 220 | Orgstar appears in the share sheet of other apps for a web link or text. | |
| 220 | orgstar appears in the share sheet of other apps for a web link or text. | |
| 221 | 221 | |
| 222 | 1. Share a page or text and choose Orgstar. | |
| 222 | 1. Share a page or text and choose orgstar. | |
| 223 | 223 | 2. Choose a template, edit the link's title, and add text. |
| 224 | 224 | 3. Tap Capture. |
| 225 | 225 | |
| 226 | The 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. | |
| 226 | The 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. | |
| 227 | 227 | |
| 228 | 228 | ** From Shortcuts |
| 229 | 229 | |
| 230 | Shortcuts has a Capture to Orgstar action, and Siri responds to "Capture to Orgstar". The action takes: | |
| 230 | Shortcuts has a Capture to orgstar action, and Siri responds to "Capture to orgstar". The action takes: | |
| 231 | 231 | |
| 232 | 232 | - Text :: the text to capture, available to the template as =%i=. |
| 233 | 233 | - 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]]. | ||
| 258 | 258 | |
| 259 | 259 | * Reminders |
| 260 | 260 | |
| 261 | With =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. | |
| 261 | With =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. | |
| 262 | 262 | |
| 263 | iOS 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. | |
| 263 | iOS 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. | |
| 264 | 264 | |
| 265 | 265 | * Export |
| 266 | 266 | |
| @@ -272,12 +272,12 @@ PDF, ODT, LaTeX and plain-text export need Emacs and aren't available on iOS. Se | ||
| 272 | 272 | |
| 273 | 273 | =C-c C-c= on a source block asks whether to run it (yes, no, or always for this block), as on the Mac. |
| 274 | 274 | |
| 275 | On iOS, only Emacs Lisp blocks run. Orgstar evaluates them with its own Emacs Lisp interpreter, which covers a subset of the language. Other results: | |
| 275 | On iOS, only Emacs Lisp blocks run. orgstar evaluates them with its own Emacs Lisp interpreter, which covers a subset of the language. Other results: | |
| 276 | 276 | |
| 277 | 277 | - A block in another language: "/language/ blocks need the Mac to run." |
| 278 | 278 | - Emacs Lisp the interpreter doesn't have: "This block uses Emacs Lisp that runs only in Emacs, on the Mac." |
| 279 | 279 | |
| 280 | Table 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. | |
| 280 | Table 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. | |
| 281 | 281 | |
| 282 | 282 | Tangling (=C-c C-v t=, in Commands) works on iOS and writes the tangled files next to the org file, or where =:tangle= says. |
| 283 | 283 | |
| @@ -285,7 +285,7 @@ See [[file:11-code-blocks.org][Code blocks]] and [[file:10-tables.org][Tables]]. | ||
| 285 | 285 | |
| 286 | 286 | * Conflicts and versions |
| 287 | 287 | |
| 288 | When 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: | |
| 288 | When 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: | |
| 289 | 289 | |
| 290 | 290 | - Keep Mine :: write your version over the disk version. |
| 291 | 291 | - 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 | ||
| 305 | 305 | The 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. |
| 306 | 306 | |
| 307 | 307 | 1. Open the Settings tab. |
| 308 | 2. 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. | |
| 308 | 2. 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. | |
| 309 | 309 | |
| 310 | 310 | Changes 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. |
| 311 | 311 | |
| @@ -318,7 +318,7 @@ The Agenda, TODO Dependencies and Calendar sections are the only places the app | ||
| 318 | 318 | - Show days without entries :: turns =org-agenda-show-all-dates= on or off. |
| 319 | 319 | - Blocked entries :: Dimmed, Hidden or Shown as usual (=org-agenda-dim-blocked-tasks=). |
| 320 | 320 | - 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. | |
| 322 | 322 | - 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. |
| 323 | 323 | |
| 324 | 324 | These 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: | ||
| 345 | 345 | |
| 346 | 346 | * Spotlight and Quick Look |
| 347 | 347 | |
| 348 | Orgstar 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. | |
| 348 | orgstar 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. | |
| 349 | 349 | |
| 350 | 350 | Quick Look in the Files app shows org files as the HTML export renders them. |
| 351 | 351 | |
| 352 | 352 | * What the Mac has that iOS doesn't |
| 353 | 353 | |
| 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. | |
| 355 | 355 | - PDF, ODT, LaTeX and plain-text export. |
| 356 | 356 | - The Mac and Doom keymaps, Vim keys, and =keymap.toml=. |
| 357 | 357 | - Idle detection while a clock runs. |
docs/manual/guide/15-alongside-emacs.org +41 −41
| @@ -1,31 +1,31 @@ | ||
| 1 | 1 | #+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. | |
| 4 | 4 | |
| 5 | * How Orgstar treats files | |
| 5 | * How orgstar treats files | |
| 6 | 6 | |
| 7 | 7 | ** Bytes on disk |
| 8 | 8 | |
| 9 | Orgstar 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: | |
| 9 | orgstar 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: | |
| 10 | 10 | |
| 11 | 11 | - A file with no changes is never rewritten. |
| 12 | 12 | - 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. | |
| 14 | 14 | |
| 15 | 15 | ** Encodings |
| 16 | 16 | |
| 17 | Orgstar edits UTF-8 files, with or without a byte order mark. A file that starts with a BOM keeps it. | |
| 17 | orgstar edits UTF-8 files, with or without a byte order mark. A file that starts with a BOM keeps it. | |
| 18 | 18 | |
| 19 | A 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. | |
| 19 | A 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. | |
| 20 | 20 | |
| 21 | 21 | ** How a save works |
| 22 | 22 | |
| 23 | 23 | Saving 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: |
| 24 | 24 | |
| 25 | 1. 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). | |
| 25 | 1. 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). | |
| 26 | 26 | 2. Read the file again. If it changed in the meantime, start over, up to three times. |
| 27 | 27 | 3. 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. |
| 28 | 4. 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. | |
| 28 | 4. 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. | |
| 29 | 29 | |
| 30 | 30 | Emacs 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. |
| 31 | 31 | |
| @@ -33,19 +33,19 @@ If the file keeps changing through all three attempts, the save fails with an er | ||
| 33 | 33 | |
| 34 | 34 | ** Automatic and explicit saving |
| 35 | 35 | |
| 36 | With =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. | |
| 36 | With =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. | |
| 37 | 37 | |
| 38 | * Changes made outside Orgstar | |
| 38 | * Changes made outside orgstar | |
| 39 | 39 | |
| 40 | Orgstar 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: | |
| 40 | orgstar 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: | |
| 41 | 41 | |
| 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. | |
| 44 | 44 | - If the changes conflict, nothing is saved and the conflict sheet opens. |
| 45 | 45 | |
| 46 | The 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. | |
| 46 | The 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. | |
| 47 | 47 | |
| 48 | After a reload or merge, Orgstar also reads the file's setup files again. | |
| 48 | After a reload or merge, orgstar also reads the file's setup files again. | |
| 49 | 49 | |
| 50 | 50 | ** The conflict sheet |
| 51 | 51 | |
| @@ -64,11 +64,11 @@ On the Mac, Revert to File on Disk (in the command palette) loads the disk versi | ||
| 64 | 64 | |
| 65 | 65 | ** iCloud Drive |
| 66 | 66 | |
| 67 | Orgstar 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. | |
| 67 | orgstar 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. | |
| 68 | 68 | |
| 69 | 69 | ** Syncthing |
| 70 | 70 | |
| 71 | Syncthing writes files without file coordination. Orgstar sees its changes through file watching and merges them as described above. | |
| 71 | Syncthing writes files without file coordination. orgstar sees its changes through file watching and merges them as described above. | |
| 72 | 72 | |
| 73 | 73 | - Syncthing's temporary files (=.syncthing.*=) are ignored. |
| 74 | 74 | - 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 | ||
| 86 | 86 | |
| 87 | 87 | ** Dropbox and other tools |
| 88 | 88 | |
| 89 | Any 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. | |
| 89 | Any 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. | |
| 90 | 90 | |
| 91 | ** Files Orgstar ignores | |
| 91 | ** Files orgstar ignores | |
| 92 | 92 | |
| 93 | When 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. | |
| 93 | When 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. | |
| 94 | 94 | |
| 95 | 95 | * Recovery versions |
| 96 | 96 | |
| @@ -104,7 +104,7 @@ Each file has a subfolder named from a hash of its path, holding its last 20 kep | ||
| 104 | 104 | | Label | Kept when | |
| 105 | 105 | |-----------------+-------------------------------------------------------------------------------| |
| 106 | 106 | | =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 | | |
| 108 | 108 | | =sync-conflict= | A Syncthing conflict copy was resolved | |
| 109 | 109 | |
| 110 | 110 | Recovery 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 | ||
| 116 | 116 | | Feature | What runs | |
| 117 | 117 | |----------------------------------------------------------------+-----------------------------------------------------------------------------------------------| |
| 118 | 118 | | 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) | | |
| 121 | 121 | | 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= | |
| 122 | 122 | |
| 123 | 123 | HTML 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]]. |
| 124 | 124 | |
| 125 | 125 | ** How Emacs is found |
| 126 | 126 | |
| 127 | Orgstar uses the first of these that is an executable file: | |
| 127 | orgstar uses the first of these that is an executable file: | |
| 128 | 128 | |
| 129 | 129 | 1. the path in the environment variable =ORGSTAR_EMACS=, |
| 130 | 130 | 2. =/opt/homebrew/bin/emacs=, |
| @@ -133,52 +133,52 @@ Orgstar uses the first of these that is an executable file: | ||
| 133 | 133 | 5. =/run/current-system/sw/bin/emacs=, |
| 134 | 134 | 6. =/usr/bin/emacs=. |
| 135 | 135 | |
| 136 | An 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. | |
| 136 | An 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. | |
| 137 | 137 | |
| 138 | 138 | ** What Emacs sees |
| 139 | 139 | |
| 140 | 140 | - 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. | |
| 142 | 142 | - File-local variables marked safe apply (=enable-local-variables= is =:safe=). |
| 143 | 143 | - 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. | |
| 145 | 145 | - PDF export needs a LaTeX installation that Org's LaTeX exporter can run. |
| 146 | 146 | - 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. |
| 147 | 147 | |
| 148 | 148 | * Quick Look |
| 149 | 149 | |
| 150 | Orgstar 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. | |
| 150 | orgstar 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. | |
| 151 | 151 | |
| 152 | Inside 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. | |
| 152 | Inside 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. | |
| 153 | 153 | |
| 154 | 154 | * Spotlight |
| 155 | 155 | |
| 156 | On 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. | |
| 156 | On 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. | |
| 157 | 157 | |
| 158 | 158 | On iOS, the app adds the files in your folders to Spotlight itself; see [[file:14-ios.org][iPhone and iPad]]. |
| 159 | 159 | |
| 160 | 160 | * Finder |
| 161 | 161 | |
| 162 | Orgstar 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. | |
| 162 | orgstar 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. | |
| 163 | 163 | |
| 164 | 164 | * org-protocol and Shortcuts |
| 165 | 165 | |
| 166 | Orgstar 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: | |
| 166 | orgstar 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: | |
| 167 | 167 | |
| 168 | 168 | - =org-protocol://capture= opens Capture with the link's template, URL, title and body. |
| 169 | 169 | - =org-protocol://store-link= stores the link for =C-c C-l= and copies it to the clipboard. |
| 170 | 170 | |
| 171 | Other sub-protocols, such as =open-source=, show "Orgstar handles org-protocol capture and store-link". | |
| 171 | Other sub-protocols, such as =open-source=, show "orgstar handles org-protocol capture and store-link". | |
| 172 | 172 | |
| 173 | The 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]]. | |
| 173 | The 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]]. | |
| 174 | 174 | |
| 175 | 175 | * Compatibility notes |
| 176 | 176 | |
| 177 | 177 | ** Defaults that differ from Emacs |
| 178 | 178 | |
| 179 | Orgstar'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]]. | |
| 179 | orgstar'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]]. | |
| 180 | 180 | |
| 181 | | Setting | Orgstar default | Plain Emacs default | | |
| 181 | | Setting | orgstar default | Plain Emacs default | | |
| 182 | 182 | |--------------------------------------+-------------------------------------+---------------------------------| |
| 183 | 183 | | =fill-column= | 80 | 70 | |
| 184 | 184 | | =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 | ||
| 194 | 194 | | =org-agenda-start-day= | ="+0d"= | today | |
| 195 | 195 | | =org-agenda-show-all-dates= | =false= | =t= | |
| 196 | 196 | |
| 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. | |
| 198 | 198 | |
| 199 | 199 | These 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). |
| 200 | 200 | |
| @@ -209,7 +209,7 @@ The agenda selects the same entries as Org's, but shows them its own way (see [[ | ||
| 209 | 209 | |
| 210 | 210 | ** Known differences from Emacs Org |
| 211 | 211 | |
| 212 | Orgstar refuses some things with a message rather than doing something different from Emacs. These are the ones found in the current version. | |
| 212 | orgstar refuses some things with a message rather than doing something different from Emacs. These are the ones found in the current version. | |
| 213 | 213 | |
| 214 | 214 | Code blocks (see [[file:11-code-blocks.org][Code blocks]]): |
| 215 | 215 | |
| @@ -218,7 +218,7 @@ Code blocks (see [[file:11-code-blocks.org][Code blocks]]): | ||
| 218 | 218 | - =:session= is supported only for shells and Python. C, C++, D, Java, Fortran and Clojure ignore it, as in Org. |
| 219 | 219 | - Clojure runs with babashka or the Clojure CLI only; other =:backend= values are refused. |
| 220 | 220 | - =: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." | |
| 222 | 222 | - Noweb references that run a block aren't supported. |
| 223 | 223 | - Tangling refuses =:var= that would run a block, and tables and lists in =:var= for some languages. |
| 224 | 224 | - On iOS, only Emacs Lisp blocks run. |
| @@ -235,7 +235,7 @@ Capture templates (see [[file:08-capture.org][Capture]]): | ||
| 235 | 235 | |
| 236 | 236 | Tables and dynamic blocks (see [[file:10-tables.org][Tables]] and [[file:06-dates-and-clocking.org][Dates and clocking]]): |
| 237 | 237 | |
| 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. | |
| 239 | 239 | - Clock tables support the scopes =nil=, =file=, =subtree= and =treeN=; other scopes, =:match= and =:step= aren't supported. |
| 240 | 240 | - Dynamic blocks other than =clocktable= and =columnview= aren't supported. Column views of other files aren't supported. |
| 241 | 241 | |
docs/manual/index.org +5 −5
| @@ -1,9 +1,9 @@ | ||
| 1 | #+TITLE: Orgstar | |
| 1 | #+TITLE: orgstar | |
| 2 | 2 | #+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. | |
| 4 | 4 | #+OPTIONS: toc:nil |
| 5 | 5 | |
| 6 | Orgstar is an editor for [[https://orgmode.org][Org mode]] files on the Mac, with an app for | |
| 6 | orgstar is an editor for [[https://orgmode.org][Org mode]] files on the Mac, with an app for | |
| 7 | 7 | iPhone and iPad. It reads and writes the same plain-text files Emacs does, behaves the |
| 8 | 8 | way Org does where the two overlap, and leaves every byte you didn't change as it was. |
| 9 | 9 | |
| @@ -39,10 +39,10 @@ reminders, export and tangling. | ||
| 39 | 39 | |
| 40 | 40 | * Principles |
| 41 | 41 | |
| 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 | |
| 43 | 43 | keeps an index for search and the agenda, rebuilt from the files whenever they change. |
| 44 | 44 | - *Only your edits are written.* Saving rewrites the bytes you changed and nothing |
| 45 | 45 | else: indentation, line endings, encoding marks and unusual spacing elsewhere stay. |
| 46 | 46 | - *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 | |
| 48 | 48 | Org would, it says so and leaves the file alone rather than guessing. |
docs/manual/install.org +6 −6
| @@ -1,6 +1,6 @@ | ||
| 1 | 1 | #+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. | |
| 4 | 4 | |
| 5 | 5 | * Requirements |
| 6 | 6 | |
| @@ -17,11 +17,11 @@ | ||
| 17 | 17 | git clone https://gitbay.org/krz/orgstar.git |
| 18 | 18 | cd orgstar |
| 19 | 19 | scripts/build-app.sh |
| 20 | open .build/app/Orgstar.app | |
| 20 | open .build/app/orgstar.app | |
| 21 | 21 | #+END_SRC |
| 22 | 22 | |
| 23 | 23 | =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 | |
| 25 | 25 | for use on your own Mac. Move it to =/Applications= to keep it. Pass a version number |
| 26 | 26 | as the first argument to stamp the bundle (=scripts/build-app.sh 1.0.0=); the default |
| 27 | 27 | is =0.1.0=. |
| @@ -45,7 +45,7 @@ For the Simulator without opening Xcode (this build has no widgets): | ||
| 45 | 45 | |
| 46 | 46 | #+BEGIN_SRC sh |
| 47 | 47 | scripts/build-ios-app.sh |
| 48 | xcrun simctl install booted .build/ios-app/Orgstar.app | |
| 48 | xcrun simctl install booted .build/ios-app/orgstar.app | |
| 49 | 49 | #+END_SRC |
| 50 | 50 | |
| 51 | 51 | See [[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. | ||
| 63 | 63 | |
| 64 | 64 | * Uninstalling |
| 65 | 65 | |
| 66 | Delete =Orgstar.app=. To remove your settings as well, delete =~/.config/orgstar/=. | |
| 66 | Delete =orgstar.app=. To remove your settings as well, delete =~/.config/orgstar/=. | |
| 67 | 67 | Your 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 | |
| 2 | 2 | # scripts/publish-docs.sh. |
| 3 | 3 | |
| 4 | 4 | [site] |
| 5 | title = "Orgstar" | |
| 5 | title = "orgstar" | |
| 6 | 6 | description = "A native macOS and iOS editor for org-mode files." |
| 7 | 7 | language = "en" |
| 8 | 8 | base_url = "" |
docs/manual/quickstart.org +2 −2
| @@ -5,7 +5,7 @@ | ||
| 5 | 5 | * Add a folder |
| 6 | 6 | |
| 7 | 7 | Choose File ▸ Add Folder… (=⇧⌘O=) and pick the folder that holds your org files. |
| 8 | It appears in the sidebar, and Orgstar indexes every org file under it for search, | |
| 8 | It appears in the sidebar, and orgstar indexes every org file under it for search, | |
| 9 | 9 | the agenda and links. You can add several folders. Nothing is copied or moved. |
| 10 | 10 | |
| 11 | 11 | If 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. | ||
| 13 | 13 | |
| 14 | 14 | * Choose your keys |
| 15 | 15 | |
| 16 | Open Orgstar ▸ Settings… (=⌘,=) and pick *Keys* under General: | |
| 16 | Open orgstar ▸ Settings… (=⌘,=) and pick *Keys* under General: | |
| 17 | 17 | |
| 18 | 18 | - *Emacs*: Org's own bindings, =C-c C-t= and friends. The default. |
| 19 | 19 | - *Mac*: standard Mac editing keys, with Org commands on =⌃⌘= combinations. |
docs/manual/templates/base.html +1 −1
| @@ -49,7 +49,7 @@ | ||
| 49 | 49 | {%- endif %} |
| 50 | 50 | {% block content %}{{ body | safe }}{% endblock %}</main> |
| 51 | 51 | <footer class="site"> |
| 52 | Orgstar is 0BSD-licensed. Source: <a href="https://gitbay.org/krz/orgstar">gitbay.org/krz/orgstar</a>. | |
| 52 | orgstar is 0BSD-licensed. Source: <a href="https://gitbay.org/krz/orgstar">gitbay.org/krz/orgstar</a>. | |
| 53 | 53 | </footer> |
| 54 | 54 | </body> |
| 55 | 55 | </html> |
ios/Orgstar.xcodeproj/project.pbxproj −4
| @@ -481,8 +481,6 @@ | ||
| 481 | 481 | DEVELOPMENT_TEAM = ZCNAX3VL9D; |
| 482 | 482 | GENERATE_INFOPLIST_FILE = NO; |
| 483 | 483 | INFOPLIST_FILE = Orgstar/Info.plist; |
| 484 | INFOPLIST_KEY_CFBundleDisplayName = orgstar; | |
| 485 | INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.productivity"; | |
| 486 | 484 | LD_RUNPATH_SEARCH_PATHS = ( |
| 487 | 485 | "$(inherited)", |
| 488 | 486 | "@executable_path/Frameworks", |
| @@ -565,8 +563,6 @@ | ||
| 565 | 563 | DEVELOPMENT_TEAM = ZCNAX3VL9D; |
| 566 | 564 | GENERATE_INFOPLIST_FILE = NO; |
| 567 | 565 | INFOPLIST_FILE = Orgstar/Info.plist; |
| 568 | INFOPLIST_KEY_CFBundleDisplayName = orgstar; | |
| 569 | INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.productivity"; | |
| 570 | 566 | LD_RUNPATH_SEARCH_PATHS = ( |
| 571 | 567 | "$(inherited)", |
| 572 | 568 | "@executable_path/Frameworks", |
ios/Orgstar/Info.plist +5 −3
| @@ -3,13 +3,15 @@ | ||
| 3 | 3 | <plist version="1.0"> |
| 4 | 4 | <dict> |
| 5 | 5 | <key>CFBundleDisplayName</key> |
| 6 | <string>Orgstar</string> | |
| 6 | <string>orgstar</string> | |
| 7 | 7 | <key>CFBundleExecutable</key> |
| 8 | 8 | <string>$(EXECUTABLE_NAME)</string> |
| 9 | 9 | <key>CFBundleIdentifier</key> |
| 10 | 10 | <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> |
| 11 | <key>LSApplicationCategoryType</key> | |
| 12 | <string>public.app-category.productivity</string> | |
| 11 | 13 | <key>CFBundleName</key> |
| 12 | <string>Orgstar</string> | |
| 14 | <string>orgstar</string> | |
| 13 | 15 | <key>CFBundlePackageType</key> |
| 14 | 16 | <string>APPL</string> |
| 15 | 17 | <key>CFBundleShortVersionString</key> |
| @@ -36,7 +38,7 @@ | ||
| 36 | 38 | <key>CFBundleVersion</key> |
| 37 | 39 | <string>$(CURRENT_PROJECT_VERSION)</string> |
| 38 | 40 | <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> | |
| 40 | 42 | <key>NSSupportsLiveActivities</key> |
| 41 | 43 | <true/> |
| 42 | 44 | <key>UIApplicationSceneManifest</key> |
ios/OrgstarQuickLook/Info.plist +1 −1
| @@ -7,7 +7,7 @@ | ||
| 7 | 7 | <key>CFBundleName</key> |
| 8 | 8 | <string>$(PRODUCT_NAME)</string> |
| 9 | 9 | <key>CFBundleDisplayName</key> |
| 10 | <string>Orgstar</string> | |
| 10 | <string>orgstar</string> | |
| 11 | 11 | <key>CFBundleExecutable</key> |
| 12 | 12 | <string>$(EXECUTABLE_NAME)</string> |
| 13 | 13 | <key>CFBundlePackageType</key> |
ios/OrgstarShare/Info.plist +1 −1
| @@ -7,7 +7,7 @@ | ||
| 7 | 7 | <key>CFBundleName</key> |
| 8 | 8 | <string>$(PRODUCT_NAME)</string> |
| 9 | 9 | <key>CFBundleDisplayName</key> |
| 10 | <string>Orgstar</string> | |
| 10 | <string>orgstar</string> | |
| 11 | 11 | <key>CFBundleExecutable</key> |
| 12 | 12 | <string>$(EXECUTABLE_NAME)</string> |
| 13 | 13 | <key>CFBundlePackageType</key> |
ios/OrgstarWidgets/Info.plist +1 −1
| @@ -7,7 +7,7 @@ | ||
| 7 | 7 | <key>CFBundleName</key> |
| 8 | 8 | <string>$(PRODUCT_NAME)</string> |
| 9 | 9 | <key>CFBundleDisplayName</key> |
| 10 | <string>Orgstar</string> | |
| 10 | <string>orgstar</string> | |
| 11 | 11 | <key>CFBundleExecutable</key> |
| 12 | 12 | <string>$(EXECUTABLE_NAME)</string> |
| 13 | 13 | <key>CFBundlePackageType</key> |
scripts/build-app.sh +5 −5
| @@ -1,12 +1,12 @@ | ||
| 1 | 1 | #!/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 | |
| 3 | 3 | # icon is drawn by scripts/make-icon.swift. |
| 4 | 4 | # Usage: scripts/build-app.sh [version] |
| 5 | 5 | set -eu |
| 6 | 6 | |
| 7 | 7 | cd "$(dirname "$0")/.." |
| 8 | 8 | version="${1:-0.1.0}" |
| 9 | app=".build/app/Orgstar.app" | |
| 9 | app=".build/app/orgstar.app" | |
| 10 | 10 | |
| 11 | 11 | swift build -c release --product Orgstar |
| 12 | 12 | swift build -c release --product OrgstarQuickLook |
| @@ -29,9 +29,9 @@ cat > "$app/Contents/Info.plist" <<EOF | ||
| 29 | 29 | <key>CFBundleIdentifier</key> |
| 30 | 30 | <string>sh.krz.orgstar</string> |
| 31 | 31 | <key>CFBundleName</key> |
| 32 | <string>Orgstar</string> | |
| 32 | <string>orgstar</string> | |
| 33 | 33 | <key>CFBundleDisplayName</key> |
| 34 | <string>Orgstar</string> | |
| 34 | <string>orgstar</string> | |
| 35 | 35 | <key>CFBundleExecutable</key> |
| 36 | 36 | <string>Orgstar</string> |
| 37 | 37 | <key>CFBundlePackageType</key> |
| @@ -95,7 +95,7 @@ cat > "$app/Contents/Info.plist" <<EOF | ||
| 95 | 95 | <key>LSApplicationCategoryType</key> |
| 96 | 96 | <string>public.app-category.productivity</string> |
| 97 | 97 | <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> | |
| 99 | 99 | <key>NSHighResolutionCapable</key> |
| 100 | 100 | <true/> |
| 101 | 101 | <key>NSPrincipalClass</key> |
scripts/build-ios-app.sh +9 −7
| @@ -1,12 +1,12 @@ | ||
| 1 | 1 | #!/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`. | |
| 4 | 4 | # Usage: scripts/build-ios-app.sh [version] |
| 5 | 5 | set -eu |
| 6 | 6 | |
| 7 | 7 | cd "$(dirname "$0")/.." |
| 8 | 8 | version="${1:-0.1.0}" |
| 9 | app=".build/ios-app/Orgstar.app" | |
| 9 | app=".build/ios-app/orgstar.app" | |
| 10 | 10 | products=".build/ios/Build/Products/Debug-iphonesimulator" |
| 11 | 11 | |
| 12 | 12 | # The entitlements (the app group the share extension leaves captures in) go where the |
| @@ -32,9 +32,11 @@ cat > "$app/Info.plist" <<PLIST | ||
| 32 | 32 | <key>CFBundleIdentifier</key> |
| 33 | 33 | <string>sh.krz.orgstar</string> |
| 34 | 34 | <key>CFBundleName</key> |
| 35 | <string>Orgstar</string> | |
| 35 | <string>orgstar</string> | |
| 36 | 36 | <key>CFBundleDisplayName</key> |
| 37 | <string>Orgstar</string> | |
| 37 | <string>orgstar</string> | |
| 38 | <key>LSApplicationCategoryType</key> | |
| 39 | <string>public.app-category.productivity</string> | |
| 38 | 40 | <key>CFBundleExecutable</key> |
| 39 | 41 | <string>OrgstarMobile</string> |
| 40 | 42 | <key>CFBundlePackageType</key> |
| @@ -48,7 +50,7 @@ cat > "$app/Info.plist" <<PLIST | ||
| 48 | 50 | <key>MinimumOSVersion</key> |
| 49 | 51 | <string>26.0</string> |
| 50 | 52 | <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> | |
| 52 | 54 | <key>UIDeviceFamily</key> |
| 53 | 55 | <array><integer>1</integer><integer>2</integer></array> |
| 54 | 56 | <key>UILaunchScreen</key> |
| @@ -128,7 +130,7 @@ appex() { # name, bundle id suffix, extension point, principal class, attributes | ||
| 128 | 130 | <key>CFBundleName</key> |
| 129 | 131 | <string>$1</string> |
| 130 | 132 | <key>CFBundleDisplayName</key> |
| 131 | <string>Orgstar</string> | |
| 133 | <string>orgstar</string> | |
| 132 | 134 | <key>CFBundleExecutable</key> |
| 133 | 135 | <string>$1</string> |
| 134 | 136 | <key>CFBundlePackageType</key> |