I have setup a template for daily notes, and in the first H1 I would like the current date (it is in the filename as well, but I like it verbose). So I added the {{date}} placeholder. When I create an empty note and insert this template, the placeholder gets replaced by the actual date, which is what I was aiming for.
But when I create a new daily note with it’s own shortcut, the same template is used, the daily note is saved to the correct directory, but the placeholder remains and is not replaced by the date.
Is this a known bug? I once saw a thread that aimed to consolidate all templates (daily notes, zettelkasten etc) to a single plugin, but I can’t find it now. I think this would be a fantastic way to do it.
Basically I would like the ability to create a new note from a template with a user-defined hotkey, that is saved to a pre defined directory. Ideally, I wish to set multiple different hotkeys for different templates that are stored to different directories.
It would like to keep the “insert template” functionality as well, but in my use case this would be much smaller templates (like tables for example, not entire note templates).
Fantastic, I actually have 0.8.11 already. I just found the setting you mentioned.
At first I was a little confused how it worked (i literally typed {date:format} and wondered why it didn’t work). So for anyone wondering, here is a concrete example:
# {{date:YYYY-MM-DD}} Daily Note will result in # 2020-09-03 Daily Note.
Are the supported date format codes documented somewhere? I’d like to use {{date:b}} (assuming b equates to %b in the standard unix date command, for instance) to get the abbreviated month name.
The help vault and publish site should be identical. Templates is under plugins, which I understand may not be intuitive. There are updates coming to the help docs.
A fresh install of Obsidian 0.9.4 does not include Templates under plugins, whereas it DOES exist at the URL you posted above. (It doesn’t exist in the Obsidian Help directory in the filesystem either). It looks like it was somehow omitted from the .dmg build for MacOS.