Describe the bug
Just like issues/795, QuickAdd is still not properly using the <% tp.file.cursor() %> line.
To Reproduce
I included a Templater template that had the line:
<% tp.file.cursor() %><%* app.workspace.activeLeaf.view.editor?.focus(); %>
When running it from Templater directly, the expected behavior happens. When including the template in a QuickAdd step, it does not. Aside from this one aspect, the rest of the template is applied.
Expected behavior
The <% tp.file.cursor() %> line should be removed, and the cursor should be placed there.
Screenshots
Templater settings (only Templater and QuickAdd included) -- Automatic jump to cursor is on

QuickAdd Settings for the command

Relevant section of Templater template

Creating the file before running Templater

File after running Templater directly (expected behavior)

Alternative approach using QuickAdd -- running the "New Task Note" command. Unexpected behavior, but every other part of the template works.

Desktop (please complete the following information):
- OS: Fedora Linux 42
- Version 1.17.0
Additional context
Disabling other plugins didn't help. Updating didn't help
Describe the bug
Just like issues/795, QuickAdd is still not properly using the
<% tp.file.cursor() %>line.To Reproduce
I included a Templater template that had the line:
When running it from Templater directly, the expected behavior happens. When including the template in a QuickAdd step, it does not. Aside from this one aspect, the rest of the template is applied.
Expected behavior
The
<% tp.file.cursor() %>line should be removed, and the cursor should be placed there.Screenshots
Templater settings (only Templater and QuickAdd included) -- Automatic jump to cursor is on

QuickAdd Settings for the command

Relevant section of Templater template

Creating the file before running Templater

File after running Templater directly (expected behavior)

Alternative approach using QuickAdd -- running the "New Task Note" command. Unexpected behavior, but every other part of the template works.

Desktop (please complete the following information):
Additional context
Disabling other plugins didn't help. Updating didn't help