atom-ide-ui icon indicating copy to clipboard operation
atom-ide-ui copied to clipboard

Open datatip/diagnostics tooltip on cursor over?

Open udnaan opened this issue 7 years ago • 11 comments

Description

Similar to the linter functionality, is there a way to turn on the data-tip/diagnostic tip on cursor over?

Expected Behavior

Show the error/warning as a tooltip without having to use the mouse

Actual Behavior

A mouse cursor has to hovered for the tip to appear.

Versions

  • Atom: 1.21.2
  • Client OS: MacOS
  • atom-ide-ui: 0.5.3

udnaan avatar Nov 01 '17 18:11 udnaan

Since you're on Mac OS, just hit "option". The command is "datatip:toggle" :)

hansonw avatar Nov 01 '17 18:11 hansonw

Doesn't work. Guess it's back to linter.

udnaan avatar Nov 01 '17 18:11 udnaan

Does using the command from the command palette work, at least? Note that your cursor has to be inside the diagnostic range, of course.

hansonw avatar Nov 01 '17 18:11 hansonw

Nothing happens when the option key is pressed. Same goes with command-palette datatip:toggle.

However if both option+cmd is pressed very precisely at the same time, I see the data tip appear.

Unfortunately it does not remain toggled on and I have to do it for every line.

udnaan avatar Nov 01 '17 18:11 udnaan

nov-01-2017 12-03-43

udnaan avatar Nov 01 '17 19:11 udnaan

Oh I think I see - so the corresponding linter command enables displaying the overlay as you move the cursor? I guess that's a reasonable feature request

hansonw avatar Nov 01 '17 23:11 hansonw

Any updates on this?

udnaan avatar Jan 03 '18 19:01 udnaan

I was digging into this and found my issue with the flickering data-tip on toggle was the fact that the intentions package (https://atom.io/packages/intentions) maps it to Cmd+Alt which was getting in the way of the Alt shortcut the atom-ide-ui provided. I disabled intentions and now I can reliably hit Alt again to toggle data tips, in case that helps anyone else reading this.

jackfranklin avatar Feb 15 '18 08:02 jackfranklin

This issue is not about being able to toggle the datatip but to have them automatically show when moving cursor through keyboard.

udnaan avatar Feb 16 '18 05:02 udnaan

This is the single thing that keeps me from using atom-ide right know, maybe I'm inflexible :scream_cat:, but It's really useful just moving the cursor a bit back check what was wrong with what I just typed.

davidlgj avatar Apr 19 '18 12:04 davidlgj

Yeah it's quite an strange oversight. I tried to go through the code to see if I could do a pull request. It turned out to non trivial. All in all, it doesn't seem to give me any more functionality than existing linter did so I decided to stick with that until linter is maintained. Hope is that by the time that becomes abandoned, this project would be maturer than it is now.

udnaan avatar Apr 19 '18 21:04 udnaan