Repository navigation
3.21.0
Copy world, Import folder, Update world format and Migrate now read your notes wherever they sit, and none of them guesses about your own writing.
3.20.0 made a note an element by what it carries (an id and a type), anywhere in your world's folder. Four commands still read only the type folders under Elements/. They now follow the same rule.
The four commands.
- Copy world copies element notes anywhere in the world's folder, and makes no element from a note without an id.
- Import OnlyWorlds folder leaves an element alone when its note sits outside the type folders, instead of making a second note for it.
- Update world to latest format lists and updates notes outside the type folders, writes each note once, and keeps your own properties (a date, a quoted number, a list, true or false) exactly as they were.
- Migrate world notes to frontmatter converts an old-layout note in its type folder under
Elements/, and now writes every text field into the note. Before, only the description arrived and the other text fields survived only in the backup folder.
Where a command used to decide, it now stops and tells you.
- Copy world writes
World Data File.mdonly when the file is absent or carries Copy's own mark on its first line (an Obsidian comment, hidden in reading view). A copy made by an earlier version has no mark: delete that file once and copy again. Any other note of that name is yours and is never written over. - Two notes with the same id: Copy world copies neither and names both, as Upload world already did. This is counted before anything else, so a note left out for another reason never lets its twin through.
- Update world to latest format leaves a note alone and names it when a text field is written both in its properties and in its body, or when there is text above the first section beside a Description section. It reads each note again at the moment you confirm.
- A note in the plugin's old layout (before 3.0) is left byte for byte by Update, which names Migrate as the command that converts it.
- Copy world and Upload world read each note once, from the file itself, and decide everything from that reading; Obsidian's index is not asked what a note is. If a note in the world's folder cannot be read, the command stops, names the note by its path, and copies or sends nothing.
What counts as an old-layout note is now strict. A note is in the old layout only when it has no properties and every line is one of the old plugin's own field or group lines. A note that quotes such lines among your own writing is yours: it is not copied, uploaded, saved or migrated. One consequence: an old note you added lines to, or one where a value runs onto a second line, is no longer converted or saved automatically. Migrate names it; move the extra lines out, or rewrite it as a note with properties.
Save. A note that is not an element sends nothing. Under auto-sync that is silent; before, a note in a type folder that could not be read as an element raised a notice at every pause.
Not changed in this release: Manage fields, the relationship graph and the link picker still read the type folders under Elements/ only. A property typed as x_ plus a name, written by 3.19.3 and earlier, stays as it is.
Known and not fixed here, each the same on 3.20.0:
- Download world can write over a note that has no properties but carries a line
- **ID:** <an element's id>. - Update world to latest format drops unsectioned text when the note has an empty
description:property, and keeps only the last of two sections with the same heading. - A note under
Elements/<Type>/with an id that is not a UUID is still read as an element. - Paste world's writes can be picked up by auto-sync.
- Save reads a note's id from Obsidian's index first, and its check for two notes with one id does not see an old-layout note.
- Manage fields drops text that sits above a note's first section: run Update world to latest format on such a note first.
- Copy world keeps one value silently when a property of your own is written two ways (
moodbesidex_properties.mood), where Upload world refuses the note. - Upload world can send a hand-edited old-layout note under another id when one of its fields is labelled
Id_id.
Under the hood: 939 tests. The change was read eight times by a second model family, between rounds of fixes, and by separate readers told to read the callers, not the diff; the last read of the whole change found nothing it introduced, and what was already in 3.20.0 is the list above.
Walked in a real Obsidian before release, on the 3.21.0 build: a vault with notes in a folder that is no type's, notes with no id, a note quoting old-layout lines, a note of your own named World Data File.md, an old-layout note met first by Update and then by Migrate, through Validate world, the folder export, Copy world, Import folder, Update world to latest format and Migrate: 29 of 29 (10 of the 25 that existed then red on 3.20.0); Upload world against onlyworlds.com, with a note in its type folder, a note outside every type folder, two notes holding one id, a note of your own and a note with no id, each read back from the server: 10 of 10 (the same on 3.20.0, and red where it must be with a wrong key); a note with status and mood through Save element, Download world and Save element again: 14 of 14; auto-sync against another program writing the vault's files: 12 of 12; all on Windows desktop. Not walked on this release: a note that cannot be read and a stale index (tests only: a real vault cannot be made to fail one read on demand), iOS, Android, macOS, Linux, a vault of thousands of notes.