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

Open
opened 2026-01-31 03:54:11 +00:00 by claunia · 0 comments
Owner

Originally created by @zadjii-msft on GitHub (May 21, 2021).

(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.

Originally created by @zadjii-msft on GitHub (May 21, 2021). (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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#13861