Path translation not working in v1.23.10353.0 #22880

Open
opened 2026-01-31 08:26:05 +00:00 by claunia · 1 comment
Owner

Originally created by @dactylo on GitHub (Feb 9, 2025).

I've created a WSL profile for RockyLinux-9.5, and set the Path translation to "WSL (C:\ -> /mnt/c)".

But when I right-click on a path in File Explorer and "copy address", then right-click in Windows Terminal to paste, no translation happens?

I'd love if it worked. Currently I'm using a zsh binding to fix the path after pasting.

Originally created by @dactylo on GitHub (Feb 9, 2025). I've created a WSL profile for RockyLinux-9.5, and set the Path translation to "WSL (C:\ -> /mnt/c)". But when I right-click on a path in File Explorer and "copy address", then right-click in Windows Terminal to paste, no translation happens? I'd love if it worked. Currently I'm using a zsh binding to fix the path after pasting.</div>
claunia added the Issue-BugArea-InteractionProduct-Terminal labels 2026-01-31 08:26:05 +00:00
Author
Owner

@jamespack commented on GitHub (Jun 14, 2025):

I have an approach for this one. But Id like input from the team. There is a private static in the TerminalControl that handles PathTranslation. Ive done some playing around and it looks like this routine is not available to TerminalPage where the PasteHandler runs. Obviously we dont want to duplicate the functionality. What would be the teams perferred approach to exposing or lifting that up?

@jamespack commented on GitHub (Jun 14, 2025): I have an approach for this one. But Id like input from the team. There is a private static in the [`TerminalControl`](https://github.com/microsoft/terminal/blob/main/src/cascadia/TerminalControl/TermControl.cpp#L93-L157) that handles PathTranslation. Ive done some playing around and it looks like this routine is not available to `TerminalPage` where the [`PasteHandler`](https://github.com/microsoft/terminal/blob/main/src/cascadia/TerminalApp/TerminalPage.cpp#L2726-L2800) runs. Obviously we dont want to duplicate the functionality. What would be the teams perferred approach to exposing or lifting that up?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#22880