Better integration with Templater plugin "folder templates" functionality. #1105
Replies: 2 comments
-
|
For anyone who finds this in the future, I managed to solve this using Templater user scripts. Here's how to do it
Now if you create Template option in quickadd settings, set it's template path to @chhoumann would you like to add this recipe to the docs? |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for coming back and writing this up so thoroughly - the script is clean and the walkthrough is easy to follow, and I appreciate you doing that for future searchers. On adding it to the docs: I am going to pass. The docs stay focused on QuickAdd-native patterns, and this recipe is fundamentally about Templater's folder-template settings, which I don't want the docs to take a dependency on. This discussion is public and indexed, so anyone searching for QuickAdd + folder templates will land right here on your write-up. That said, the underlying ask - pick a folder once and have the right template follow, without maintaining the mapping twice - has a fully native answer:
The one thing this does not cover is files created outside QuickAdd (file explorer, following an unresolved link) - QuickAdd only templates what it creates, and hooking the native creation paths is something I have deliberately decided against. For that ambient case, your recipe in this thread remains the reference. Closing as resolved since you've answered your own question - thanks again for sharing it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, first of all, thank you for your work on this awesome plugin.
Here's my problem: I'm using Templater plugin, with "Trigger Templater or new file creation" enabled and a per-folder template configuration. When I try to trigger it with a QuickAdd, I have to duplicate path to template in QuickAdd, since template path is required. Now I have to maintain this configuration in both places, which I'd prefer not to.
When I try to create just empty file using some dummy empty file template, Templater isn't being triggered, so I'm left with just empty file.
Is there a way to tell QuickAdd "just create new file in a given directory, and let Templater handle it from here"?
Beta Was this translation helpful? Give feedback.
All reactions