Shell extension "Open Windows Terminal here" should start in current window #12487

Closed
opened 2026-01-31 03:17:00 +00:00 by claunia · 2 comments
Owner

Originally created by @schlamar on GitHub (Feb 10, 2021).

With #8898 landed wt.exe can now start a terminal tab in an existing window.

I would expect that the new default for the "Open Windows Terminal here" shell extension is starting in the current window, as this is the common default for other sort of applications. For example browsers open a new tab when clicking on a HTML file in the Explorer or VS Code opens a new tab when opening a registered file extension.

However, right now the shell extension doesn't pass a window argument (https://github.com/microsoft/terminal/blob/e207236/src/cascadia/ShellExtension/OpenTerminalHere.cpp#L151) so there will be a new window.

Maybe there should be an option to control this behavior, but new tab in current window should be default.

Originally created by @schlamar on GitHub (Feb 10, 2021). With #8898 landed wt.exe can now start a terminal tab in an existing window. I would expect that the new default for the "Open Windows Terminal here" shell extension is starting in the current window, as this is the common default for other sort of applications. For example browsers open a new tab when clicking on a HTML file in the Explorer or VS Code opens a new tab when opening a registered file extension. However, right now the shell extension doesn't pass a window argument (https://github.com/microsoft/terminal/blob/e207236/src/cascadia/ShellExtension/OpenTerminalHere.cpp#L151) so there will be a new window. Maybe there should be an option to control this behavior, but new tab in current window should be default.
claunia added the Resolution-Duplicate label 2026-01-31 03:17:00 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Feb 10, 2021):

Thanks for the suggestion! This is actually already being tracked by another issue on our repo - please refer to #7071 for more discussion.

/dup #7071

@zadjii-msft commented on GitHub (Feb 10, 2021): Thanks for the suggestion! This is actually already being tracked by another issue on our repo - please refer to #7071 for more discussion. /dup #7071
Author
Owner

@ghost commented on GitHub (Feb 10, 2021):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Feb 10, 2021): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#12487