Auto updated creation/modification date with templater?

Tepmplater’s dynamic commands deprecated soon(?)

Tepmplater’s dynamic commands <%+ ... %> are not working reliably anymore and might be deprecated soon. In short <%+ ....%> does return NaN instead of needed values like date.


Alternative way for automatically updating yaml

For quickly generating and/or updating yaml /front matter block I now use reasonable alternative, that is community plugin Linter.
Linter has YAML section that can be configured to create, format and update yaml block.
I use it to auto-generate yaml atr. like title, aliases, tags and created / modified dates.

Advantage

  • values are edited into note itself as text instead of script so *.md file can be read outside of obsidian.
  • unifies format in all notes

Disadvantage

  • single format for all notes

Automation

Once set up, Linter can be triggered either by shortcut ctrl + alt + L (as in many IDE’s) or automatically upon saving.


Linter

It is a “prettyfier” plugin. among updating yaml it’s primary function is to format md file according to setting and/or md standards.


Disclaimer

I’m not associated with Linter team. I simply looked for way to fix Templator’s “NaN” issue and came across this thread and after finding alternative came back to help fellowship of obsidian in the future.

3 Likes