Change Date Modified in YAML only when not editing YAML

What I’m trying to do

I want to add Date Created and Date Modified automatically to my Obsidian notes’ YAML frontmatter, but I don’t want the Date Modified to be updated when I, for instance, change the YAML tags or the YAML modified date & time. I am looking for a plugin or anything else that could do this.

Things I have tried

I tried Linter, but it doesn’t appear to have an option for this. There may be something you can do in regex in Linter, but it’s probably a last resort. Possibly a css file?

I’m pretty sure Linter can do that in one of its menu :blush:

(I think you can disable the automatic update of the keys and run a command instead when you want the plugin to lint your file)

I haven’t used Linter in a long while :sweat_smile: … but I used it for a similar use case for some time…