I want to be able to do this in any app, and I also want to be able to do it with parens, brackets, curly braces, those weird backwards quotes etc.
I realize I can do it with Keyboard Maestro, but I’m not using KM right now, and find it a bit heavy-duty for just this use case.
Tools I do have installed, and would prefer using (sorted by how useful I think they would be here :)): Raycast, Espanso… Paste…?
Installing a new light-duty tool would obviously be fine as long as long as it’s not a huge deal…
Yes, yes, it’s a programming thing, but I don’t want to just do it in my IDE (JetBrains), since I often write code on GitHubs web interface and in terminals and stuff.
Are you looking to enclose already written text? Or are you looking to have the closing character of the pair automatically added when the opening character is typed?
For the former I to recommend PopClip. For the latter I would expect you could define rules in Espanso (I use Typinator for this case).
With a Universal Action WorkFlow. I have about a dozen of them. You can see the formation of one of them below. Then I select the text and hit my Universal Action key (opt-tab for me) and I get a menu of choices.