obsidian-periodic-notes
obsidian-periodic-notes copied to clipboard
Suggestion: Listen on note creations with a format identical to periodic note format
My workflow requires me to have my daily notes of a week already created in advance.
My weekly notes link to each daily note, however, these are dead links. If I choose to create these daily notes by ctrl click on the link it will create just a new file like any other.
I think a great solution to this would be to give the possibility of listening to file creations (similar to Templater plugin) and if the file title matches any formats declared in the periodic settings it will automatically create a periodic note.
example:
[[2021-12-01]] dead link
periodic note daily format: YYYY-MM-DD
on file creation, the plugin reads the title. If the title matches any format it will create it like declared in the settings.
I think to avoid conflicts with the Templater plugin, a better (simpler) approach might just be sharing a template that can be used with the templater plugin to accomplish this. There are already some examples in the Discussions for how to use Templater for your periodic notes (e.g. https://github.com/SilentVoid13/Templater/discussions/240) so I think that's a better strategy vs. reimplementing it in this plugin too.
Templater can trigger on new note creation. So by having an option to do no processing and let templater be invoked things should work. Right?