alangrainger / obsidian-frontmatter-modified-date

Automatically update a frontmatter/YAML modified date field
MIT License
63 stars 10 forks source link

[Bug] Modified date reappears after deleting the property. #4

Closed albertoloscerritos closed 1 year ago

albertoloscerritos commented 1 year ago

If I add a template to a note, that includes the modified date property. And the I decide I don't need properties in that note and decide to remove them all (by going into source mode and selecting and deleting everything). Or if I simply remove the modified date property by right clicking and removing, the property will reappear. bug_modified_2 Thanks.

alangrainger commented 1 year ago

Yes, that would be the expected behaviour. By removing the property you are modifying the note, therefore the modified time will be updated.

You can turn on the option which will only update the property if it exists. That will cause it to not re-appear when you delete it.

albertoloscerritos commented 1 year ago

image The option you mention is turned on.

alangrainger commented 1 year ago

Thanks, sorry I didn't see that in your original post.

Should be fixed in v1.2.2, can you test and let me know?

albertoloscerritos commented 1 year ago

Hi, I just test it for a couple of hours, and it seems to be working correctly. I will let you know if anything changes. Thanks for your help.