In case someone is still interested in realising the automatic update of last modified date in the current note like the post here, here is my solution using the Dateview plugin.
Install Dateview plugin in Community plugins. Enable it.
Enable the JavaScripts Queries as well as the Inline JavaScripts Queries in the plugin’s settings.
Now you just need to put this line wherever you want to have the modified date displayed:
This plugin will read the ctime and mtime from the file system. If file change from an external source, the header keys will be updated.
The one I made only updates the time when you edit the note inside Obsidian, rather than if the file modified time changes for whatever reason (example copying files to a new computer).
I actually disabled that plugin (which had been updated twice in succession and I found something detrimental) a few days ago when I batch-changed my YAML and was looking for an alternative solution. I’ll try yours.
Excellent, this is what I was looking for. System mtime is changed each time my Dropbox synchronizes files between different machines, so it’s frequently not reflecting actual time, while your plugin will update the modification time only when I actually edit the file.
Truth be told, when running normal or regex replacements from other programs (Notepadqq, for instance), I see the field updated – but Obsidian was left open.
Slightly more concerning is this. Disabling these plugins seems to make this confounding issue stop.
Wonder what is causing the interference here.
Now I use the manual way of Save [Contrl+S] with Linter (Lint current file with ‘lint on save’), which updates date modified.