srg-kostyrko / obsidian-journal

MIT License
124 stars 8 forks source link

feat: update calendar month view on file create & delete, center calendar in month view #51

Closed ianyimi closed 4 months ago

ianyimi commented 5 months ago

feat: center calendar-view-month in sidebar view feat: calendar updates on file creation Useful in the case of creating files in the journal via quickadd templates or macros; the calendar now automatically updates to show there is something for that day without having to click it on the calendar. For this to work the file must first be created, then have its properties edited so it is seen by the journals plugin. I noticed having this information fully encoded in a template file like <% tp.file.name %> does not work, the template file breaks the plugin because the template journal-start-date & journal-end-date values are not proper dates. I may potentially look around further to see if there is a pretty simple way to stop the plugin from reading the template journal data in the calendar view so this can potentially work