New Tab should launch in the original starting directory #17590

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

Originally created by @jacob-pro on GitHub (May 27, 2022).

Windows Terminal version

1.12.10982.0

Windows build number

10.0.19043.1706

Issue

I am stuck between two bad options for the starting directory option:

Launched From Expected Starting Directory . Starting Directory %USERPROFILE%
"Open in Terminal" Context Menu The folder you are currently in
Entering wt -d . in the explorer address bar The folder you are currently in
Start menu / task bar shortcuts $USERPROFILE directory ✘ System32
Clicking new tab The folder the first tab launched in ✘ %USERPROFILE%

In short, the new tab behaviour works as expected when the "Use parent process directory" option is enabled, however I can't use this option because it breaks the start menu shortcuts (#11834 and #878)

Background

The use-case for this is that I often want to right click a folder to open in terminal, this opens in my default shell (e.g. WSL), but sometimes I actually want to be using a different shell in this directory (Powershell).

Or another example: I'm developing a project in C:\Users\jacob\projects\example, I want to right click open in terminal, and then have multiple tabs for running different tasks in the project

Originally created by @jacob-pro on GitHub (May 27, 2022). ### Windows Terminal version 1.12.10982.0 ### Windows build number 10.0.19043.1706 ### Issue I am stuck between two bad options for the starting directory option: | Launched From | Expected | Starting Directory . | Starting Directory %USERPROFILE% | |------------------------------------------------|--------------------------------------|----------------------|-----------------------------------| | "Open in Terminal" Context Menu | The folder you are currently in | ✓ | ✓ | | Entering `wt -d .` in the explorer address bar | The folder you are currently in | ✓ | ✓ | | Start menu / task bar shortcuts | $USERPROFILE directory | ✘ System32 | ✓ | | Clicking new tab | The folder the first tab launched in | ✓ | ✘ %USERPROFILE% | In short, the new tab behaviour works as expected when the "Use parent process directory" option is enabled, however I can't use this option because it breaks the start menu shortcuts (#11834 and #878) ### Background The use-case for this is that I often want to right click a folder to open in terminal, this opens in my default shell (e.g. WSL), but sometimes I actually want to be using a different shell in this directory (Powershell). Or another example: I'm developing a project in C:\Users\jacob\projects\example, I want to right click open in terminal, and then have multiple tabs for running different tasks in the project
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#17590