question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Terminal hover positioning is unfriendly

See original GitHub issue
  • have a long’ish link, like echo https://github.com/microsoft/vscode/pull/162335
  • mouse-hover over the number
  • 🐛 the link hover appears left aligned, ignores my mouse x-coordinate, and forces me to move the cursor into it (which can be finicky)

https://user-images.githubusercontent.com/1794099/193029983-cc12425a-8d2f-4359-88a5-ee9e5ed74f8c.mov

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
alexdimacommented, Oct 19, 2022

The editor positioning is now improved via https://github.com/microsoft/vscode/pull/163970 , let’s keep this issue around to track the terminal hover positioning.

0reactions
alexdimacommented, Oct 12, 2022

Do we know if there’s a good reason we haven’t respected the mouse position in the editor case? Seems like it would be a good idea to update both if there isn’t one.

The reason was, as @Tyriar mentioned, to align the hover with the current word / symbol being hovered. Over the years, we’ve added a range property to a hover result, where a hover provider can express what range their hover applies to, and we moved to use that. Most of the times, that range is something sensible, like the current word/symbol. But I agree that this doesn’t work very well if the range is a lot larger, if it begins far away from the mouse position or on a wrapped line, etc. This came up a lot over the years, I’ll look into improving things.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mac Terminal Cursor Position More Visible - Stack Overflow
I'm on OSX Mavericks, using TotalTerminal. Here is a screen shot of me hovering over a character of text which is hard to...
Read more >
Keyboard Control - mpv.io
Show the playlist and the current position in it (useful only if a UI window is used, broken on the terminal). F9: Show...
Read more >
Menu hover effect causes unwanted movement - CSS-Tricks
I want to include a hover effect for each of my menu items. ... Items with absolute positioning won't have any effect on...
Read more >
A terminal stock watcher and stock position tracker
On latest chrome, when I scroll down the homepage, the links in the header no longer work (no hover state or click handling)....
Read more >
Department of Defense Dictionary of Military and Associated ...
position military equipment and supplies in support of combatant commanders' ... that hostile aircraft and/or missiles are en route toward an air defense ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found