Sync Folds

approvedunreviewed

by James Alexandre

Enables Syncing of Fold States Across Devices.

★ 16 stars↓ 3,216 downloadsUpdated 6mo ago0BSD

Obsidian Sync Folds

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

Sync Folds: fold a note on your laptop and the folds are already there on your phone

Why

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.

How it works

WhenSync Folds…
The plugin loadsApplies the saved folds, or saves this device's folds if none exist yet
You fold or unfold somethingSaves the change to data.json (debounced to 150 ms)
data.json changes from another deviceApplies the new folds to this device

There's nothing to configure. Install it on every device that shares the vault.

Works with your sync service

Fold states live in .obsidian/plugins/sync-folds/data.json, so anything that syncs your vault folder syncs them too:

  • Obsidian Sync: turn on Installed community plugins under Settings → Sync → Vault configuration sync.
  • iCloud, Dropbox, OneDrive or Google Drive
  • Git
  • Self-hosted options such as Syncthing, Nextcloud or CouchDB

Commands

CommandWhat it does
Export folds from local storageSaves all of this device's current fold states to data.json
Import folds into local storageApplies 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.

Installation

From Community Plugins

  1. Open Settings → Community plugins.
  2. Turn off Restricted mode if prompted.
  3. Click Browse and search for "Sync Folds".
  4. Click Install, then Enable.

Manual installation

  1. Download main.js and manifest.json from the latest release.
  2. Copy them into <your vault>/.obsidian/plugins/sync-folds/.
  3. Reload Obsidian and enable Sync Folds under Settings → Community plugins.

Compatibility

Works on desktop and mobile. Requires Obsidian 0.15.0 or later.

Related plugins

  • Fold Properties folds the properties of a note, a folder or your whole vault in one click. Sync Folds carries those folds to your other devices.
  • Quick Select lets you pick any item in any Obsidian list with Mod + number.

Support

If your folds now follow you around, consider sponsoring its development.

License

MIT

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.