orgstar command for the download version: agenda [view] [--json], capture <key> [text] [--set Prompt=value], clock in|out|status, export <file> --to html|md|pdf|latex|odt|txt|reveal [-o path|-], tangle <file>, open <file>[::heading|id:ID], --help, --version, exit codes 0/1/2/3/4. Manual: docs/manual/guide/17-command-line.org.
- New
OrgstarCLIexecutable (Contents/Helpers/orgstar, signed by build-app.sh) linking OrgConfig, OrgDocument, OrgWorkspace and OrgCore only: no AppKit, SwiftUI or WebKit. - New
OrgConfiglibrary: UserConfig, OrgPreferences, KeyBarLayout, AgendaViews (minus AgendaBlockResult), CaptureTemplates and CapturePlacement, AgendaFiles.resolve, RefileSettings, TangleWriter, UserFile and Perf moved out of OrgApp unchanged apart from access levels; the theme, PDF and image-drop parts stay in OrgApp as extensions. OrgApp re-exports it (@_exported import OrgConfig), so no other target changes.ThemeSpec.typeKeys/isThemeTablenow forward toOrgCore.ThemeTables. - Settings come from config.toml applied to an in-memory UserDefaults, folders from roots.json in the data folder plus
ORGSTAR_ROOT, config folder byUserConfig.defaultDirectory(ORGSTAR_CONFIG_DIR,ORGSTAR_DATA_DIR,XDG_CONFIG_HOME). - Writes go through
SaverwithCoordinatedFileSystemand the app'sRecoveryfolder, as for a closed file in the app. No cross-process unsaved-buffer check exists; an open buffer merges the change as it does Emacs's. - Clock: the CLI writes only the CLOCK line and never
clock.json(the app keeps it in memory and rewrites it). The app already follows open CLOCK lines throughClockModel.sync; it now also picks up a clock started in another entry of the same file in the change that stopped its running clock (also fixes clocking in on another heading in Emacs). - PDF from the CLI goes through the LaTeX export and latexmk/pdflatex, since the app's PDF export needs WebKit. HTML has no code colouring (OrgHighlight pulls in OrgPresentation/AppKit).
- Settings ▸ General ▸ Install Command-Line Tool… (download build only): open panel, symlink into the chosen folder; refuses to replace a non-link; on a folder it can't write it shows the
sudo ln -sfline. Strings in DeveloperID.xcstrings with de, es, fr, ja, pt-BR.
Homebrew cask (krz/homebrew-tap), add:
binary "#{appdir}/orgstar.app/Contents/Helpers/orgstar"
Closes #174