srg-kostyrko / obsidian-journal

MIT License
70 stars 7 forks source link

Make rendering of interval-nav code block configurable #14

Closed Cito closed 5 months ago

Cito commented 5 months ago

This PR implements the feature suggested in issue #7.

It adds two new settings which are the templates to be used when rendering the name and the dates (interval) in the interval-nav code block. The default settings are chosen so that it looks exactly like before. The advantage is that this is now customizable.

Example settings for an alternative customization:

Note name template: {{date}} {{journal_name}} {{index}} Navigation name template: {{journal_name}} {{index}} Navigation dates template: {{start_date:D.M}} – {{end_date:D.M}}

This makes the navigation bar much more compact than it would look without this PR.

Note that in the navigation dates template, line breaks can be added using the pipe symbol.

srg-kostyrko commented 5 months ago

Thank you for your contribution