MACRO: A Spotlight-like Prompt With List alternative

i've really enjoyed using the App Launcher macro I wrote—especially the fuzzy search feature. I took that macro turned it into a simple alternative to the Prompt With List action in Keyboard Maestro. I kept the light/dark support, custom sizing, and optional fuzzy search from the App Launcher, and tossed out all the app-related stuff.

Overview

The macro is really easy to use: Just put your list in a variable, decide which options to enable, and you're done. The list can use an optional delimiter to return a different value than what's displayed (as in a__Option A returns a), or without a delimiter, where the full selection value is returned.

Activate the macro, and you'll see your list:

As you can see, fuzzy search lets you type letters from different words in the list to find matches, which can be very powerful.

The Macro

— Generic Spotlight prompt.kmmacros (19 KB)

Macro screenshot

To use, decide if you want a delimited list, to return values other than what's displayed (the default), or non-delimited. You can change the delimiting characters (in local_theDelimiter) to whatever you like; remove them entirely to not use delimited values.

Replace the dummy data in the local_theList variable, and decide on theme, fuzzy searching, and window height/width (the remaining green boxes). Run the macro, make a selection, and the returned value will be displayed.

To use this in a real macro, you'd want to use Case or If/Then actions to act on the returned value; if you have a delimited list of URLs and movies, for example, you could use the Open URL action to open the selected movie's URL in your browser.

This his bare bones, and meant to be used as part of larger macros, serving as another method of gathering user input. As such, the macro as provided is more of a demo, even though it does work. It just doesn't do anything all that useful :).

-rob.

4 Likes

Very nice! I had a go at something like this myself. See what you think.

2 Likes

Very nice! Had I seen that, I probably wouldn't have tossed mine together, given it's very basic by comparison! :smile:

-rob.

1 Like

You've done a lovely job with the look and feel of it and I like the way you've laid things out at the bottom. Always room for more things like this, I say!

2 Likes

Agree, @noisneil; I like both.

Next update, consider stealing what you like from @griffman's. :wink: (I've stolen plenty from both of you!)

What's missing? I think I have it all covered as far as I can see...?

By the way, Rob, I'm not trying to steal your thunder here. You came up with all of that on your own, whereas mine is the result of dozens of other users' input in that thread. I'm impressed!

1 Like

There's no thunder to steal here—this forum is all about sharing, which is awesome. I don't care who does what when or used which macro to do what thing with their macro. I just love seeing all the solutions!

-rob.

5 Likes

That’s well said, but I’m always pleased to see the courteous (and often very useful) referencing of previous work that is the norm in the forum.

2 Likes