1
0
silverbullet/website/Plugs/Template.md

28 lines
1.4 KiB
Markdown
Raw Normal View History

---
tags: plug
---
2023-12-19 15:18:33 +00:00
The [[Plugs/Template]] plug implements a few templating mechanisms.
2022-11-25 15:01:05 +00:00
2024-01-02 10:40:59 +00:00
# Daily Note
2022-11-25 15:01:05 +00:00
2023-02-28 10:13:24 +00:00
The {[Open Daily Note]} command navigates (or creates) a daily note prefixed with a 📅 emoji by default, but this is configurable via the `dailyNotePrefix` setting in `SETTINGS`. If you have a page template (see above) named `template/page/Daily Note` it will use this as a template, otherwise, the page will just be empty (this path is also configurable via the `dailyNoteTemplate` setting).
2022-11-25 15:01:05 +00:00
2024-01-02 10:40:59 +00:00
# Weekly Note
2022-11-25 15:01:05 +00:00
The {[Open Weekly Note]} command navigates (or creates) a weekly note prefixed
2023-01-04 15:45:13 +00:00
with a 🗓️ emoji by default, but this is configurable via the `weeklyNotePrefix` setting in `SETTINGS`. If you have a page template (see above) named `template/page/Weekly Note` it will use this as a template, otherwise, the page will just be empty.
2022-11-25 15:01:05 +00:00
2024-01-02 10:40:59 +00:00
# Quick Note
2022-11-25 15:01:05 +00:00
The {[Quick Note]} command will navigate to an empty page named with the current date and time prefixed with a 📥 emoji, but this is configurable via the `quickNotePrefix` in `SETTINGS`. The use case is to take a quick note outside of your current context.
2024-01-02 10:40:59 +00:00
# Built-in slash commands
2023-11-27 15:43:12 +00:00
* `/frontmatter`: Insert [[Frontmatter]]
2023-08-29 19:17:29 +00:00
* `/h1` - `/h4`: turn the current line into a header
* `/code`: insert a fenced code block
* `/hr`: insert a horizontal rule
* `/table`: insert a table
* `/page-template`: insert a page template
* `/today`: insert todays date
* `/tomorrow`: insert tomorrows date