Common Questions
What sync solutions are compatible?
What sync solutions are compatible?
Sync Folds works with any file syncing solution that syncs your Obsidian vault, including:
- Obsidian Sync (official)
- iCloud
- Dropbox
- Git
- Self-hosted solutions (Syncthing, CouchDB, etc.)
- Any other cloud storage or file syncing service
.obsidian/plugins/sync-folds/data.json, which syncs automatically with your vault.Just make sure the plugin is installed and enabled on all devices where you want fold states to sync.
Does it work on mobile?
Does it work on mobile?
Yes! Sync Folds is fully compatible with both iOS and Android.According to the manifest,
isDesktopOnly is set to false, meaning the plugin is designed to work seamlessly across all platforms where Obsidian is available.Install the plugin on your mobile devices and your fold states will sync automatically.How much storage does it use?
How much storage does it use?
Very minimal. The plugin stores fold states as JSON data in
data.json.Each fold state contains:- File path
- Line numbers for fold start/end positions
- Total line count
The data is stored as compact JSON, making it extremely storage-efficient even for large vaults.
What happens if I disable the plugin?
What happens if I disable the plugin?
If you disable Sync Folds:
- Existing fold states remain in localStorage - Your current fold states on that device will stay intact
- No syncing occurs - Changes won’t be saved to
data.jsonor synced across devices - Data is preserved - The
data.jsonfile remains in your vault with all saved fold states
data.json.You can also disable sync programmatically by setting
enableSync: false in the plugin settings while keeping the plugin active.Can I export my fold states?
Can I export my fold states?
Yes! Sync Folds provides a manual export command:
- Open the command palette (
Cmd/Ctrl + P) - Search for “Export folds from local storage”
- Run the command
data.json file.The plugin automatically exports fold states as you work (debounced to 150ms), so manual export is typically only needed for troubleshooting.
How do I back up my fold states?
How do I back up my fold states?
Your fold states are automatically backed up through your vault sync solution.The fold data is stored in:Additional backup options:
- If using Git, the
data.jsonfile is committed with your vault - If using cloud storage, it’s synced with your vault backups
- You can manually copy the
data.jsonfile for archival purposes
Since fold states are part of your vault structure, they benefit from the same backup and versioning systems you use for your notes.
What data is stored?
What data is stored?
The plugin stores only fold state information:Data structure (from
src/types.ts):- File path - Relative path to the note
- Folds array - Start and end line numbers for each fold
- Lines - Total line count in the file
Is my data private?
Is my data private?
Absolutely. Sync Folds operates 100% locally:
- No network requests are made
- No external services are contacted
- No telemetry or analytics are collected
- All data stays within your vault
The plugin is open source under the MIT license. You can review the complete source code at github.com/itsonlyjames/obsidian-sync-folds.
What is the performance impact?
What is the performance impact?
Minimal. The plugin is designed for efficiency:On plugin load:
- Quick localStorage import/export (one-time per session)
- No ongoing background processes
- Fold changes are debounced to 150ms (see
src/main.ts:181) - Only modified folds are updated
- Lightweight JSON operations
- Reads/writes small JSON files
- No vault scanning or file watching
The 150ms debounce means even rapid folding/unfolding only triggers one save operation, minimizing performance impact.
Can it conflict with other plugins?
Can it conflict with other plugins?
Unlikely. Sync Folds uses safe interception patterns:How it works (from
src/main.ts:130-159):- Intercepts
localStorage.setItemandlocalStorage.removeItem - Only monitors keys prefixed with
{appId}-note-fold- - Preserves original localStorage behavior
- Restores original methods on unload
- Other plugins that modify fold states might not sync automatically
- Plugins that also intercept localStorage could theoretically interfere (rare)
- Disable other plugins temporarily to isolate the conflict
- Use the manual import/export commands as a workaround
- Report the issue at github.com/itsonlyjames/obsidian-sync-folds/issues
Still have questions?
If your question isn’t answered here, you can:- Check the GitHub repository for more information
- Open an issue for bugs or feature requests
- Review the source code - it’s open source under the MIT license