SilentVoid13 / Templater

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

Note Creation with Core Plugin "Note Composer" Breaks Templater #1394

Open shinyben opened 1 month ago

shinyben commented 1 month ago

Plugin information (please complete the following information):

Describe the bug I have a note that is uncreated but I have it WikiLinked as a placeholder. I select some text and use Note Composer to merge that text into the uncreated note, initiating it with that text inside. Because my note is created in a folder I have defined a Folder Template for, the result is just a template without the merged text. (Running this multiple times occasionally throws a Templater error, which gives the expected behavior).

Expected behavior The template runs and the merged text is underneath. Alternatively, Templater does not run because the file is non-empty

Screenshots

Additional context

McGlear commented 4 weeks ago

I think you are asking two Plugins to change a file simultaneously. I would assume that the file is presented to Templater by the Obsidian editor as an empty file (because whatever Note Composer will paste into it isn't there upon creation). Could you integrate the Note Composer functionality into your Templater script? Templater can handle selected text and text on the clipboard, too.