LostPaul / obsidian-folder-notes

Create notes within folders that can be accessed without collapsing the folder, similar to the functionality offered in Notion.
https://lostpaul.github.io/obsidian-folder-notes/
GNU Affero General Public License v3.0
264 stars 11 forks source link

Automatic creation of folder notes causes serious synchronization problems #88

Open xarx00 opened 4 months ago

xarx00 commented 4 months ago

I use a file synchronization software (not the Obsidian Sync) to synchronize my vault between my notebook(N), tablet (T) and mobile (M). When "Automatically create folder notes" is enabled, the plugin causes serious synchronization issues. It is because it creates the folder notes too "aggressively".

Scenario:

  1. At N, lets create a new folder with the folder note in it, Xxx/Xxx.md.
  2. Syncthing (ST) replicates the structure to M.
  3. ST first creates the folder Xxx/
  4. Now the Folder notes plugin steps in, it sees an empty folder, so it creates a new empty folder note in it, Xxx/Xxx.md.
  5. ST wants to replicate the Xxx/Xxx.md folder note, but it is already there, and a newer one. Hence ST fails with a sync-conflict.

Actually, this occurs all the time, hence I had to turn off the automatic folder notes creation. Which is a pity.

Solution: The problems would be solved if the folder notes creation wasn't so "aggressive" - if the Folder notes plugin waited a little while (a few seconds) before it creates the missing folder notes. Or if it created folder notes only for folders created in Obsidian, not externally.

xarx00 commented 3 months ago

Since I turned the Automatic folder notes creation off, I have no sync conflicts in the data folder (though I have a few conflicts in the plugin folder).

However, I'd prefer if the problem was fixed and I could turn Automatic folder notes creation back on again.