-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Ctrl+click can not open correct directory? #19
Comments
Link-click adaptation for WSL was implemented in mintty 2.7.1 but only for paths outside the WSL root (starting with /mnt). Because the WSL file system is well hidden deep in the user's folders, I assumed the reverse mapping was not desired; also it's slightly more tricky. I'll check. |
@mintty Thanks for the detailed explanation~! I think the Link-click is one of the best feature of mintty. It will be very convenient if we can have this feature on WSL. Thanks~! |
Released 0.7.4. |
This is still not working properly in 1.7.9. It can only open files and directories directly under C:\Users<USERNAME>. And it always assume Ctrl-Click is in this directory. |
Used to work once... |
Released 1.8.0. |
Still not working in the newest release. Only work for files under /mnt/c/Users/<user_name>. It doesn't work for sub directories from there. |
Actually, for me it works. Mind two things:
If you find an issue that does not match one of these two limitations, please describe it in detail. |
This matches bullet 1 above. You started in C:\Users\Min and the relative pathname is interpreted from there. Mintty has no way to detect that the WSL shell has meanwhile changed into subdirectory This is in fact different from a cygwin shell, for which mintty can detect that because it's running within the same runtime environment. |
I see. Thanks a lot for the explanation. Now I understand why it doesn't work. Looking forward to full support of Ctrl-Click in wsltty in the future. |
Released 1.8.1. Please recheck. |
The behavior in the new release 1.8.1 is still the same. But I understand the difficulty of the issue. Thanks a lot for updating this. |
Done. |
Released 1.9.0. Ctrl+click considers OSC 7. |
When I used ctrl+click to open a folder like /bin, the terminal opened a bin folder in "%LOCALAPPDATA%\wsltty\bin" instead of the real bin folder of WSL ("%LOCALAPPDATA%\lxss\rootfs\bin").
A missing path error would be raised when I tried to open /sbin which doesn't exist in "%LOCALAPPDATA%\wsltty".
It is a bug of wsltty or I need to change some configuration? Thanks!
wsltty version: 0.7.3
Windows version: 14393.576
mintty was launched by "WSL Bash % in Mintty" shortcut.
The text was updated successfully, but these errors were encountered: