marcusolsson / obsidian-projects

Plain text project planning in Obsidian
Apache License 2.0
1.42k stars 56 forks source link

Add support for Templater templates in new notes #889

Open H3mul opened 4 months ago

H3mul commented 4 months ago

PR for #42, since that issue hasn't had any activity

In addition to the proposal, the project setting disappears from the menu if Templater is disabled/not installed, as requested

image

Acylation commented 4 months ago

Thank you so much on contributing! I will review this and add zh-cn translation in a day or two.

A quick question, can it be a plugin-level config so that users can always call templater with one setup? To achieve this we need to ensure that templater would skip empty/plain templates and let Projects handle it. Also in the origin issue, bon proposed a template-level enable mark. It seems that the config level should be carefully designed.

H3mul commented 4 months ago

Huh... during testing, I noticed Templater has a setting for automatically picking up new files and rendering templates transparently - technically this fulfills #42 as is :) it satisfies my use-case

image

The only reason I see to go forward with the changes in this PR is if someone wants to use Templater but doesn't want it to run on all new files for some reason. I'll be happy to continue working on this code if you think its enough of a use-case. Feel free to close this and #42 otherwise