Convert Windows style path to a unix style path when pasting in WSL #6810

Closed
opened 2026-01-31 00:47:50 +00:00 by claunia · 2 comments
Owner

Originally created by @abhijeetviswam on GitHub (Mar 10, 2020).

Description of the new feature/enhancement

On pasting windows style path (C:\Program Files\Git) in WSL profile, it should automatically be converted to unix style WSL path (/mnt/c/Program Files/Git)
This is a feature already available in cmder terminal emulator which I miss in Windows Terminal

Proposed technical implementation details (optional)

WSL provides the "wslpath" utility which does just this. I'm not sure how feasible it is, however I'm thinking if we can listen to paste events when in WSL profile, we could identify the argument as a windows style and pass it to the wslpath utility.

Originally created by @abhijeetviswam on GitHub (Mar 10, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 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 On pasting windows style path (C:\Program Files\Git) in WSL profile, it should automatically be converted to unix style WSL path (/mnt/c/Program Files/Git) This is a feature already available in cmder terminal emulator which I miss in Windows Terminal <!-- 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). --> # Proposed technical implementation details (optional) WSL provides the "wslpath" utility which does just this. I'm not sure how feasible it is, however I'm thinking if we can listen to paste events when in WSL profile, we could identify the argument as a windows style and pass it to the wslpath utility. <!-- A clear and concise description of what you want to happen. -->
claunia added the Issue-FeatureResolution-Duplicate labels 2026-01-31 00:47:50 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Mar 10, 2020):

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

/dup #1772

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

@ghost commented on GitHub (Mar 10, 2020):

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!

@ghost commented on GitHub (Mar 10, 2020): 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#6810