Prompt with List

Hi, Does BTT have any action that is roughly equivalent to Keyboard Maestro's "Prompt With List" action? action:Prompt With List [Keyboard Maestro Wiki]

If not, are there any recommendations for the easiest way to achieve something similar in BTT?

Depending on what exactly you want to do, a floating menu or a custom menu could be an option.

Both can do similar things to the KM palettes.

1 Like

Yep, if possible describe a concrete usecase then I can post an example!

1 Like

My current goal is really just functionality of the KM action: provide a list of options to choose from (with possible key/details functionality), filter the list by typing, choose one more items from the list, and then pass on the key of the selected item to another action.

My first thought was using a floating menu or WebView, but before investing the time to make the logic to read in the list, filter/choose the option, and style it, I thought I'd check to see if I was missing something. :slight_smile:

The specific use case currently is:

  1. I want to provide the action of list of citekeys and details for academic citations, something like this for each item: citekey|Long string of citation details
  2. The UI would display the list, have a field to keep typing in, typing would filter the list.
  3. Be able to select one ore more items from the filtered list
  4. Pass on the key to the next action
  5. In this case, the next action would be inserting text, but might involve other steps first. :slight_smile:

I think especially filtering will be hard to achieve with floating menus right now.

However I have something that will pretty much do what you want, it's an extension to the "Ask for input (save to variable) action" that will allow to provide a list of items. It should be ready with the next BTT version.

1 Like

It would be great if you could quickly evaluate whether that is what you need, the UI is already live for the predefined action "Search Menu Bar Status Items", it will be available in a generic, configurable way soon.

That's sounds great! I'll hold off until then.

I just tried that, and that's pretty much exactly the UI I'm looking for. :slight_smile:

That will much better than trying to recreate it with a webview. :slight_smile:

1 Like

Great! I'll update here when the generic version is done. Should be sometime this week.

1 Like

Great. Thanks!

Just out of curiosity. Are you switching from KM to BTT? or why do you want to do it with BTT if you are already doing it with KM?

I have both BTT and KM, and use both for various tasks. For each task, I tend to evaluate which seems to work better. Some times it's just how well each app works for other actions in the workflow.

In this case, the main put off for the KM prompt was actually just having the logo in the prompt window :joy:.

There also doesn't appear to be a way to position the prompt window in KM, but I hadn't actually gotten as far as deciding whether that was needed in this case.

1 Like

@somelinguist What Andreas suggests is certainly the best. However, it occurred to me that you could use the KM function “Trigger Macro by Name” to find / filter certain macros. With the UUID you can also trigger BTT macros. Just a thought :slightly_smiling_face:

v4.681 alpha adds a first version of this:



It's not yet very configurable and submenus are not yet supported. WIll be improved later this week.

1 Like

Nice! Is there an “easy” way to add all existing macros to the list?

all of them? :sweat_smile:

Not yet, for this I will need to add some performance improvements, but in general it should be possible

2 Likes

Thanks for the update!

Will there be a way to create the list programmatically? I'm hoping to pass something like one item per line with a key and description, etc, or maybe even just JSON.

Other clever idea I just saw this week: https://menubox.app/docs/shortcut-actions#example

Thanks for the idea. I did do something similar for once for something else, and it worked quite well!

1 Like

@Andreas_Hegenberg Please take this as information only, not as a wish. The really useful thing about “Trigger Macro by Name” from KM is that all macros are automatically added to the list. You do not have to set up this list manually. However, it is possible to restrict this “list” to certain areas if you wish.

1 Like