Hotkey to insert opening/closing tags
Opened this issue · 0 comments
Is your feature request related to a problem? Please describe.
I was writing a bunch of templates and, especially as I've a wonky keyboard that often likes to make a number of keys including the % key not work intermittently, I wanted to be able tap hotkeys to insert the templater command tags <%, <%*, -%>, %>. I assumed this would be something that already existed and just needed to be assigned, but as far as I've been able to find there's no assignable hotkeys to insert these tags. Please forgive me if i've somehow missed them, but I've been over the hotkeys and settings a bunch of times and couldn't find them.
Describe the solution you'd like
I'd like templater to come with built in hotkey settings for these symbols and toggling them on and off with the different combinations. Hotkeys for common templater strings would be great too. Could maybe be an option to add them to the list of template hotkeys.
Describe alternatives you've considered
I ended up making my own hotkeys for the symbols and toggling by making templates with each of them and tying those templates to hotkeys, however this means I have 8 separate files that clutter up a growing template list and working around needing to escape the characters, so I think having the hotkeys already built in would be grand.
This is the lists that I made:
insert individually: <%, <%*, -%>, %>
A toggle for each: <% %>, <% -%>, <%* %>, <%* -%>
, that if no selection, wraps cursor in the tags, if selection isn't wrapped with tags: wraps selection, and if selection is wrapped in any combo of tags: remove the tags.