• v0.0.6 87e43ed520

    v0.0.6 Pre-release

    fpindado released this 2026-05-28 15:56:13 +02:00 | 78 commits to main since this release

    Release v0.0.6 of sync-md-multi

    v0.0.6 — Binding lifecycle fixes & project dropdown improvements

    Bug fixes

    • Creating a binding no longer requires an app restart. The background now detects config changes reliably: a 200 ms delay was added to the persistedDataUpdate handler to avoid a race condition where the hook fired before SP had committed the new data to storage. A 5-second polling interval was also added as a fallback, so any change the hook may have missed is picked up within seconds.
    • Deleting a binding stops sync immediately, without requiring a restart.
    • Newly created SP projects now appear in the binding dropdown without restarting the app. The project list is loaded directly from PluginAPI.getAllProjects() on every panel open (same approach as the original sync.md plugin), with automatic retries if SP hasn't finished loading the project state into the iframe yet. A background 60-second refresh and a persistedDataUpdate listener in the iframe provide additional layers of freshness.

    Improvements

    • The project dropdown only shows projects that don't already have a binding, making it impossible to accidentally assign two bindings to the same project.
    • Edit mode is handled correctly: when editing an existing binding, its project is included in the dropdown even though it's already bound.
    • A ↺ Refresh button was added next to the project dropdown for an immediate manual refresh of the project list.

    Known limitation

    Drag & drop of .md files onto the file path field is not yet supported — SP intercepts drag events before they reach the plugin iframe. Use the Browse… button as the alternative.

    Downloads