numeroflip / obsidian-auto-template-trigger

An obsidian.md plugin, to automatically trigger a template on new file creation
MIT License
33 stars 0 forks source link

Pop-up triggers for existing notes #9

Closed cakechaser closed 1 year ago

cakechaser commented 1 year ago

How to reproduce: 1) I had a folder with some notes 2) Renamed the folder. The way Obsidian sync works, it will delete the folder with all the notes inside, and re-upload the folder with the new name along with all the notes. So renaming a folder with 100 files will trigger the deletion and upload of 100 files 3) Now when I open some of the files which were in this folder, the pop-up is triggered

After this operation the re-uploaded files have the same created/modified timestamps. I guess the plugin checks the created/modified time of the file, and triggers the pop-up if the times are matching.

One possible fix would be to check if the file contains any text or if it's empty

numeroflip commented 1 year ago

@cakechaser That's an interesting edge case indeed.

I just published version 1.1.1 1.1.2, where it now checks if the file is actually empty or not, as you recommended :) .

Would you kindly check if now this specific issue is solved correctly?

cakechaser commented 1 year ago

Works perfectly now, thanks for the quick resolution!