Created
February 3, 2022 02:54
-
-
Save ScriptAutomate/e8d1466781bc97482a30355ca6456f44 to your computer and use it in GitHub Desktop.
Dendron Schema for applying templates to scratch notes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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