globalSummon and multipleActions should be able to be used at the same time #17172

Open
opened 2026-01-31 05:34:16 +00:00 by claunia · 1 comment
Owner

Originally created by @ironyman on GitHub (Apr 6, 2022).

I'm not sure if this is currently supported so apologies if I filed this incorrectly.

Description of the new feature/enhancement

In settings.json, allow actions in "actions" list to be globalSummon and have multiple actions.

It seems like both "globalSummon" and "multipleActions" go into the "action" field of the "command" object so you can't use both at the same time. But it seems natural to users (also I have a scenario where I would like this to work) that they would want to do globalSummon and then run some actions.

This would allow terminal to take market from autohotkey where users want to register global hotkeys as well but terminal can do something hotkey actions better because terminal can display the output and provide better user interface.

Proposed technical implementation details (optional)

Make globalSummon its own field in "command" that changes how the action keybinding is bound and let multipleActions behave the as it used to.

Originally created by @ironyman on GitHub (Apr 6, 2022). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> I'm not sure if this is currently supported so apologies if I filed this incorrectly. # Description of the new feature/enhancement In settings.json, allow actions in "actions" list to be globalSummon and have multiple actions. <!-- A clear and concise description of what the problem is that the new feature would solve. Describe why and how a user would use this new functionality (if applicable). --> It seems like both "globalSummon" and "multipleActions" go into the "action" field of the "command" object so you can't use both at the same time. But it seems natural to users (also I have a scenario where I would like this to work) that they would want to do globalSummon and then run some actions. This would allow terminal to take market from autohotkey where users want to register global hotkeys as well but terminal can do something hotkey actions better because terminal can display the output and provide better user interface. # Proposed technical implementation details (optional) Make globalSummon its own field in "command" that changes how the action keybinding is bound and let multipleActions behave the as it used to. <!-- A clear and concise description of what you want to happen. -->
Author
Owner

@zadjii-msft commented on GitHub (Apr 13, 2022):

Hmm, I feel like I've heard this one before...

It's not #10279 or #12135... It isn't in the spec, maybe I'm making this up.

<silly> Maybe we could add a then property to the globalSummon, that you could put an action (including a multipleActions action) into. So you could summon and do some stuff with a single keybinding.

That's not even that silly of an idea 🤔

@zadjii-msft commented on GitHub (Apr 13, 2022): Hmm, I feel like I've heard this one before... It's not #10279 or #12135... It isn't in the spec, maybe I'm making this up. \<silly> Maybe we could add a `then` property to the `globalSummon`, that you could put an action (including a `multipleActions` action) into. So you could summon _and do some stuff_ with a single keybinding. That's not even that silly of an idea 🤔
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#17172