"Destination file already exists" error after turning on Trigger Templater on new file creation setting #778
Replies: 6 comments
-
The |
Beta Was this translation helpful? Give feedback.
-
I am trying to use a trigger symbol which is "-" in this case to |
Beta Was this translation helpful? Give feedback.
-
Yeah so to avoid the filename conflict you could move the note to a different folder with Or you could look if the name already exists in the given folder and add a number to the filename to make it unique. Do either of those work? |
Beta Was this translation helpful? Give feedback.
-
I think what caused this problem is that the rename command was triggered twice. The first time is when i apply the template after the second template is being included. The second time is when Templater plugin detected the command and run it again. This is why when i turned off that setting, it would work just fine. |
Beta Was this translation helpful? Give feedback.
-
I'm having the same issue where I do "dash-Work" to activate a specific template then a child template with move meta template picker (for all new files) → picks the dashboard template
Child template - The dashboard template than renames
expected behaviour: one file "00 System/04 Work Dashboard" |
Beta Was this translation helpful? Give feedback.
-
I had a similar issue when I was using |
Beta Was this translation helpful? Give feedback.
-
Plugin informations (please complete the following information):
Describe the bug
This bug occurs after I turned on "Trigger Templater on new file creation". I have a template that uses the tp.file.include module referring to a child template. In the child template, there is a line of tp.file.rename. After I apply the former template, the error occurs and a new file is created as the picture below shows.
One solution i came up with would be to have an option that user can only enable the Folder Templates, so the plugin would not execute all scripts in newly created files despite they are not created in the folders that are specified in the setting.
Expected behavior
include the child template into the file without the file creation.
Screenshots
If applicable, add screenshots to help explain your problem.
the error
one extra file that is created
the code in the parent template
the code in the child template
Beta Was this translation helpful? Give feedback.
All reactions