Merge branch 'feature-template-dates' into main

This commit is contained in:
Rene Schallner
2021-12-13 17:19:36 +01:00
3 changed files with 150 additions and 53 deletions

View File

@@ -631,9 +631,24 @@ Currently, the following substitutions will be made during new note creation:
| --- | --- | --- |
| `{{title}}` | the title of the note | My new note |
| `{{date}}` | date in iso format | 2021-11-21 |
| `{{prevday}}` | previous day's date in iso format | 2021-11-20 |
| `{{nextday}}` | next day's date in iso format | 2021-11-22 |
| `{{hdate}}` | date in long format | Sunday, November 21st, 2021 |
| `{{week}}` | week of the year | 46 |
| `{{prevweek}}` | previous week of the year | 45 |
| `{{nextweek}}` | next week of the year | 47 |
| `{{isoweek}}` | week of the year in iso format | 2021-W46 |
| `{{isoprevweek}}` | previous week of the year in iso format | 2021-W45 |
| `{{isonextweek}}` | next week of the year in iso format| 2021-W47 |
| `{{year}}` | year | 2021 |
| `{{monday}}` | monday's date | 2021-11-16 |
| `{{tuesday}}` | tuesday's date | 2021-11-17 |
| `{{wednesday}}` | wednesday's date | 2021-11-18 |
| `{{thursday}}` | thursday's date | 2021-11-19 |
| `{{friday}}` | friday's date | 2021-11-20 |
| `{{saturday}}` | saturday's date | 2021-11-21 |
| `{{sunday}}` | sunday's date | 2021-11-22 |
Note: Sunday will be adjusted by the user's `calendar_monday` preference.
As an example, this is my template for new notes: