iOS capture shortcut — create a Museion post, open it in Textastic #174
Notifications
Due Date
No due date set.
Blocks
#138 iOS Shortcut
AlexKucera/museion
Reference: AlexKucera/museion#174
Reference in new issue
Block a user
Part of #167
Question
An iOS Shortcut that creates a Museion piece in the iCloud Home and opens it in Textastic — what shape, and does the round-trip verify? Owner asked mid-session 2026-11-05; viable only because the companion pick (#169) put the Home in CloudDocs.
Grounded facts (Textastic v10 manual, integration_other_apps/shortcuts + x-callback-url; Museion source):
textastic://x-callback-url/open?location=fullPath…) wherefullPathexists explicitly for file-provider paths (Working Copy uses it).projects/<name>/<id>/post.mdwith a bare body scans as First Draft / writer / post (lenient frontmatter), and a bare post gets fully stamped by overwrite on first macOS save ("normalizes bare posts on save", PostStore.swift). ZERO macOS code needed.Folded (settled in the live round unless vetoed): trigger = share sheet + run-with-prompt fallback; body = bare markdown, first line = title; id = timestamp slug (no iOS collision machinery — scan's folder-of-winner dedupe is the safety net); open = one-time "Add External Folder" of iCloud Drive/Museion in Textastic, then the native "Open File" action.
The round's question
Which project does a captured piece land in — dedicated
captured, thepostsdefault, or ask-each-time?[Generated by AI]
Resolves #174 (child of #167). Round: one structured form, 2026-11-05 — placement answered with the recommendation; folded set unvetoed.
Decision
iOS capture shortcut — recipe pinned. Captures land in a dedicated
capturedproject.Placement:
projects/captured/<slug>/post.md— every iOS capture groups under one library section head (a visible triage inbox); one "Move to Project…" on macOS files it later. The shortcut hardcodesprojects/captured/.The recipe (the asset #138 builds from)
Shortcut "Museion Capture":
yyyy-MM-dd-HHmm→<slug>.iCloud Drive/Museion/projects/captured/<slug>(createprojects/capturedonce at setup if nested creation isn't supported).…/<slug>/post.md.projects/captured/<slug>/post.md. One-time setup: "Add External Folder…" ofiCloud Drive/Museionin Textastic. Fallback if the action can't address the external folder:textastic://x-callback-url/open?location=fullPath&path=<full device path of the piece dir>&name=post.md(the manual's file-provider form, Working Copy's pattern).Folded (settled, unvetoed)
projects/<name>/<id>/post.md, lenient frontmatter → First Draft/writer/post) already lands the piece.Verification protocol (→ #138's acceptance)
Capture from a Safari share sheet → Files app shows folder + post.md → Textastic opens in place → edit + save → macOS library shows the piece under "captured" as First Draft after sync → open + save in Museion stamps the frontmatter → Textastic still opens the stamped file.
Disposition
Execution: #138 (blocked by this ticket; also wired to #145). The map's hardening fog trigger arms only if this flow surfaces quirks.
[Generated by AI]
Follow-up on the recipe (owner question): the timestamped folder is NOT auto-translated into a title-slug folder. The library title comes from the body's first line (folder name never displayed); plain macOS saves write in place and only stamp frontmatter; explicit Rename… is the sole re-slug path — it retitles the body AND moves the folder to the title's slug within the same project (PostStore.swift:346, availableSlug guards collisions). Timestamp ids are fine forever; Rename… on macOS whenever a title-named folder is wanted.
[Generated by AI]