microsoft / microsoft/terminal

Using `--window` in a `wt` action should do what you'd expect

Open
#10,146 0 comments 0 reactions 0 assignees View on GitHub
Area-CmdPal Area-Remoting Help Wanted Issue-Task Needs-Tag-Fix Product-Terminal
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

(from 1:1)

right now, `TerminalPage::_HandleExecuteCommandline`/`TerminalPage::ConvertExecuteCommandlineToActions` just tries to get the actions from the commandline, and tries to execute them. It would be _really neat_ if we could determine that `--window _quake` was passed in that commandline, and toss the actions to the window you'd expect.

If there's no provided `--window`, then just execute the commandline in the current window. Otherwise, send the commandline to the monarch, and let them deal with it.

That would mean the command palette could get this functionality for commandline mode as well.

Contributor guide

Open the contributing guide

Research direction

Start with TerminalPage::_HandleExecuteCommandline and TerminalPage::ConvertExecuteCommandlineToActions, which currently execute actions from the command line. Trace how the monarch receives commands and confirm that --window _quake is routed to the requested window, while commands without --window still execute in the current window and command-palette command-line mode gains the same behavior.

Written by the indexing model from the issue text.

Assessment

Domain
cli, desktop
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.