Skip to content

Add a shortcut action for executing multiple ShortcutActions #5970

Closed

Description

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.

Activity

  1. ghost added
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    on May 18, 2020
  2. ghost added
    Needs-Tag-FixDoesn't match tag requirements
    on May 18, 2020
  3. added
    Area-SettingsIssues related to settings and customizability, for console or terminal
    Issue-TaskIt's a feature request, but it doesn't really need a major design.
    on May 18, 2020
  4. ghost removed
    Needs-Tag-FixDoesn't match tag requirements
    on May 18, 2020
  5. DHowett commented on May 18, 2020

    @DHowett
    Member

    [Needs-MiniSpec]

  6. DHowett commented on May 18, 2020

    @DHowett
    Member

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

  7. removed
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    on May 18, 2020
  8. damnskippy commented on May 27, 2020

    @damnskippy

    Mike Griese (@zadjii-msft) does this allow for mapping a key binding to a set of key input, as noted in #3799?

  9. zadjii-msft commented on May 27, 2020

    @zadjii-msft
    MemberAuthor

    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"

  10. digitalinfinity commented on May 28, 2020

    @digitalinfinity
    Member

    Mike Griese (@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)?

  11. carlos-zamora commented on Jun 2, 2020

    @carlos-zamora

    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.

  12. DHowett commented on Jun 2, 2020

    @DHowett
    Member

    If action supports an array, can you do this?

    "action": [
       { "action": [
          { "action": [
             { "action": [
                { "action": [
    ...
    
  13. carlos-zamora commented on Jun 2, 2020

    @carlos-zamora

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

  14. zadjii-msft commented on Sep 27, 2021

    @zadjii-msft
    MemberAuthor

    Oh my god this is a /dup #3992

  15. ghost closed this as completedon Sep 27, 2021
  16. ghost added
    Resolution-DuplicateThere's another issue on the tracker that's pretty much the same thing.
    on Sep 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-SettingsIssues related to settings and customizability, for console or terminalIssue-TaskIt's a feature request, but it doesn't really need a major design.Product-TerminalThe new Windows Terminal.Resolution-DuplicateThere's another issue on the tracker that's pretty much the same thing.

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions