-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
URL hover doesn't work when VT mouse mode is enabled #9117
Comments
Are you using mouse mode with tmux? If so, you'll probably need to hold Shift to make the hyperlinks work. When an app has requested mouse mode, the app gets the first shot at mouse detection. This isn't strictly consistent with other terminals though. |
Yeah, that is the case. Thanks for suggesting the |
Don't think we have a dupe, but I'll title this one appropriately. |
Here's what I think we should do. When VT mouse mode is on, hover should work fine ... but the tooltip should say "ctrl+shift+click" instead of "ctrl+click". What do you think? |
My |
@ondras because we didn’t implement it like that? And you reported it to us, in this bug that you reported, and we accepted into our backlog to fix? ??? |
So it might be misunderstanding on my side. Because after reading this comment of yours,
it seemed to me that you are suggesting to leave in the current "ctrl+shift+click" implementation (and change the tooltip accordingly), instead of changing the behavior to "ctrl+click" (and leaving the tooltip in its current state). Sorry for causing confusion. |
Oh, yes, sorry. I was confused. I was wondering if we should maintain the shift behavior for user consistency with VT mouse applications 😄 |
I would think if an app has enabled mouse mode, then we probably shouldn't be intercepting clicks on links, unless we're talking about I've just been looking at how Mintty handles this, and they have options to let the user decide how it should work, but by default it seems that clicks are passed through to the app, unless you override with Shift (so you need Ctrl-Shift-Click to intercept a link click). |
Yeah. I like this direction. It also requires minimal change in code 😄 |
Is it too late to make Ctrl+Shift+Click the key combo to use for all auto-detected links? Then the user doesn't need to know whether the app is in mouse mode or not, but we also aren't hijacking one of the main click types. Otherwise maybe there needs to be a mode that apps can set to enable or disable this functionality. It's possible some other terminals already have something like that actually. |
## PR Checklist * [x] Closes #9117 * [x] CLA signed. * [x] Tests added/passed * [ ] Documentation updated. * [ ] Schema updated. * [x] I've discussed this with core contributors already. ## Detailed Description of the Pull Request / Additional comments In mouse mode: * Underline hyperlinks * Activate hyperlink on ctrl+click rather than sending input to VT (cherry picked from commit 6cd4e03)
## PR Checklist * [x] Closes #9117 * [x] CLA signed. * [x] Tests added/passed * [ ] Documentation updated. * [ ] Schema updated. * [x] I've discussed this with core contributors already. ## Detailed Description of the Pull Request / Additional comments In mouse mode: * Underline hyperlinks * Activate hyperlink on ctrl+click rather than sending input to VT (cherry picked from commit 6cd4e03)
🎉This issue was addressed in #9396, which has now been successfully released as Handy links: |
🎉This issue was addressed in #9396, which has now been successfully released as Handy links: |
Environment
URLs are not underlined (nor clickable) when displayed in a tmux session (in a Windows Terminal window). They work fine when displayed without tmux.
The text was updated successfully, but these errors were encountered: