I'd like to combine modifiers with using "Prompt With List". Think something like using ⌘↩ to reveal files in Alfred/LaunchBar. I can get a decent approximation, but there are issues:
⌘↩ does not work
most combos don't work (e.g. ⌥⇧↩)
slower. you'll need to hold the modifiers a bit longer than something like Alfred/LB
I want different actions to happen based on the modifiers down when the selection was made. In my particular example above, the list options were arbitrary. Maybe this would be more clear:
Thanks, this works as well for the mods and it might be quicker than the shell script.
The issue I'm having isn't so much getting the mods as it is using them with "Prompt with List". ⌘↩ will not select the current item and this is true for most of the possible modifier combos. At least on my system, it seems inconsistent which ones work. For example, ⌃⌘↩ works but ⌥⌘↩ does not. Can you select items with any of the combinations I mentioned?
Re-upping this because I just tried to do something similar and wasted a few minutes because you can use modifier combos like Option-Return and Shift-Return to select from Prompt With List, but not Command-Return (which just beeps).
The legend line in the Prompt with List can be effectively deactivated by using a double-underscore prefix in combination with an Until action:
DOWNLOAD Macro Actions: Until.kmactions (1.6 KB) WARNING: After downloading this macro, if you are editing a macro and import these actions, they will be inserted into the macro you are editing.
This token makes it much simpler to provide alternate behavior when a modifier is down when a selection is made.
Also, with Keyboard Maestro v10.2, Prompt With List selections can be made with the Return in combination with more modifiers:
1 Modifier Key
⌃⏎ YES
⌥⏎ YES
⇧⏎ YES
⌘⏎ YES
2 Modifier Keys
⌃⌥⏎ *PWL stalls and removes the Select Entry
⌃⇧⏎ YES
⌃⌘⏎ YES
⌥⇧⏎ YES
⌥⌘⏎ YES
⇧⌘⏎ YES
3 Modifier Keys
⌃⌥⇧⏎ *PWL stalls and removes Select Entry
⌃⌥⌘⏎ *PWL stalls and removes Select Entry
⌃⇧⌘⏎ YES
⌥⇧⌘⏎ YES
4 Modifier Keys
⌃⌥⇧⌘ *PWL stalls and removes Select Entry
Although the four combinations noted above do not seem to work in combination with Return, if the PWL selection is made by double-clicking the entry, the selection is made and the %PromptWithListModifiers% token properly indicates the state of the modifiers.
@peternlewis, thank you for making this awesome improvement! As one that prefers to use the keyboard and avoid the mouse when possible (to prevent ergonomic strain), %PromptWithListModifiers% is invaluable.
The "legend" line is interesting, thanks for suggesting this. I'm doing something similar but with the Title field, which, alas, means it doesn't show up when the default is prefilled to "all:". (I've sent a feature request to get "all:" behavior by default, with an empty search field, even with 100+ items in the list.)