Skip to content

0.0.2

Choose a tag to compare

@wandermyz wandermyz released this 24 Aug 00:12
· 24 commits to main since this release

Fixes incremental sync, which failed with "File already exists" and pulled no update.

The sync engine chose create-vs-update by asking Obsidian''s in-memory file index, which lags the disk right after a batch of files is written. An existing file therefore looked absent, createBinary was called on a path that was already there, and the resulting throw aborted the whole run. The initial sync was unaffected because the vault really was empty.

All file I/O now goes through vault.adapter, which reads the filesystem: one writeBinary call both creates and overwrites, so no existence check can go stale before the write.

Also in this release:

  • Nested folders are created one level at a time. mkdir does not create ancestors, so a commit introducing a path several levels deep previously failed.
  • The access token and per-device sync state moved out of data.json into local.json, so plugin settings can be kept in version control while the credential is gitignored. Exclude .obsidian/plugins/obsidian-github-sync/local.json.
  • "Verify access" moved under Sync and now exercises the configured sync repository and remote folder instead of a separate test repository.
  • The Sign in button updates to "Re-authenticate" immediately after signing in, without needing a manual refresh.