You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Plugin information (please complete the following information):
OS: Windows 11 latest
Templater version: 2.3.3 (latest)
Obsidian version: 1.6.5 (latest)
Templater settings: I have a folder template setup to active when a new note is created in my default notes folder
Describe the bug
I use the Note Refactor Plugin to create a new note from a section of an existing note. I am using the command
. I can see visually what happens on the screen. The section of the existing note is copied to a new note which is created in the default notes folder. The content from the existing note appears for a few seconds in the new note and then I can see the that content being overwritten by the notes template specified in the folder template setup. This completely wipes out the data copied from the original note. I tried adding in <% tp.file.content %> to the notes template to get the content from the file, but it ends up empty.
Expected behavior
The folder templates section say that "folder templates are tiggered when a new empty file is created in a given folder" Since the refactored file is not empty, I would have expected that the folder template would not have been activated. If it was going to be activated, it would be nice if tp.file.content actually gave me the file content (then I could add that to the folder template and that content would be saved).
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
It feels like a timing issue where templater activates before the refactored file is populated and so doesn't notice that there is content.
The text was updated successfully, but these errors were encountered:
Plugin information (please complete the following information):
Describe the bug
I use the Note Refactor Plugin to create a new note from a section of an existing note. I am using the command
. I can see visually what happens on the screen. The section of the existing note is copied to a new note which is created in the default notes folder. The content from the existing note appears for a few seconds in the new note and then I can see the that content being overwritten by the notes template specified in the folder template setup. This completely wipes out the data copied from the original note. I tried adding in <% tp.file.content %> to the notes template to get the content from the file, but it ends up empty.
Expected behavior
The folder templates section say that "folder templates are tiggered when a new empty file is created in a given folder" Since the refactored file is not empty, I would have expected that the folder template would not have been activated. If it was going to be activated, it would be nice if tp.file.content actually gave me the file content (then I could add that to the folder template and that content would be saved).
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
It feels like a timing issue where templater activates before the refactored file is populated and so doesn't notice that there is content.
The text was updated successfully, but these errors were encountered: