[PR #17758] x-save the commandline in the current window #31359

Open
opened 2026-01-31 09:46:46 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/17758

State: closed
Merged: Yes


By manually setting the _windowTarget to 0, we can make sure to toss x-save commandlines at the current terminal window (so long as there is one).

Edge cases:

  • You passed other subcommands with x-save: Well, we'll do whatever we would have normally done for multiple subcommands. We won't x-save in the current window, we'll obey your settings. That seems to make sense
  • You ran wt x-save without an open Terminal window: We'll open a terminal window during the process of handling it. That seems sensible.

Closes #17366

**Original Pull Request:** https://github.com/microsoft/terminal/pull/17758 **State:** closed **Merged:** Yes --- By manually setting the `_windowTarget` to `0`, we can make sure to toss `x-save` commandlines at the current terminal window (so long as there is one). Edge cases: * You passed other subcommands with `x-save`: Well, we'll do whatever we would have normally done for multiple subcommands. We won't `x-save` in the current window, we'll obey your settings. That seems to make sense * You ran `wt x-save` without an open Terminal window: We'll open a terminal window during the process of handling it. That seems sensible. Closes #17366
claunia added the pull-request label 2026-01-31 09:46:46 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#31359