Multiple (~30) Text Manipulation (Case Change) and Text Expansion Macros

date_time
textedit
text_expansion
text

#1

Nothing fancy here. These are several simple macros that I use to apply the built-in filters, manipulate the clipboard or some highlighted text, expand the date, etc. I use these every day (all triggered by name) and thought they might be useful to you or give you ideas. I have marked those of my own creation and those that are more than just applying filters in bold.

Text Manipulation
Download all: Text Manipulation Macros.kmmacros (110.7 KB))

[TM] Add Quotation Marks to Highlighted Text.kmmacros (6.3 KB)
[TM] Capitalize Highlighted Text.kmmacros (6.3 KB)
[TM] Character:Word:Line Count.kmmacros (7.7 KB)
[TM] Double Space Lines of Highlighted Text.kmmacros (8.2 KB)
[TM] Insert Current Clipboard by Typing.kmmacros (4.5 KB)
(Useful for pesky new-password forms that do not allow pasting from 1password and similar)
[TM] Invert List from Highlighted Text.kmmacros (8.2 KB)
[TM] Lowercase Highlighted Text.kmmacros (6.6 KB)
[TM] Numbered List from Highlighted Text.kmmacros (9.1 KB)
[TM] Remove Blank Lines from Hightlighted Text.kmmacros (8.3 KB)
[TM] Remove Spaces From Highlighted Text.kmmacros (6.4 KB)
[TM] Sentence Case Highlighted Text.kmmacros (6.9 KB)
[TM] Title Case Highlighted Text.kmmacros (6.6 KB)
[TM] Remove Symbols From Highlighted Text.kmmacros (6.5 KB)
(Useful for new-password forms that do not accept symbols and do not warn you first)
[TM] Trim Whitespace from Highlighted Text.kmmacros (6.3 KB)
[TM] Trim Clipboard To n Characters.kmmacros (6.4 KB)
(Useful for new-password forms that limit password length and do not warn you first)
[TM] Unordered List from Highlighted Text.kmmacros (8.1 KB)


Text Expansion
Download all: Text Expansions Macros.kmmacros (8.9 KB)

Date - Date Time.kmmacros (2.0 KB)
Date - Day.kmmacros (2.0 KB)
Date - File Date.kmmacros (2.0 KB)
(Inserts date in YYMMdd format followed by an underscore, ie: 161114_)
Date - Number Date.kmmacros (2.0 KB)
Date - Long Date.kmmacros (2.0 KB)
Date - Short Date.kmmacros (2.0 KB)
Time - Time.kmmacros (2.0 KB)


Text Expansion (Finder Specific)
Download all: Text Expansions (Finder Specific) Macros.kmmacros (7.3 KB)

kind:folder.kmmacros (2.0 KB)
kind:image.kmmacros (1.9 KB)
kind:music.kmmacros (1.9 KB)
kind:pdf.kmmacros (1.9 KB)


Create White Space between items in bullet list
#2

Thanks for posting. I will definitely be looking at some of these.

It would be good if you could post a .zip file containing all these macros so we could download them all in one go. Even if we just want to look at them, it’s easier in the KM Editor to just load them all into one group (presumably with Dan’s Macro Import Manager for viewing.

Or you could just collect copies all of these into one KM group in your Editor and post the group. (It should be inactive when you post.)


#3

I’ve added a download all for each group as you suggested.


#4

Thanks for sharing. Looks like a lot of great stuff in there. :thumbsup:


#5

Just in case someone hasn’t figured this out, I found the following keystrokes to bring up the list of @cfriend’s macros:

[tm
(note the SPACE after the “m”)

Then you see the list, alphabetically sorted. After the space, just type the first few characters of any macro in the list to select.

Well designed, @cfriend. :smile:

EDIT:
I just noticed one of my macros in the list, which also has a prefix of “[TM]”.
In my case, the “TM” stands for Time Machine.


#6

Thank you. Personally I usually skip the prefix and go straight for a chunk of the keywords like:

The only downside with skipping the prefix is that it produces some false positives, based on actions and comments in other macros.


#7

Exactly. I found many other hits.
It is easy enough for me to first type “’[tm '”


#8

I guess I don’t have a deep enough library yet :smiley:


#9

Useful macro for dates expressions.


#10

How do you bring up this list for typing?? I always wondered, how I can manage to display a search field for macros, as I can’t memorize them all


#11

That is “Trigger Macro by Name.” I have it bound to ⇧⌘Space.


#12

Thank you,
it´s another of those “secrets” only known to the “old wizards of KM”.

I found the URL:
https://wiki.keyboardmaestro.com/action/Trigger_Macro_by_Name


#13

It’s my preferred method of calling macros, now. I use a lot of conflict palettes, too, especially with eBay.

This one is triggered with ⌥S (“S” for shipping)
i.e.: ⌥S P 9 Will run the USPS PFR $9.95 macro.

This one is triggered with the typed string of ;e (“e” for ebay)
i.e.: Typing ;ecg Runs the eBay Cloud Good ESN Macro.


#14

A post was split to a new topic: How to map typed “Hello” to “+ Hello +”