Skip to content
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

Enable cursor to enter hover window #21241

Closed
1 task done
roosemberth opened this issue Nov 27, 2024 · 2 comments
Closed
1 task done

Enable cursor to enter hover window #21241

roosemberth opened this issue Nov 27, 2024 · 2 comments
Labels
duplicate Additional reports of an existing issue enhancement [core label] navigation Feedback for workspace navigation, breadcrumbs, definitions, files, panels, etc popovers Feedback for tooltips, syntax hints, info popups, toasts, etc

Comments

@roosemberth
Copy link

Check for existing issues

  • Completed

Describe the feature

image

When the hover window displays documentation, it would be extremely convenient to be able to move the cursor inside the hover window, search and copy text directly from the documentation.

For example: After a user presses Shift+K to open they hover window, they could press Shift+K again to move the cursor inside. Once inside, the user could easily scroll the view, search text within or copy from the examples provided in the documentation. This would enable making use of the examples really easy.

Currently, after opening the hover, the user needs to visually locate the term they are looking for and then fiddle with the mouse pointer (possibly multiple times) to get the correct selection before copying the desired text.

Environment

Zed: v0.161.2 (Zed)
OS: Linux Wayland nixos 25.05
Memory: 15.4 GiB
Architecture: x86_64
GPU: Intel(R) UHD Graphics 620 (WHL GT2) || Intel open-source Mesa driver || Mesa 24.2.6

If applicable, add mockups / screenshots to help present your vision of the feature

No response

@roosemberth
Copy link
Author

I believe this feature would not only be useful for displaying documentation, but also to copy errors provided by the LSP and other messages often displayed in the hover window.

@JosephTLyons JosephTLyons added popovers Feedback for tooltips, syntax hints, info popups, toasts, etc navigation Feedback for workspace navigation, breadcrumbs, definitions, files, panels, etc and removed triage labels Dec 3, 2024
@mgsloan mgsloan assigned mgsloan and unassigned mgsloan Jan 3, 2025
@mgsloan
Copy link
Contributor

mgsloan commented Jan 3, 2025

Thanks for taking the time to create this issue! Closing this as a duplicate of #7284

I agree this would be very nice to have. It is not so easy to implement though, afaik Zed doesn't have code for cursoring around in non-monospace read-only content.

@mgsloan mgsloan closed this as completed Jan 3, 2025
@mgsloan mgsloan added the duplicate Additional reports of an existing issue label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Additional reports of an existing issue enhancement [core label] navigation Feedback for workspace navigation, breadcrumbs, definitions, files, panels, etc popovers Feedback for tooltips, syntax hints, info popups, toasts, etc
Projects
None yet
Development

No branches or pull requests

3 participants