microsoft / microsoft/terminal

Keep current directory when opening a new instance or tab

Open
#20,227 2 comments 0 reactions 0 assignees View on GitHub
Issue-Question Needs-Attention Needs-Tag-Fix Needs-Triage Resolution-Answered
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

### Description of the new feature

Just like how it works in most Linux enviornments and terminals, it would be nice to have this feature. Basically, when opening a new tab, set the current working directory of newly opened instance, to the same one as last active tab.

BTW please close this issue if a similar issue already was opened, I was not able to find such an issue (there's a lot of issues in this repo)

### Proposed technical implementation details

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by locating the code that creates a new tab or instance and identify how the active tab's current working directory is represented. Verify the behavior for both new tabs and new instances, then add or update coverage where the relevant entry points are found. Done means each new tab or instance starts in the last active tab's directory.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.