mo-seph / obsidian-note-from-template

Simple plugin to create Notes from a template, and fill in fields defined there
MIT License
107 stars 9 forks source link

Dynamic template-output value #47

Open gudstrand opened 1 year ago

gudstrand commented 1 year ago

I want to prompt for a project in the template (using FromTemplate plugin) and then use that as a part of the template output. My template (as well as the many others I have tried) does not work. Is tis possible? How would I accomplish what I want?


parent: [[[[Project MOC]]]] type: project-page project: "{{project-name:choice:ProjectA:ProjectB:ProjectC}}" template-output: "Projects/{{project-name}}" template-should-create: "open-pane"

mo-seph commented 9 months ago

Ah - that's not currently supported, as it figures out the template-output directory before the fields are filled in. I'll have a look see if it's manageable to apply all of the final field values to those settings.

mo-seph commented 9 months ago

I've added this in the dev branch - I want to use the code for a few days before releasing, but it should be out soon