User commands: run built-in commands from scripts, and macros #246

closed cmc opened this on 2026-11-27 06:00 UTC · feature · milestone 8 Automation and extension

Discussion

cmc 2026-11-27 06:00 UTC

Phase 2 of the user-commands plan in docs/plans/2026-11-27-user-commands.md (#173).

  • org.run(id) runs a built-in OrgCore command at the current buffer state and resolves with the new text and selection, or rejects with the command's failure message. Prompts the command asks go through the same prompt UI.
  • All changes of one user command, its own and those of the commands it ran, are one undo step.
  • app.* commands are refused by org.run unless listed as safe in the implementation.
  • Keyboard macros record user commands and wait for each to finish when replaying.
  • Manual and porting table updated (org-todo, org-schedule, org-insert-heading and friends).

Platforms: Mac, iOS. Depends on: #245.

closed by cmc in commit 4d8e517de5: User commands: org.run and keyboard macros

2026-11-27 16:25 UTC
Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form