Using the instructions from https://docs.zettlr.com/en/editor/snippets/#snippets, I created a YAML snippet that automatically inserts an ID for a new file.
---
id: $ZKN_ID
---
However, I’ve noticed that this snippet creates a new ID/timestamp for the file, even if I didn’t change the automatic timestamp filename, for example “20260708123125.md”.
I frequently keep the timestamps as the filename, because I use Zettlr to create a kind of diary for some of my work and it’s convenient. I would like the same timestamp to also be in the YAML frontmatter instead of a new one that is often only a few seconds younger than the filename. For example, if the filename is “20260708123125.md”, I’d like id: 20260708123125 to be inserted when I use the YAML snippet above.
Is that possible, and if so, how can I do it?