microsoft / microsoft/terminal

"Open in Terminal" menu option should open in PowerShell or Ubuntu depending on folder location

Open
#14,753 7 comments 3 reactions 0 assignees View on GitHub
Area-ShellExtension Help Wanted Issue-Feature Product-Terminal
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

# Description of the new feature/enhancement

Not sure if this is an enhancement versus an actual bug, but if have my default WSL distro be Ubuntu, and I click "Open in Terminal" in a Windows folder, I expect it to open up the *PowerShell* terminal, not the Ubuntu one. Vice versa if I have the default terminal as PowerShell and I click "Open in Terminal" in an Ubuntu folder, like in the below folders.

In other words, Terminal should know the context in which I'd want each terminal to open up.

![image](https://user-images.githubusercontent.com/42670561/215248711-7115c3e4-071a-432c-aa64-f942e98fdc10.png)

# Proposed technical implementation details (optional)

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points. Start by locating the implementation of the “Open in Terminal” context-menu action and the logic that identifies Windows versus Ubuntu/WSL folders; done means choosing PowerShell for Windows folders and Ubuntu for Ubuntu folders regardless of the configured default.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, powershell, ubuntu
Domain
cli, operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.