Skip to content

3.22.0

Choose a tag to compare

@tmoosting tmoosting released this 27 Nov 10:12
· 114 commits to main since this release
4ebf64e

Download world no longer throws away text you typed and have not saved.

When an element changes on onlyworlds.com, Download world rewrites its note from the world's copy. Until now, text you had typed into that note and not yet saved with Save element was replaced, with no copy and no warning. Now, before it replaces a note it cannot show is unchanged since the plugin last wrote or saved it, it copies the note whole into a Kept edits folder in the world's folder (named for the note and the minute) and tells you which notes. The copy is your own note, not an element: its id key is renamed kept_from, and a note whose id is written in a form that cannot be renamed is kept byte for byte inside a fenced block. If a copy cannot be written, the note is left as it is and the download stops with the reason.

What to expect: the first Download after this update, and the first one after an Upload world, copies every note that changed, whether you typed in it or not, because the plugin has no record yet of what those notes held. Nothing is lost and you can delete the copies whenever you like. After a note is written, it is recorded again, so the next Download copies nothing unless you typed in that note.

Also fixed: a group entry that was removed on onlyworlds.com no longer stays in your note and comes back at the next Save.

Not covered yet, filed: Paste world, and a note that turns into a "known of" or hidden stub, still replace a note without a copy; text typed in the few milliseconds while a copy is being written is not in the copy.

Walked in a real Obsidian on the released bytes (main.js sha256 6cff63ff99430e85): a note with no record, typed into and changed on the world, is lost on the build before this change (main.js 7476e3c2) and kept on this build; the pull, save and upload walks are green (14, 13, 9, 29, 30, 14 and 18 rows). 1062 unit tests. Not walked: iOS, Android, macOS, Linux.