Skip to content

Commit

Permalink
updating templating in README
Browse files Browse the repository at this point in the history
  • Loading branch information
Ebonsignori committed Nov 1, 2023
1 parent ef7a57f commit 6abdcff
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ For Monthly Notes:

- `For year` backfill will a note each month before today month prefix, e.g. `January -` for each month of the year before this month

## Templating

You can include a configurable token (default `{{auto-journal-date}}`) in a template to be replaced by the date that the file would have been created in a backfill rather than the date it was actually created on.

By default, all variables from the [core Templates](https://help.obsidian.md/Plugins/Templates) plugin are supported using the settings from the core Templates plugin for date formatting e.g. `{{title}}`, `{{date}}`, `{{time}}`

However, `{{date}}` and `{{time}}` will use the day that you opened Obsidian and Auto Journal ran to create note files on, rather than the date that a backfilled note would have if it was created on the date it represents.

## Commands

Opening today's daily/monthly note or the next/previous from today or the next/previous from the current note can be done via the command prompt with the following `Auto Journal: ` commands.
Expand Down Expand Up @@ -87,12 +95,6 @@ You can add CSS to the following classes to change the styling and/or positions

Or you can adjust the CSS of a specific button using the button's `id` which is the same as its type. For instance a `next-daily` button has the id that can be accessed in CSS via `#next-daily`

### Templating the date in a backfill

You can include a configurable token in a template to be replaced by the date that the file would have been created in a backfill.

By default, the token `<$date-from-auto-journal$>` in a template file will be replaced by a date in format `YYYY-MM-DD`. If you add the date to the property/frontmatter of your template, e.g. `date: <$date-from-auto-journal$>` you can use that date in other plugins.

## Plugins that pair well for daily journaling

- [Custom File Explorer sorting](https://github.com/SebastianMC/obsidian-custom-sort) Since the default names of each journal are the full names of the months e.g. `January` the following `sortspec` file placed in the root folder of your journal will organize them in the correct order on your filesystem.
Expand Down

0 comments on commit 6abdcff

Please sign in to comment.