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
Describe the bug
Since updating Templater to version 1.13.2, the tp.file.cursor() function no longer works as intended. Previously, using the following template code would place the cursor at a designated position and automatically focus the editor:
The placeholder <% tp.file.cursor() %> remains visible as plain text in the inserted template.
The cursor does not move to the specified position.
Unlike initially thought, the issue is not related to Templater. If I create a file in the intended folder directly the function executes without issues.
Expected behavior
The <% tp.file.cursor() %> placeholder should not appear in the final inserted text.
The cursor should automatically move to the position defined by tp.file.cursor().
The editor should focus at the cursor's new position.
Desktop (please complete the following information):
OS: macOS Sequoia 15.3.2 (24D81)
Obsidian Version: 1.8.9
Templater Version: 2.10.0
Additional context
"Automatic jump to cursor" is enabled in the Templater settings.
Other QuickAdd functions work correctly.
Disabling other plugins did not resolve the issue.
The text was updated successfully, but these errors were encountered:
Describe the bug
Since updating Templater to version 1.13.2, the
tp.file.cursor()
function no longer works as intended. Previously, using the following template code would place the cursor at a designated position and automatically focus the editor:<% tp.file.cursor() %><%* app.workspace.activeLeaf.view.editor?.focus(); %>
After the update:
<% tp.file.cursor() %>
remains visible as plain text in the inserted template.Unlike initially thought, the issue is not related to Templater. If I create a file in the intended folder directly the function executes without issues.
Expected behavior
<% tp.file.cursor() %>
placeholder should not appear in the final inserted text.tp.file.cursor()
.Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: