Customizing right-click context menu "open Windows terminal here" for Cygwin (and other) profile #18895

Open
opened 2026-01-31 06:27:30 +00:00 by claunia · 0 comments
Owner

Originally created by @CC-Hsu on GitHub (Nov 14, 2022).

Description of the new feature/enhancement

Hi, Team,

Microsoft Terminal supports customizing profile and Cygwin is one of supported configuration.

However, currently right-click context menu "open Windows terminal here" (my environment: Windows10) does not work great with Cygwin since Cygwin recoginzes Unix-like path expression.

In Cygwin, one can execute cygpath -u "Windows Full Directory Path Name" to map to the corresponding representation, and cd $(cygpath -u 'Windows Full Directory Path Name') to open Cygwin in the desired directory.

As far as I know, one can adjust from RegEdit, but it requires in-depth knowledge about RegEdit and search for right config to edit.

So it would be helpful if Microsoft Terminal Can support customizing right-click context menu command, supporting passing full Windows directory path as variable for customized command.

Besides, I find there are some similar feature requests about WSL environment #12961, I guess similar trick may also works for WSL, too.

Proposed technical implementation details (optional)

Adding a new profile key/value for customizing "right-click context menu" action (in the following setting page screenshot), and provide some shortcut that represents directory path for substitute.
image

Best Regards.

Originally created by @CC-Hsu on GitHub (Nov 14, 2022). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> # 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). --> Hi, Team, Microsoft Terminal supports customizing profile and [Cygwin is one of supported configuration](https://learn.microsoft.com/en-us/windows/terminal/dynamic-profiles#cygwin). However, currently right-click context menu "open Windows terminal here" (my environment: Windows10) does not work great with Cygwin since Cygwin recoginzes Unix-like path expression. In Cygwin, one can execute `cygpath -u "Windows Full Directory Path Name"` to map to the corresponding representation, and `cd $(cygpath -u 'Windows Full Directory Path Name')` to open Cygwin in the desired directory. As far as I know, one can adjust from RegEdit, but it requires in-depth knowledge about RegEdit and search for right config to edit. So it would be helpful if Microsoft Terminal Can support customizing right-click context menu command, supporting passing full Windows directory path as variable for customized command. Besides, I find there are some similar feature requests about WSL environment [#12961](https://github.com/microsoft/terminal/issues/12961), I guess similar trick may also works for WSL, too. # Proposed technical implementation details (optional) <!-- A clear and concise description of what you want to happen. --> Adding a new profile key/value for customizing "right-click context menu" action (in the following setting page screenshot), and provide some shortcut that represents directory path for substitute. ![image](https://user-images.githubusercontent.com/8018872/201676899-6c768c3e-1b7e-41d9-acc9-44fb1e14b4fb.png) Best Regards.
claunia added the Help WantedArea-SettingsResolution-DuplicateProduct-Terminal labels 2026-01-31 06:27:30 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#18895