Cache ALPHA

Templates

Templates allow you to customize the structure and content of new notes. They're used in two places:

  • Content templates - The default content when creating a new note
  • Filename templates - How note files are named

Templates use variables that are automatically replaced when a note is created.

Template Syntax

Variables use the format ${namespace.variable}:

# ${note.title}

Date: ${date.day_name}, ${date.month_name} ${date.day}

If a variable isn't defined, it's left unchanged for debugging.

Note Variables

Available for all note types:

VariableDescriptionExample
${note.title}Note titleMeeting Notes
${note.type}Type IDjournal

Date Variables

Available only for daily notes (type = daily):

VariableDescriptionExample
${date.iso}ISO date format2025-10-22
${date.day}Day of month22
${date.month}Month number (zero-padded)10
${date.year}Four-digit year2025
${date.day_name}Day of weekWednesday
${date.month_name}Month nameOctober

Cursor Positioning

Use {{CURSOR}} to set where the cursor appears when a new note opens:

# ${date.day_name}, ${date.day} ${date.month_name} ${date.year}

- {{CURSOR}}

The cursor marker is removed and the cursor is positioned at that location.

Examples

Daily Note Template

A journal entry with automatic date formatting:

+++
name = 'Journal'
type = 'daily'
filename = '${date.iso}'
+++

# ${date.day_name}, ${date.day} ${date.month_name} ${date.year}

## What happened today?

- {{CURSOR}}

## Thoughts & reflections

-

Result: Creates 2025-10-22.md with title "Wednesday, 22 October 2025"

Reference Note Template

A simple page template:

+++
name = 'Pages'
singular = 'Page'
type = 'reference'
filename = '${note.title}'
+++

# ${note.title}

- {{CURSOR}}

Result: Creates meeting-notes.md (sanitized) with title "Meeting Notes"

Configuration Fields

FieldRequiredDescriptionExample
nameYesDisplay name for the directory'Journal'
singularNoSingular form for "New X Note" dialogs'Journal Entry'
typeNo'daily' or 'reference' (default: 'reference')'daily'
filenameNoFilename pattern template'${date.iso}'
iconNoIcon name from Carbon icons'calendar'
emojiNoEmoji fallback for icon'📔'

Note: For backward compatibility, type = 'note' is still accepted and treated as 'reference'.