feat: add ignore folders on file creation setting#1710
Open
C-Bjorn wants to merge 5 commits intoSilentVoid13:masterfrom
Open
feat: add ignore folders on file creation setting#1710C-Bjorn wants to merge 5 commits intoSilentVoid13:masterfrom
C-Bjorn wants to merge 5 commits intoSilentVoid13:masterfrom
Conversation
Zachatoo
requested changes
Apr 19, 2026
Collaborator
Zachatoo
left a comment
There was a problem hiding this comment.
Can you please resolve the merge conflicts and make the requested changes? Thank you!
| "id": "templater-obsidian", | ||
| "name": "Templater", | ||
| "version": "2.18.1", | ||
| "version": "2.19.0-beta.1", |
Collaborator
There was a problem hiding this comment.
Please don't change version numbers in this file or other files, I have an automated process for that
| - name: npm build | ||
| run: | | ||
| npm install | ||
| npm install --legacy-peer-deps |
Collaborator
There was a problem hiding this comment.
I've resolved this in a different way, when you resolve conflicts please take my changes
Author
|
Hi @Zachatoo — both review items have been addressed in the latest commit (
I'll also resolve any remaining merge conflicts against current master. Ready for re-review when you have a chance. |
…lders-on-creation # Conflicts: # package.json # versions.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new setting under Trigger Templater on new file creation that lets users specify folders where Templater's file creation handler should be skipped entirely.
Files created inside these folders (and all subfolders) will not trigger the
on_file_creationhandler, preventing Templater syntax from being inadvertently stripped by other plugins or automation workflows.Changes
src/settings/Settings.tsIgnoreFolderOnCreationinterfaceignore_folders_on_creationtoDEFAULT_SETTINGSandSettingsinterfaceadd_ignore_folders_on_creation_setting()method shown first in the trigger section, above Folder templates and File regex templatessrc/core/Templater.tson_file_creation()beforedelay(300), usingnormalizePath+startsWithTesting
Tested locally in Obsidian: