microsoft / microsoft/terminal

Allow for ExecuteCommandline actions to be called straight from the commandline

Open
#9,994 6 comments 3 reactions 0 assignees View on GitHub
Area-Commandline Issue-Feature Product-Terminal
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

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

```json
{
"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](https://github.com/microsoft/terminal/blob/main/doc/specs/%236899%20-%20Action%20IDs/%236899%20-%20Action%20IDs.md)

Contributor guide

Open the contributing guide

Research direction

Start with the linked #6899 Action IDs specification, then compare its action and commandline concepts with the examples in this issue. Clarify the supported command forms and chaining behavior, and consider the work complete when an ExecuteCommandline action can be invoked directly through the requested commandline syntax.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.