Keep your folded headings, lists and properties the same on every device.

Obsidian saves fold states in each device's localStorage, so they never leave the device they were made on. Fold a long note on your laptop, open it on your phone, and it's fully expanded again.
Sync Folds stores every fold in the plugin's data.json inside your vault, so your folds travel with your notes.
| When | Sync Folds… |
|---|---|
| The plugin loads | Applies the saved folds, or saves this device's folds if none exist yet |
| You fold or unfold something | Saves the change to data.json (debounced to 150 ms) |
data.json changes from another device |
Applies the new folds to this device |
There's nothing to configure. Install it on every device that shares the vault.
Fold states live in .obsidian/plugins/sync-folds/data.json, so anything that syncs your vault folder syncs them too:
| Command | What it does |
|---|---|
| Export folds from local storage | Saves all of this device's current fold states to data.json |
| Import folds into local storage | Applies the fold states in data.json to this device |
You shouldn't normally need these. They're there if a device ever gets out of step.
main.js and manifest.json from the latest release.<your vault>/.obsidian/plugins/sync-folds/.Works on desktop and mobile. Requires Obsidian 0.15.0 or later.
If your folds now follow you around, consider sponsoring its development.