Skip to content

Fix the width of the current popup hover window when I'm scrolling #912

@extr15

Description

@extr15

Description

Hi, thanks for your work to dev such a great tool!
When I use a hover window to check an array variable and expand its internal value of each element, the hover window's width will change automatically according to the current displayed content's width. It's OK but I found it was hard to use since the hover window's width (and position sometimes) was changing as I scrolled by mouse.

E.g. (sorry I cannot make screenshot now...)

import numpy as np 
a = np.random.rand(20, 3)

and the hover window of 'a' is

A1  - [0:20] : [array([0.21187257, 0.05174158, 0.93341818]), array([0.6754168 , 0.4])]   A2
B1  + 00: array([0.21187257, 0.05174158, 0.93341818])  B2                                B3
....

the first row's width is 'A1-A2',when I scoll down until the first row is out of displayed range, the hover window's width will be 'B1-B2'. It's unconvenient if my mouse is in 'B2-B3' since now my mouse is not on hover window but on the vim's buf window! I have to move mouse to 'B1-B2' in order to focus on the hover window.

Is it reproducible in vim?

Reproducible in Vim

Works with clean config?

Yes

Sample project works?

Not reproducible with sample project

Minimal Reproduction

List of steps to reproduce:

  1. Run vim ---clean Nu /path/to/vimspector/support/minimal_vimrc ....
  2. Open this project...
  3. Press this sequence of keys

Expected Behaviour

Fix the width of the current popup hover window when I'm scrolling

Actual Behaviour

The window's width is changing according to current content.

Additional information

No response

Installation Type

Plugin Manager (git clone)

Vimspector version

5e24df8

Debug Info


Log file


Vim version

VIM - Vi IMproved 9.1 (2024 Jan 02, compiled Aug 30 2024 09:50:30)

Python version

No response

Neovim diagnostics


Operating System

No response

Declaration

Metadata

Metadata

Assignees

No one assigned

    Labels

    Severity 3+The issue is rare or cosmetic, or unfixableenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions