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
I have set up a custom highlight with a CSS snippet and use % tp.file.selection() % with it. It works fine when used normally. The problem is when using multiple cursors which Obsidian supports natively. It duplicates the most recent selected text when applying the template with templater. More info below.
SYSTEM INFO:
Obsidian version: v1.6.7
Installer version: v1.6.7
Operating system: Windows 10 Home Single Language 10.0.19045
Login status: not logged in
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 1
Restricted mode: off
Plugins installed: 1
Plugins enabled: 1
1: Templater v2.7.1
The text was updated successfully, but these errors were encountered:
Plugin information
Describe the bug
I have set up a custom highlight with a CSS snippet and use % tp.file.selection() % with it. It works fine when used normally. The problem is when using multiple cursors which Obsidian supports natively. It duplicates the most recent selected text when applying the template with templater. More info below.
Template file content:
<mark class="red"><% tp.file.selection() %></mark>
Expected behavior
Does not duplicate the highlighted text when using the template with multiple cursors.
Screenshots
Template File
Bug in action
Additional context
Tested in Sandbox vault.
SYSTEM INFO:
Obsidian version: v1.6.7
Installer version: v1.6.7
Operating system: Windows 10 Home Single Language 10.0.19045
Login status: not logged in
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 1
Restricted mode: off
Plugins installed: 1
Plugins enabled: 1
1: Templater v2.7.1
The text was updated successfully, but these errors were encountered: