Add a shortcut action for executing multiple ShortcutActions #8229

Closed
opened 2026-01-31 01:24:05 +00:00 by claunia · 10 comments
Owner

Originally created by @zadjii-msft on GitHub (May 18, 2020).

Dispatch a whole bunch of commands all at once.

{
    "action": {
        "command": "executeActions",
        "actions": [
            { "action": "newTab", "profile": "Ubuntu" },
            { "action": "splitPane", "split":"auto", "splitMode": "duplicate" },
        ]
    },
    "keys": []
}

We could probably use the same machinery we use for commandline args for this.

Originally created by @zadjii-msft on GitHub (May 18, 2020). Dispatch a whole bunch of commands all at once. ```json { "action": { "command": "executeActions", "actions": [ { "action": "newTab", "profile": "Ubuntu" }, { "action": "splitPane", "split":"auto", "splitMode": "duplicate" }, ] }, "keys": [] } ``` We could probably use the same machinery we use for commandline args for this.
claunia added the Area-SettingsIssue-TaskResolution-DuplicateProduct-Terminal labels 2026-01-31 01:24:05 +00:00
Author
Owner

@DHowett commented on GitHub (May 19, 2020):

[Needs-MiniSpec]

@DHowett commented on GitHub (May 19, 2020): [Needs-MiniSpec]
Author
Owner

@DHowett commented on GitHub (May 19, 2020):

This will be part of Command Palette (#5400), I bet?

@DHowett commented on GitHub (May 19, 2020): This will be part of Command Palette (#5400), I bet?
Author
Owner

@damnskippy commented on GitHub (May 27, 2020):

@zadjii-msft does this allow for mapping a key binding to a set of key input, as noted in https://github.com/microsoft/terminal/issues/3799?

@damnskippy commented on GitHub (May 27, 2020): @zadjii-msft does this allow for mapping a key binding to a set of key input, as noted in https://github.com/microsoft/terminal/issues/3799?
Author
Owner

@zadjii-msft commented on GitHub (May 27, 2020):

@damnskippy Nah, the two issues are pretty atomic. This issue is more along the lines of "I want to press one keybinding and open a new tab, and split that tab into a bunch of panes, and open a couple other tabs, all at once". Theoretically, the two combined could be "open a tab, and send a bunch of input to it, then open another pane, and send input to that one too"

@zadjii-msft commented on GitHub (May 27, 2020): @damnskippy Nah, the two issues are pretty atomic. This issue is more along the lines of "I want to press one keybinding and open a new tab, and split that tab into a bunch of panes, and open a couple other tabs, all at once". Theoretically, the two combined could be "open a tab, and send a bunch of input to it, then open another pane, and send input to that one too"
Author
Owner

@digitalinfinity commented on GitHub (May 28, 2020):

@zadjii-msft this feature is ❤️ - in ConEmu, I have a jumplist task to open multiple shell tabs at once. If I understand this issue correctly, until this feature is implemented, that's not possible in terminal today (even if not from the jumplist)?

@digitalinfinity commented on GitHub (May 28, 2020): @zadjii-msft this feature is ❤️ - in ConEmu, I have a jumplist task to open multiple shell tabs at once. If I understand this issue correctly, until this feature is implemented, that's not possible in terminal today (even if not from the jumplist)?
Author
Owner

@carlos-zamora commented on GitHub (Jun 2, 2020):

Just a thought, what if we did it like this:

{
    "action": [
        { "action": "newTab", "profile": "Ubuntu" },
        { "action": "splitPane", "split":"auto", "splitMode": "duplicate" },
    ],
    "keys": []
}

Just override action to support an array.

@carlos-zamora commented on GitHub (Jun 2, 2020): Just a thought, what if we did it like this: ```json { "action": [ { "action": "newTab", "profile": "Ubuntu" }, { "action": "splitPane", "split":"auto", "splitMode": "duplicate" }, ], "keys": [] } ``` Just override `action` to support an array.
Author
Owner

@DHowett commented on GitHub (Jun 2, 2020):

If action supports an array, can you do this?

"action": [
   { "action": [
      { "action": [
         { "action": [
            { "action": [
...
@DHowett commented on GitHub (Jun 2, 2020): If `action` supports an array, can you do this? ``` "action": [ { "action": [ { "action": [ { "action": [ { "action": [ ... ```
Author
Owner

@carlos-zamora commented on GitHub (Jun 2, 2020):

Sure, why not? That wouldn't break anything, right? It's just inefficient?

@carlos-zamora commented on GitHub (Jun 2, 2020): Sure, why not? That wouldn't break anything, right? It's just inefficient?
Author
Owner

@zadjii-msft commented on GitHub (Sep 27, 2021):

Oh my god this is a /dup #3992

@zadjii-msft commented on GitHub (Sep 27, 2021): Oh my god this is a /dup #3992
Author
Owner

@ghost commented on GitHub (Sep 27, 2021):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Sep 27, 2021): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#8229