[PR #18195] Add a new (advanced) profile setting, pathTranslationStyle #31469

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

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

State: closed
Merged: Yes


pathTranslationStyle has four options:

  • none: Do no translation
  • wsl: Translate C:\ to /mnt/c and \\wsl$\Foo\bar to /bar
  • cygwin: Translate C:\ to /cygdrive/c
  • msys2: Translate C:\ to /c

It is intended as a broadly-supported replacement for us checking the
source every time the user drops a path.

We no longer need to push the source name all the way down to the control.

I am hesitant to commit to using other folks' product names in our settings model,
however, these are almost certainly more recognizable than whatever other weird
names we could come up with.

The Git Bash fragment extension profile could conceivably use pathTranslationStyle
msys2 to make sure drag/dropped paths look right.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/18195 **State:** closed **Merged:** Yes --- `pathTranslationStyle` has four options: - `none`: Do no translation - `wsl`: Translate `C:\` to `/mnt/c` and `\\wsl$\Foo\bar` to `/bar` - `cygwin`: Translate `C:\` to `/cygdrive/c` - `msys2`: Translate `C:\` to `/c` It is intended as a broadly-supported replacement for us checking the source every time the user drops a path. We no longer need to push the source name all the way down to the control. I am hesitant to commit to using other folks' product names in our settings model, however, these are almost certainly more recognizable than whatever other weird names we could come up with. The Git Bash fragment extension profile could conceivably use `pathTranslationStyle` `msys2` to make sure drag/dropped paths look right.
claunia added the pull-request label 2026-01-31 09:47:28 +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#31469