Skip to content

Create Sync Folder

Create a dedicated Moire folder in Apple Notes

To let Moire know which notes need to be synced, we need to create a dedicated folder in Apple Notes.

  1. Open the Apple Notes app.

  2. Create a new folder under the iCloud section.

  3. Name the folder Moire (or any name you prefer).

  4. Done!

Please follow these steps:

  1. Open the Shortcuts app.
  2. Find Moire: Sync Notes to Github and right-click to edit.
  3. Find the step “Find all notes”.
  4. Click on “Folder” in the filter criteria and select the folder you just created.

A dedicated folder allows you to:

  • ✅ Clearly know what content will be made public
  • ✅ Better manage blog posts
  • ✅ Avoid accidental operations

Ensure the Moire folder is under the iCloud section, not “On My iPhone”.

📁 iCloud
└── 📁 Moire ← Create it here
📁 On My iPhone ← Not here

Once the folder is created, you can start writing notes in it!

  • 📝 Use Markdown syntax (bold, italic, links, etc.)
  • 🖼️ You can insert images (up to 1 image per note)
  • 🏷️ Use #tags to categorize content
  • ⚠️ Avoid unnecessary spaces at the beginning or end of titles or body text.
  • 📌 On macOS, the first paragraph is converted to a bold title by Apple Notes
    • Keep it short, otherwise long content will be truncated and displayed twice

To remove a synced note from your blog, simply add [DEL] to the note’s title and sync again.

For example, change the title from:

My First Blog Post

to:

[DEL] My First Blog Post

The note will be removed from your blog on the next sync.

If you deleted the note from Apple Notes before adding the [DEL] tag, you can:

  1. Find and restore the note from the Recently Deleted folder in Apple Notes.
  2. Once restored, add [DEL] to the title and sync again.
  3. If it’s no longer in the trash, you’ll need to manually delete the corresponding .md file in your GitHub repository.

If you only want to use Moire to sync and back up your notes without making them public as a blog, follow these steps:

In your GitHub repository’s Settings > Pages, set the “Source” under Build and deployment to “None”, or remove the deployment workflow.

In Settings > General > Danger Zone, change the repository’s visibility to Private.

Since the GitHub Access Token you configured in the Shortcut has permission to access private repositories, the sync functionality will still work perfectly, but your notes will only be visible to you.

Now that the folder is set up, finally we need to configure automation so your notes sync automatically when you close the app.