Implement "Reopen Current Directory in [different shell]" in Windows Terminal #19610

Closed
opened 2026-01-31 06:48:40 +00:00 by claunia · 2 comments
Owner

Originally created by @AlgebraManiacABC on GitHub (Mar 29, 2023).

Description of the new feature/enhancement

Problem: My default shell in Windows Terminal is Ubuntu (through WSL). When in a directory deep in subfolders, I sometimes would like to open that directory in PowerShell (not the console powershell, but Terminal powershell). The issue is that when I right click and open in Terminal, I am brought into WSL. There are currently no options to "reopen working directory in PowerShell." I would have to manually open a new tab in PowerShell, then copy the directory from File Explorer and paste into PowerShell after typing cd . On top of this, spaces are not automatically treated upon paste, so I would have to enclose the pasted directory in 's or manually escape each problematic character. This is unideal.
Proposed new feature: There should be an option when making a new tab to reopen the current working directory in said shell.

Proposed technical implementation details (optional)

Shown is the current view when right-clicking a tab:
image
Now, shown below is my proposed suggestion.
image
This is one possible solution (right clicking current tab). This is likely the easiest to implement, since "duplicate" likely uses much of the code needed to implement this feature. The only wrinkle would be converting that directory into a PowerShell-accepted directory (i.e., not /mnt/c/Users/ but C:\Users). Also, purely WSL directories (i.e., /home/luke) would have to be figured out (I know they are accessible, since I have done so by opening a WSL directory through Visual Studio Code).
In any case, this should provide a base idea on implementation. The icon is something I just scribbled in Paint.NET, so feel free to recreate it better or with a completely different icon idea.

Originally created by @AlgebraManiacABC on GitHub (Mar 29, 2023). # Description of the new feature/enhancement <!-- A clear and concise description of what the problem is that the new feature would solve. Describe why and how a user would use this new functionality (if applicable). --> Problem: My default shell in Windows Terminal is Ubuntu (through WSL). When in a directory deep in subfolders, I sometimes would like to open that directory in PowerShell (not the console powershell, but Terminal powershell). The issue is that when I right click and open in Terminal, I am brought into WSL. There are currently no options to "reopen working directory in PowerShell." I would have to manually open a new tab in PowerShell, then copy the directory from File Explorer and paste into PowerShell after typing `cd `. On top of this, spaces are not automatically treated upon paste, so I would have to enclose the pasted directory in `'`s or manually escape each problematic character. This is unideal. Proposed new feature: There should be an option when making a new tab to reopen the current working directory in said shell. # Proposed technical implementation details (optional) <!-- A clear and concise description of what you want to happen. --> Shown is the current view when right-clicking a tab: ![image](https://user-images.githubusercontent.com/39248961/228667634-04673af9-0145-4dae-9704-64d7df6fc9bf.png) Now, shown below is my proposed suggestion. ![image](https://user-images.githubusercontent.com/39248961/228669318-a468a286-57bd-454f-aaa9-63f5d0bbbffb.png) This is one possible solution (right clicking current tab). This is likely the easiest to implement, since "duplicate" likely uses much of the code needed to implement this feature. The only wrinkle would be converting that directory into a PowerShell-accepted directory (i.e., not `/mnt/c/Users/` but `C:\Users`). Also, purely WSL directories (i.e., `/home/luke`) would have to be figured out (I know they are accessible, since I have done so by opening a WSL directory through Visual Studio Code). In any case, this should provide a base idea on implementation. The icon is something I just scribbled in Paint.NET, so feel free to recreate it better or with a completely different icon idea.
claunia added the Issue-FeatureResolution-Duplicate labels 2026-01-31 06:48:41 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Mar 29, 2023):

Thanks for the suggestion! This is actually already being tracked by another issue on our repo - please refer to #10232 for more discussion.

/dup #10232

@zadjii-msft commented on GitHub (Mar 29, 2023): Thanks for the suggestion! This is actually already being tracked by another issue on our repo - please refer to #10232 for more discussion. /dup #10232
Author
Owner

@microsoft-github-policy-service[bot] commented on GitHub (Mar 29, 2023):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@microsoft-github-policy-service[bot] commented on GitHub (Mar 29, 2023): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#19610