TabletopRes/.foam/templates/template-template.md

1.2 KiB

foam_template type
name description filepath
zzz-Default Template Default Template (do not use) default-template/$FOAM_TITLE.md
default-template

${1:$TM_FILENAME_BASE}

Welcome to Foam templates.

What you see in the heading is a placeholder

  • it allows you to quickly move through positions of the new note by pressing TAB, e.g. to easily fill fields
  • a placeholder optionally has a default value, which can be some text or, as in this case, a variable
    • when landing on a placeholder, the default value is already selected so you can easily replace it
  • a placeholder can define a list of values, e.g.: ${2|one,two,three|}
  • you can use variables even outside of placeholders, here is today's date: {CURRENT_YEAR}/{CURRENT_MONTH}/${CURRENT_DATE}

For a full list of features see the VS Code snippets page.

To get started

  1. edit this file to create the shape new notes from this template will look like
  2. create a note from this template by running the Foam: Create New Note From Template command