Augment or Filter Text

This macro is used to modify selected text or the clipboard text, if no text is selected. The text can be augmented* or filtered** in many ways. Here are three simple examples:

Task done  →  ~~Task done~~   (one of several Markdown additions)

"Hi there."  →  “Hi there.”   (dumb quotes converted to smart quotes)
	
local_KMvar  →  %Variable%local_KMvar% (variable name to variable value as text)

The macro has been designed to provide immediate additions (via dedicated hot keys) for those used frequently; whereas selection from two lists*** for those used less often.

*text additions can easily be added to the 34 initially configured
**text filters can be easily added to the 16 initially configured
***there is one list for text additions and one list for text filters

DEMONSTRATION
The following video includes four quick demonstrations of this macro: https://youtu.be/Yvnwopo6fio

SETTINGS
By default, this macro is triggered using a hyper key (⌃⌥⇧⌘), plus letter T for general use, B for Markdown Bold, I for Markdown Italics, L for Markdown Links, and V for Keyboard Maestro variable to variable value as text. These can be changed (or deleted, or added to) for individual needs, but (some combination of ⌃⌥⇧⌘ modifiers)+T should be used for general use and (some combination of ⌃⌥⇧⌘ modifiers)+(other keys) should be used for the immediate additions.

Refer to the comments above the two text variables local_Additions and local_Filters for more information.

TESTED WITH
• Big Sur, v11.2.2
• Keyboard Maestro, v9.2
• MacBookPro16,1

VERSION HISTORY
1.0 - Initial version

DOWNLOAD Macro File:
Augment or Filter Text.kmmacros (57 KB)
Note: This macro was uploaded in a DISABLED state. It must be ENABLED before it can be run. If it does not trigger, the macro group might also need to be ENABLED.

Image • Augment or Filter Text

3 Likes