Templater icon indicating copy to clipboard operation
Templater copied to clipboard

Note Creation with Core Plugin "Note Composer" Breaks Templater

Open shinyben opened this issue 1 year ago • 1 comments

Plugin information (please complete the following information):

  • OS: Windows 11
  • Templater version: [e.g. 0.3.4]
  • Obsidian version: 1.5.12
  • Templater settings: 2.3.3

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

shinyben avatar Jun 08 '24 01:06 shinyben

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.

McGlear avatar Jun 08 '24 05:06 McGlear