Change defaults for Typing Trigger

New Keyboard Maestro user here. I want to add lots of Typed String Trigger macros, but I don't ever have a case where I would ever want them triggered in the middle of a word. The default for that trigger, though, is "following any character", and so I have to change this with the mouse every single time. Is there a way to change this default so that when I add a new Typed String Trigger, the default is "following a word break"?

While you can't change the defaults, you can create a "template" macro with the settings you like, and then just duplicate it for each new Macro you want to create.

You could even create a macro to "Create New Macro from Template" to make things really easy.

Thanks for the reply. How would I create a macro to do the "create from template"? I don't see any actions that could somehow duplicate an existing macro.

Menu > Edit > Duplicate could be used in combination with some mouse move actions. There's probably an applescript alternative as well

Thanks - found the menu items I needed, and now it's working!

For a great tool and comprehensive solution, checkout this macro:
MACRO: [KMFAM] Favorite Actions and Macros by @DanThomas

Highly recommended.

But for a quick start:

  1. Create a macro in the Macro Group where you will most likely need to create new macros. Give it a clever name like "Typed String Trigger Template". :wink:
  2. When you want to create a new macro, select the above template macro, and press ⌘D
  3. Give new macro an appropriate title and carry on. :smile:

If you are adding lots, you might want to use something like:

or

A slight change to the XML would preset the “following any character” setting as you desire.

Wow! I knew that Keyboard Maestro was powerful, but seeing these examples and some of the others in the macro library have opened my eyes. Now I need to avoid getting sucked into spending all my time playing with this... :grin:

You can also try my New Text Expansion From Selection macro.

It is based on Peter’s macro, but allows you to set some settings in the prompt. The “Match after any” setting is persistent between macro runs.