Skip to content

Instantly share code, notes, and snippets.

@ScriptAutomate
Created February 3, 2022 02:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ScriptAutomate/e8d1466781bc97482a30355ca6456f44 to your computer and use it in GitHub Desktop.
Save ScriptAutomate/e8d1466781bc97482a30355ca6456f44 to your computer and use it in GitHub Desktop.
Dendron Schema for applying templates to scratch notes
version: 1
schemas:
# Daily is the top most schema since its parent is 'root' it must have an identifier
# this identifier 'daily' will be used when using 'Lookup (schema)' command.
- id: scratch
parent: root
title: scratch
desc: ""
# Children of the top most schema do not need to contain identifier and just
# require a 'pattern' to be set to match the hierarchy of notes.
children:
# This pattern matches the YYYY (year) child hierarchy
- pattern: "[0-2][0-9][0-9][0-9]"
children:
# This pattern matches the MM (month) child hierarchy
- pattern: "[0-1][0-9]"
children:
# This pattern matches the DD (day) child hierarchy
- pattern: "[0-3][0-9]"
children:
# This pattern matches the HHmmss (hour, minute, second) (ex. 210244)
- pattern: "[0-2][0-9][0-5][0-9][0-5][0-9]"
children:
# This pattern matches any string
- pattern: "*"
desc: Scratch Note
template: templates.daily
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment