Hi, @noisneil. Really nice! Thanks for sharing.
Folks using your cool macro might also find this information useful:
Entering and Enhancing Forum Posts
Now for a few suggestions:
-
If I have text selected and trigger the macro, but then discover that I need to do something else before applying a style, it would be nice if the window could be dismissed two ways: 1) esc, or 2) return (with nothing in the Search formats... field).
-
Admittedly I'll probably use the search, enter a few characters, and return method mostly, but when using the click method, I'd prefer a single click vs a double click.
-
When no text is selected and the macro is triggered, IMO it's a bit disconcerting when nothing happens. Consider falling back to the clipboard text. This is really nice when pulling text from one doc for another. If this piques your interest, check out: Get Selected Text, Otherwise Clipboard
-
Consider adding an option to apply the
<kbd>tag to the string as a whole.
Lastly, you mentioned Augment or Transform Text. I do use it often when composing forum posts, but I probably use it more when creating macros. Just an FYI for those that might want to check it out.