Restore previous directory on startup for each tab #23235

Closed
opened 2026-01-31 08:36:13 +00:00 by claunia · 3 comments
Owner

Originally created by @VasiliYakauleu on GitHub (May 7, 2025).

Description of the new feature

It would be very useful if Windows Terminal could automatically navigate to the last directory used in each tab when reopening the application. This feature would enhance productivity by saving time and maintaining workflow continuity.

Proposed technical implementation details

No response

Originally created by @VasiliYakauleu on GitHub (May 7, 2025). ### Description of the new feature It would be very useful if Windows Terminal could automatically navigate to the last directory used in each tab when reopening the application. This feature would enhance productivity by saving time and maintaining workflow continuity. ### Proposed technical implementation details _No response_
claunia added the Issue-QuestionNeeds-TriageNeeds-Tag-FixResolution-Answered labels 2026-01-31 08:36:14 +00:00
Author
Owner

@DHowett commented on GitHub (May 7, 2025):

You can do this today with a little bit of shell integration configuration.

@DHowett commented on GitHub (May 7, 2025): You can do this today with [a little bit of shell integration configuration](https://learn.microsoft.com/en-us/windows/terminal/tutorials/shell-integration#open-new-tabs-in-the-same-working-directory).
Author
Owner

@VasiliYakauleu commented on GitHub (May 8, 2025):

Following link is not exactly what expected.
Duplicate tab is fine - I can do it today.
But imagine I have 5-10 tabs and each tab has it`s own location. I am using feature to restore previously opened tabs when run Terminal, but it is not so handy as in each tab I have to navigate to required directory (different directory for each tab) again...
It would be really cool if Terminal can remember location for each tab.

@VasiliYakauleu commented on GitHub (May 8, 2025): Following link is not exactly what expected. Duplicate tab is fine - I can do it today. But imagine I have 5-10 tabs and each tab has it`s own location. I am using feature to restore previously opened tabs when run Terminal, but it is not so handy as in each tab I have to navigate to required directory (different directory for each tab) again... It would be really cool if Terminal can remember location for each tab.
Author
Owner

@DHowett commented on GitHub (May 8, 2025):

It requires the same configuration.

This configuration is the only way to teach terminal what the working directory is.

If you use this configuration and "restore windows from a previous session," it will remember the directory.

@DHowett commented on GitHub (May 8, 2025): It requires the same configuration. This configuration is the only way to teach terminal what the working directory is. If you use this configuration and "restore windows from a previous session," it will remember the directory.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23235