SilentVoid13 / Templater

A template plugin for obsidian
https://silentvoid13.github.io/Templater
GNU Affero General Public License v3.0
3.26k stars 195 forks source link

Trigger Templater on new file creation - ignore the templates folder #927

Open jasonamador opened 1 year ago

jasonamador commented 1 year ago

The Problem

I experienced an issue where my templates were getting evaluated to markdown without me doing anything. I created a template in my configured templates folder, and when I came back the next day my templater code was replaced with markdown.

Context

I store my vault in an iCloud drive and access it from multiple devices. I discovered that this issue is occurring because I have the "Trigger Templater on new file creation" feature enabled, so when I create a new template and it is downloaded to a different device from the iCloud drive, it is considered a new file and automatically evaluated.

Proposed Solution

I think it would be ideal to only trigger for new files that are not in the configured templates folder.

Alternatives

For now, I am just leaving that feature off and manually triggering templater for daily notes and other programmatically created notes.

AB1908 commented 1 year ago

Possible duplicate of #716