Skip to content

Allow for ExecuteCommandline actions to be called straight from the commandline #9994

@zadjii-msft

Description

@zadjii-msft

So I can do something like wt good-morning and have it immediately start up with my Good Morning actions. Maybe something like

{
  "command": {
    "action": "wt",
    "subcommand": "good-morning",
    "commandline": "nt ; sp"
  },
  "name": "Good Morning"
},

that lets the given commandline be treated as the provided commandline.

I suppose:

  • does it have to be limited to wt actions?
  • what happens for wt good-morning ; new-tab?
  • does { "command": {"action": "wt", "subcommand": "gm", "commandline": "good-morning" } } work?

Also relevant: #6899, #6899 - Action IDs.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-Commandlinewt.exe's commandline argumentsIssue-FeatureComplex enough to require an in depth planning process and actual budgeted, scheduled work.Product-TerminalThe new Windows Terminal.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions