Docs
Templates
Templates are a way to modify the text of your newly created notes. Just place a _template.md
in a folder to enable the feature.
For example, you can create a new default for all your notes by creating a inbox/_template.md
file:
# {{title}}
{{date}}
{{caret}}
Example result: (|
indicates the position of the text cursor)
# compound effect
2022-05-06
|
Variables
When creating a template, you can use the variables below in order to insert dynamic values in your note:
{{title}}
— Inserts the title of the file.{{date}}
or{{date:format}}
— Inserts the current date. By default, the inserted date will useYYYY-MM-DD
as a format (e.g.2022-05-06
). If you want to customize the:format
, read all supported values here (e.g.{{date:MMMM D, YYYY}}
will produceMay 6, 2022
).{{time}}
or{{time:format}}
— Inserts the current hour and minute by default (e.g.20:20
). If you want to customize the:format
, read all supported values here.{{caret}}
— The position in text where the cursor will be placed. Placing multiple{{caret}}
's in the text will create multiple selections.
Use cases
- Date created info — insert note creation date.
- Blogs — a lot of static blogs use YAML as a source for the post title and date.
- Add tags — you may want to include tags for notes that are in specific folders.