sync_now
Sync Markdown files to and from Apple Notes in one pass, direction set per file via frontmatter. Mirror a Notes folder to auto-create pull files for missing notes.
Instructions
One pass over a folder of .md files, one direction per file. A file opts in with frontmatter apple-note-sync: push sends the file into the note, pull brings the note into the file, off pauses. The file's own name says which note, and it must match exactly one: a name matching none or several is reported and neither side is touched. Rename the note in Notes and the pair is lost until the file is renamed to match. Pass folder to mirror a whole Notes folder: notes there with no file yet are created as pull files, attachments written beside them, so one call covers everything. Deletions never propagate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | Folder of .md files to work in. A bare name is a folder inside the vault. Default: the vault itself, from the APPLE_NOTES_MD_DIR environment variable or failing that the open Markdown vault. | |
| folder | No | A Notes folder to mirror: its notes without a file yet are created as pull files in a subfolder named after it. | |
| true_styles | No | Apply true styles to pushed notes. Default true. |