obsidian-hotkeys-for-templates
obsidian-hotkeys-for-templates copied to clipboard
Bug when using hotkeys for templates that work on selected words.
Hi I've been trying set up hotkeys for a simple template file like such:
<mark class="blue"><% tp.file.selection() %></mark>
The template works as expected when I use the Templater plugin. However when I use the hotkeys , the selected words doesn't seem to be passed on to the template script like the result below

Is this a known bug?
Is your command called Insert from Templater: <template-file>
No they are Simply Insert: <template_file_name>
.
I figure that might be the problem, but the command Insert from Templater
wouldn't show in the Settings > Hotkeys.
I do have my Templater plugin enabled at the moment
Can you share a screenshot of the settings pane of this plugin?
Yes, This is the settings pane of Hotkeys for templates
:

And this is the settings pane for Templater
:

And finally for the core plugin Templates
:
Hmm strange, it doesn't show the templater templates. Could you open the console (CTRL + SHIFT +I
) and show me the output of
-
app.plugins.plugins["templater-obsidian"]._loaded
-
app.plugins.plugins["obsidian-hotkeys-for-templates"].activePlugins
-
Unfortunately, it is showing
true
. -
This is very strange, there are no active Plugins...
Hmm, are you on the latest version (1.4.3)?
Yes, it is😢
I was using templater 1.8.3 till just now and just updated to 1.9.9 and it's still not working unfortunately.
Did you restart Obsidian after update?
Yes I did, still not showing the For templater
option.
After upgrading the Templaters plugin I realized that they've added hotkeys to its feature. So I've resorted into using that one instead. But it's a bummer that this plugin is not working. I would prefer the UX of this plugin than the Templater's