oni icon indicating copy to clipboard operation
oni copied to clipboard

Quick info window and scrolling

Open sullyj3 opened this issue 8 years ago • 1 comments

Oni Version: 0.3.4 Neovim Version (Linux only): Operating System: Windows

When the cursor is on a keyword with associated information, the quick info window appears. However, it stays in the same spot, detached from the keyword, when the viewport is moved without moving the cursor (commands like zz, zt, zb, , etc, and especially scrolling with the mouse wheel). This often means that the info window will obscure the text I wanted to see (the reason I was scrolling). It even regularly obscures the keyword the the info is about. This usually requires me to move the cursor off of the keyword in order to make the window disappear, making sure not to place the cursor onto another keyword with info associated.

This is particularly annoying with html, in which every tag has quick info associated with it, but it's largely info that I already know, and it becomes a task in itself finding a spot to put the cursor that isn't on top of a tag.

Some ideas for making this less annoying (all of which could be optional, with an associated setting):

  • Have the popup window stay in the same place relative to the keyword it's about. In other words, when the viewport scrolls, the info window scrolls with it. IMO this one's a UX no-brainer
  • Make quick info popup in mouseover instead of when the cursor is on the word, or hide it behind a key command
  • Add settings to enable/disable quick info per filetype (I don't really need it for html, but it's crazy handy for eg python)

sullyj3 avatar May 28 '18 02:05 sullyj3

Hello and welcome to the Oni repository! Thanks for opening your first issue here. To help us out, please make sure to include as much detail as possible - including screenshots and logs, if possible.

oni-bot avatar May 28 '18 02:05 oni-bot