microsoft / microsoft/terminal
Allow new tabs of different profiles to inherit current working directory on Windows
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 105k
- Forks
- 9.6k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 29
Description
### Description of the new feature
When using Windows Terminal with multiple profiles (e.g., a normal PowerShell and a “PowerShell (Proxy)” profile), I want to open a new tab using a different profile but keep the current working directory from the active tab.
now, I’m forced to run this long command every single time:
wt -w 0 nt -p "PowerShell (Proxy)" --startingDirectory "$PWD"
### Proposed technical implementation details
_No response_
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how the Windows Terminal `wt -w 0 nt -p` command creates a tab and selects its profile on Windows. Identify where the active tab's current working directory is available, then determine how inheritance should work when the new profile is different; done means the example command is no longer needed and the new tab opens in the active directory.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, powershell
- Domain
- cli, desktop
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100