The default working directory of new tabs should match the previous tab #21731

Closed
opened 2026-01-31 07:53:22 +00:00 by claunia · 1 comment
Owner

Originally created by @Ravbug on GitHub (May 18, 2024).

Description of the new feature/enhancement

The built-in Terminal app on macOS (and on some Linux distros) automatically cd's into the working directory of the previously active tab upon creation of the tab. Windows Terminal does not do this, instead defaulting to a preset location for each terminal type, and it gets annoying manually fixing the working directory every time a new tab is created.

I think the new tab behavior of Windows Terminal should match that of the macOS built-in Terminal, if the type of the new tab (CMD vs PowerShell vs Developer Powershell vs WSL) matches that of the previously active tab.

Originally created by @Ravbug on GitHub (May 18, 2024). # Description of the new feature/enhancement The built-in Terminal app on macOS (and on some Linux distros) automatically `cd`'s into the working directory of the previously active tab upon creation of the tab. Windows Terminal does not do this, instead defaulting to a preset location for each terminal type, and it gets annoying manually fixing the working directory every time a new tab is created. I think the new tab behavior of Windows Terminal should match that of the macOS built-in Terminal, if the type of the new tab (CMD vs PowerShell vs Developer Powershell vs WSL) matches that of the previously active tab.
claunia added the Issue-FeatureNeeds-TriageNeeds-Tag-Fix labels 2026-01-31 07:53:22 +00:00
Author
Owner

@github-actions[bot] commented on GitHub (May 18, 2024):

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@github-actions[bot] commented on GitHub (May 18, 2024): Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! ### Open similar issues: - [Open new terminal tab in same directory as existing tab (OSC 7?) (#3158)](https://github.com/microsoft/terminal/issues/3158), similarity score: 0.78 ### Closed similar issues: - [New tab action use current working directory of current tab (#16590)](https://github.com/microsoft/terminal/issues/16590), similarity score: 0.80 - [Copy working directory when opening new tab using CTRL+SHIFT+T (#4670)](https://github.com/microsoft/terminal/issues/4670), similarity score: 0.79 - [Implement an option to open a new tab in the focused tab's working directory (#4238)](https://github.com/microsoft/terminal/issues/4238), similarity score: 0.78 - [Configure all new tabs for the starting directory when Windows Terminal was opened. (#9553)](https://github.com/microsoft/terminal/issues/9553), similarity score: 0.76 > Note: You can give me feedback by thumbs upping or thumbs downing this comment.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21731