Repository navigation
3.23.1
A Save no longer marks a note as the world's copy when the note holds text the world did not receive, so the next Download copies it instead of writing over it.
After a Save, the plugin remembers the note's bytes so that the next Download knows overwriting it loses nothing. It remembered the bytes the Save had sent, and a send can leave out what the note holds: a text property edited beside its ### section (the section wins), a decimal in a whole-number field (the server rounds it), a second link in a field that holds one, a link to a note that is not in the world. After such a Save, the next Download that changed the element wrote the world's copy over the note with no copy in Kept edits. Now the note is marked only when the world's own answer, rendered the way a Download writes it, is the note. Otherwise the next Download copies the note into Kept edits first, in the world's folder, and says so.
Ordinary edits stay marked, so no copy is made for them: text typed in a section, text typed under an empty heading, a number changed in the Properties panel, a note with your own tags. A note differing from the world's copy only in blank lines or trailing spaces is marked only when nothing was typed into it after the Save read it. A Save also no longer writes an older read of the note back over text typed while it ran.
One-time: the first Download after updating puts the server's lines (change_seq and the others) last in the properties of notes that also carry keys of your own, such as tags, as a Save already did.
Not walked: a note whose empty fields were trimmed with Manage fields is probably copied at the next Download (read in the code, not run); nothing is lost either way.
Walked in a real Obsidian on the released bytes (main.js sha256 e3f1c47a36042d00): the three losses above are copied on this build and overwritten with no copy on 3.23.0; plain edits, a number changed through Obsidian's own property writer and text typed under an empty heading stay marked; the pull, upload, property-removal, own-property, auto-sync, inherited, stacked and import walks are green (19, 10, 18, 14, 12, 30, 16 and 29 rows). 1129 unit tests; three cold reads by two model families. Not walked: iOS, Android, macOS, Linux.