Insert Brackets Before and After a Highlighted/Marked Text

Hey, I would like to know, if there is a way to set a hotkey to insert brackets at the beginning and the end of a marked text

For example:
My name is Shervin
Shortcut
(My name is Shervin)

My (dumb) approach to this would be:

  1. Copy highlighted text to clipboard
  2. Prepend and append contents of clipboard with “(“ and “)” respectively
  3. Paste clipboard so it replaces original selection

Haven’t tried this but it sounds like it might work and the KM macro to do it would be simple!

As @tiffle suggested:

image

It is easy to assign a KM Hot Key trigger to your Macro.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Shervin, welcome to Keyboard Maestro (KM) and its Forum.

KM is one of the best Mac automation tools available, its Forum is one of the best and friendliest forums on the Internet. Whenever you reach a tough stumbling block trying to use KM, please feel free to post your question/problem here for help.

You will also find this helpful:

Getting Started with Keyboard Maestro

For more help, see Getting Started with Keyboard Maestro and the Forum .

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

1 Like

Toggler Macro (v9.2) has all that and then some. And you can toggle any of the behavior:

ss-824

1 Like