Skip to content

Releases: violet27chen/sanity-obsidian-plugin

Release list

0.0.2

Choose a tag to compare

@violet27chen violet27chen released this 28 Sep 17:53

Stops the plugin from silently overwriting local notes, and makes the choice readable when the two sides disagree.

Pull used to write Sanity's body straight over the local file, so edits that had not been published yet were lost with no warning. Publish read the editor buffer, which can be stale after the file was changed externally, and then wrote that stale version back to disk while replacing images.

  • Pull: compare the remote _updatedAt with the local file mtime (60s grace) and flag notes whose body differs; ask / keep local / use remote per the new "Pull conflict policy" setting
  • Pull: snapshot a note to .obsidian/sanity-pull-backup/<timestamp>/ before overwriting it
  • Publish: compare disk content with the editor buffer and let the user choose, aligning the editor when the local file wins
  • Conflict dialog: buttons read 本地版 / 线上版, each with a summary line (local file's last-modified time and character count vs the editor buffer's character count, longer side marked 内容更多)
  • New setting: Pull conflict policy (Ask every time / Keep local / Use remote)

0.0.1

Choose a tag to compare

@violet27chen violet27chen released this 07 Aug 04:07

Rebuilt release with current source-review fixes and only supported plugin assets.