stravo1 / obsidian-gdrive-sync

sync notes across devices in Obsidian via Google Drive
457 stars 11 forks source link

Pages created from Templates via QuickAdd are deleted immediately #30

Open dodgepong opened 3 months ago

dodgepong commented 3 months ago

I was experimenting with the QuickAdd plugin because you can set it to create a new page from a template very easily (see here). However, as soon as the new page is created by QuickAdd while this plugin is active, the page gets immediately deleted as soon as a sync happens.

Reproduction steps:

  1. Install QuickAdd
  2. Create a new template in your templates folder
  3. Set up a Template macro using the instructions provided from 1:10 - 6:00 in the above video
  4. Invoke the macro to create a new page according to the template
  5. Observe page disappearing within seconds

Additional information

If I disable the sync plugin and then create the files using the macro, then re-enable the plugin, the files are deleted immediately.

stravo1 commented 3 months ago

please install the beta-12 release and add the the template file/folder under the blacklist and remove the "lastSync" tags from the template notes. This comes with a compromise that the templates won't be synced automatically. Until I come up with a better solution this workaround should work.