@koala - I’m not a sync user. How do I access the indexeddb? I see some binary files in my [User]\AppData\Roaming\obsidian folder that mention my wiped file and some of its content - but I’m not sure how to recover this meaningfully.
@WhiteNoise - imho overwriting existing content with 0 bytes is only a use case if there’s a clear decision from the user to do so. Otherwise, it’s a bug.
In this case, yes, I got a warning about a file system error, but I expected Obsidian to recover from this gracefully, without losing content.
What I’ll do next time in a situation like this is shut down Obsidian right away, make a backup of the vault once the connection is back, then restart Obsidian and recreate any files that get wiped with 0 bytes from the (hopefully) intact backup. But this is a workaround and it’s hardly graceful.
For the recovery plugin - the defaults don’t cut it. I did not edit my file in the last 7 days. Then made an edit shortly before it got wiped with 0 bytes. As result I only have a 0 byte snapshot. Perhaps the plugin could by default remember let’s say minimum 5 most recent snapshots regardless of their age and never treat 0 byte files as valid snapshots?
Screen capture - I’ll look into it.