Templates
A template is a note in your vault that mdai reads when another note starts. The new note begins as a copy of it, with the date, the weekday and the note’s name filled in wherever the template asks for them. What you write afterwards is yours alone — the template itself is never changed.
Two settings use one: Daily note template for Today’s note, and New note template for every new tab. Both are in Settings → Vault.
Where templates live
Section titled “Where templates live”A template is an ordinary note. Create examples and New template… keep
theirs in templates/ at the top of the vault, a folder mdai makes when it is
needed; its name is the same in every language of the app.
Any note inside the vault can be a template, not only the ones in templates/.
Type its path in Settings, or pick it with Choose….
Create examples
Section titled “Create examples”Settings → Vault → Create examples makes three notes:
| File | What it has |
|---|---|
templates/daily.md |
The date and the weekday as the heading, then Notes and Tasks |
templates/meeting.md |
The meeting’s name, date and weekday, attendees, agenda, decisions, next steps |
templates/idea.md |
The idea’s name and date, the idea, why it matters, next step |
Their text is in the language of the app; the file names stay the same in all four. Create examples is greyed out while no vault is open.
Nothing already in the vault is overwritten. A file that is already there is skipped, and mdai says what it did — Created 3., or Created 1, skipped 2 that already existed. If nothing can be written, it says The templates could not be created.
Afterwards mdai fills in Daily note template with templates/daily, but
only if that field was empty. A template you set earlier stays. New note
template is not touched.
New template…
Section titled “New template…”Settings → Vault → New template… makes an empty template and opens it. It
takes the first free name in templates/ — template-1.md, then
template-2.md, and so on — and Settings closes so that you see the new note.
It starts with the four placeholders below, and a comment that repeats them.
Which template a note uses
Section titled “Which template a note uses”| Setting | Used by |
|---|---|
| Daily note template | Today’s note — ⇧⌘D / Ctrl+Shift+D, or File → Open Today’s Note |
| New note template | Every new tab — ⌘T / Ctrl+T and the + buttons |
The path is relative to the vault, and the .md can be left off:
templates/daily and templates/daily.md are the same. A path that leaves the
vault — .., or a full path from the root of the disk — is refused.
Today’s note takes the template only the first time it is made; a note that already exists is opened as it is. If the template is set but not in the vault, mdai makes the note without it and tells you.
Placeholders
Section titled “Placeholders”These are replaced when a note starts from a template. Everything else in the template is copied as it is.
| In the template | Becomes | Example |
|---|---|---|
{{date}} |
Today’s date | 2026-11-11 |
{{date:FORMAT}} |
Today’s date in your own format | {{date:DD.MM.YYYY}} → 11.11.2026 |
{{weekday}} |
The day’s name in the language of the app | Wednesday |
{{title}} |
The note’s name | 2026-11-11, or Untitled for a new note |
Spaces inside the braces are allowed — {{ date }} works the same. The date is
your computer’s local date, so it changes at your midnight.
Formats
Section titled “Formats”Six tokens are replaced inside a format: YYYY, YY, MM, M, DD and D.
Every other character is kept as written, which is where the dots, slashes and
spaces come from.
| In the template | On 5 March 2026 |
|---|---|
{{date:YYYY-MM-DD}} |
2026-03-05 |
{{date:DD.MM.YYYY}} |
05.03.2026 |
{{date:D/M/YY}} |
5/3/26 |
{{date:M}} and {{date:D}} |
3 and 5 |
{{date:MM}} and {{date:DD}} |
03 and 05 |
Names are not available: {{date:MMMM}} gives 0303, because each MM in it
is replaced, and lowercase dddd stays as it is. For the day’s name, use
{{weekday}}.
{{weekday}} follows the language of the app, not the language the template was
written in — on a Crnogorski app the same template gets srijeda, in Deutsch
Mittwoch. {{title}} is the date for Today’s note and Untitled for a
new note; mdai fills it when the note starts, so renaming the note later does
not change the text.
A placeholder mdai does not know is left as written: {{time}} and {{foo}}
stay, and so do {{date:}} with an empty format, and {{weekday:…}} or
{{title:…}} with a format of their own.
An example
Section titled “An example”templates/daily:
# {{date}} — {{weekday}}
## Notes
## Tasks
- [ ]Today’s note on 11 November 2026, on an English app:
# 2026-11-11 — Wednesday
## Notes
## Tasks
- [ ]The comment in a new template
Section titled “The comment in a new template”The template that New template… makes ends with a comment:
<!-- mdai fills these in when a note starts from this template: {{date}} today's date, 2026-11-11 {{date:YYYY-MM-DD}} today's date in your own format (YYYY, YY, MM, M, DD, D) {{weekday}} the day's name in the language of the app {{title}} the note's name -->A comment is part of the template like any other text, so it is copied into the note that starts from it — shown dimmed in the editor, with the placeholders inside it filled in too. Delete it from the template if you do not want it in your notes.
Related
Section titled “Related”- Today’s note — the dated note, and Quick Capture
- Settings — the two template fields
- Keyboard shortcuts — ⌘T and the rest