New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Path conversion doesn't always work on paste #161
Comments
I would say Win32 <-> WSL since I posted the question in wsltty. |
Path conversion is applied only for drag-and-drop (or, reversely, for Control+click link activation). |
See also mintty/mintty#785 (comment). |
Thank you for pointing me to this comment, very informative. I couldn't fin it yesterday. I think if you consider that WSL as its own environment and everything that happens in there is supposed to be WSL related only (hence pasting a path inside wsltty should be wsl formated) then it could make a case for it. I see value in both approach. Maybe an option to enable path conversion on pasting could be viable? Would running everything pasted through wslpath to convert it to WSL format (and everything copied to convert it to Win32 format) impact the application performances to much? |
Actually my previous comment was wrong. Whether path conversion is applied depends on the property tag of the Windows clipboard. So if you copy e.g. a folder, its name will be path-converted, whether you use drag-and-drop, Shift+Ins or Paste from the menu. I'll check whether that also works in WSL. |
Here is what I tried in wsltty:
I tried the same in ConEmu and the results are almost opposite:
Both programs use the wslbridge-backend but with different results. Anyway, my idea (and I have no idea if this is doable) was to send intercept copy / paste events and send it through wslpath such as:
Again, I am just throwing an idea here as I don't have a very good understanding of how all this works. |
If you do this via drag-and-drop, it will also be a path clipboard type and thus be converted. |
Released 3.0.1. |
I have been able to drag and drop a file from explorer to wsltty and the path conversion works great.
I haven't been able to paste a path (shift+insert or mouse right click) and get the conversion to work.
Is it possible to add this function? wslbridge included in ConEmu handles it fine so I am guessing it is not implemented in the wsltty version.
The text was updated successfully, but these errors were encountered: