Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude additional (custom) paths from Trigger Templater on new file creation #326

Open
sigmoid-azoth opened this issue Aug 12, 2021 · 2 comments · Fixed by #384
Open

Exclude additional (custom) paths from Trigger Templater on new file creation #326

sigmoid-azoth opened this issue Aug 12, 2021 · 2 comments · Fixed by #384
Assignees
Labels
enhancement New feature or request

Comments

@sigmoid-azoth
Copy link

Is your feature request related to a problem? Please describe.

Problem: a nested vault's templates (within nested vault's templates folder) are rendered when Trigger templater on new note creation is enabled for the parent vault and a file change (sync) occurs

I see that Templater does not Trigger templater on new note creation within the defined path of the templates folder of the parent vault

Describe the solution you'd like

Can this feature be extended to prevent triggering on defined paths?

Describe alternatives you've considered

Right now, I have the setting disabled, but I found it very helpful when quickly creating notes based on file names. I'm not sure of a workable way around the problem I described without leaving the setting disabled.

Additional context

The Templater setting I am referring to: image

Lastly, Templater is so awesome. It takes obsidian to a whole other level. Thank you for creating and sharing it!

@sigmoid-azoth sigmoid-azoth added the enhancement New feature or request label Aug 12, 2021
JeppeKlitgaard added a commit to JeppeKlitgaard/Templater that referenced this issue Sep 29, 2021
Implements folder-based templates similar to the functionality provided
by Vinzent03's `Hotkeys for Templates` plugin.

Since Templater also implements hotkeys directly, I think most people
will now be able to get all the functionality from Hotkeys for Templates
using just Templater.

Since this functionality supercedes the empty file template functionality,
that has been removed.

Fixes: SilentVoid13#326
SilentVoid13 added a commit that referenced this issue Sep 29, 2021
* chore(gitignore): vscode

* fix: spelling

* feat: folder-based templates.

Implements folder-based templates similar to the functionality provided
by Vinzent03's `Hotkeys for Templates` plugin.

Since Templater also implements hotkeys directly, I think most people
will now be able to get all the functionality from Hotkeys for Templates
using just Templater.

Since this functionality supercedes the empty file template functionality,
that has been removed.

Fixes: #326

* docs: Document folder templates

* refactor(foldertemplates): Use interface instead of array

* refactor(foldertemplates): cleaning code, refactoring a few things to make it pr-ready

Co-authored-by: SilentVoid13 <51264226+SilentVoid13@users.noreply.github.com>
@SilentVoid13 SilentVoid13 reopened this Sep 29, 2021
@SilentVoid13
Copy link
Owner

Re-opening because I initially misunderstood the request. A future version of Templater will add a way to ignore custom folders when using the "Trigger Templater on new file creation" option

@JeppeKlitgaard
Copy link
Contributor

Whoops, my bad for leading you astray on that one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants