Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shinyben opened this issue Jun 8, 2024 · 1 comment
Open

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

shinyben opened this issue Jun 8, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@shinyben
Copy link

shinyben commented Jun 8, 2024

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 shinyben added the bug Something isn't working label Jun 8, 2024
@McGlear
Copy link

McGlear commented Jun 8, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants