liamcain / obsidian-periodic-notes

Create/manage your daily, weekly, and monthly notes in Obsidian
MIT License
940 stars 61 forks source link

Use templates when opening links to weekly/daily/monthly notes #45

Open ankushg opened 3 years ago

ankushg commented 3 years ago

Many of my templates have links to the relevant week/days/months too (eg., all weeks in a month; the days of the week; the week from a day; the month from a week)

When I use the Calendar view or Command Palette to pop into a week/day, the templates are used and populated with links to where the other relevant files will be. Yay!

Buuuuuut when I click into the links in the doc instead of the Calendar view or Command Palette, I end up in an empty note without the template applied 😔

Is there any way for this plugin to hook into that flow?

ankushg commented 3 years ago

For reference, it looks like Templater listens to new file creation events and runs itself on that new file

tim-hilde commented 3 years ago

Did you manage to solve this? I'm having the same issue

ankushg commented 3 years ago

I just rewrote my templates to use the Templater engine instead of relying on Periodic Note's {{ date }} stuff 🤷🏽

kenanmike commented 3 years ago

This is my biggest question / issue with Periodic Notes at the moment. How can I make sure the day/week/month notes I create from ‘previous’ or ‘next’ links get put into the correct folder and with the correct template specified from my Periodic Notes settings?

CarlAndersson commented 3 years ago

I just rewrote my templates to use the Templater engine instead of relying on Periodic Note's {{ date }} stuff 🤷🏽

@ankushg Did you manage to have dedicated templates for e.g. daily notes? I can only get templater to use the "Empty File Template" when clicking on links...