[PR #18759] TerminalControl: Support MinGW path translation style (C:\ -> C:/) #31598

Open
opened 2026-01-31 09:48:18 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/18759

State: closed
Merged: Yes


Summary of the Pull Request

Support drag-n-drop path translation in the style used by MinGW programs. In particular for usage with shells like ash from busybox (https://frippery.org/busybox/).

Detailed Description of the Pull Request / Additional comments

Provides a new option "mingw" for "pathTranslationStyle".
Shown as "MinGW" with translation documented as (C:\ -> C:/) in the UI.
As per the other modes, this translates \ to / but stops there. There is no prefix/drive translation.

Validation Steps Performed

Run using busybox ash shell. Dragged directories and files from both local disks and network shares onto terminal. All were appropriately single quoted and had their backslashes replaced with forward slashes. They were directly usable by the ash shell.

Language files containing the other options have been updated to include the new one.

PR Checklist

  • Closes #xxx
  • Tests added/passed
  • Documentation updated
  • Schema updated (if necessary)
**Original Pull Request:** https://github.com/microsoft/terminal/pull/18759 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request Support drag-n-drop path translation in the style used by MinGW programs. In particular for usage with shells like `ash` from busybox (https://frippery.org/busybox/). ## Detailed Description of the Pull Request / Additional comments Provides a new option "mingw" for "pathTranslationStyle". Shown as "MinGW" with translation documented as `(C:\ -> C:/)` in the UI. As per the other modes, this translates `\` to `/` but stops there. There is no prefix/drive translation. ## Validation Steps Performed Run using `busybox ash` shell. Dragged directories and files from both local disks and network shares onto terminal. All were appropriately single quoted and had their backslashes replaced with forward slashes. They were directly usable by the `ash` shell. Language files containing the other options have been updated to include the new one. ## PR Checklist - [ ] Closes #xxx - [ ] Tests added/passed - [x] Documentation updated - [Docs PR #849](https://github.com/MicrosoftDocs/terminal/pull/849) - [ ] Schema updated (if necessary)
claunia added the pull-request label 2026-01-31 09:48:18 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#31598