Repository navigation
Vault Publisher 0.1.1
A fix for the feature 0.1.0 is about, in the one place somebody would meet
it first.
A folder published whole kept losing its path
A row under Publish folders whole has two fields -- the folder, and
where it lands -- and nothing redraws between them. Each field saved the
whole list as the panel had drawn it, so the second thing you typed wrote
the first one back as it had been:
typed folder "react-relative", destination "app"
stored { folder: "", at: "app" }
The path was gone, and with it the folder. Adding a second folder had the
same fault for the same reason: a row half typed into was saved back empty.
Every handler now reads what is stored at the moment it runs rather than
what was on screen when the panel was drawn.
This was found by typing into both fields of a real row in Obsidian. The
test suite missed it because every test set one field at a time, and the
bug needs two edits with no redraw between them -- which is what a person
does and what a test rarely does. Both new tests fail without the fix.