Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotkey to insert opening/closing tags #1501

Open
Graywaren opened this issue Nov 17, 2024 · 0 comments
Open

Hotkey to insert opening/closing tags #1501

Graywaren opened this issue Nov 17, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Graywaren
Copy link

Graywaren commented Nov 17, 2024

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.

@Graywaren Graywaren added the enhancement New feature or request label Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant