zed icon indicating copy to clipboard operation
zed copied to clipboard

Add possibility to copy text from hover tooltip

Open jezikk opened this issue 2 years ago • 1 comments

Check for existing issues

  • [X] Completed

Describe the feature

It would be nice to add a possibility to select and copy a text from the hover tooltip. Currently, the hover tooltip is closed when it is clicked. For example in some cases in Typescript, it is faster to copy the type than to write it manually.

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

Zod: zed

VSCode - selected text which is possible to copy: vscode

Error message - copy error message and paste into the browser vscode_error

Eslint message - copy eslint rule vscode_eslint

jezikk avatar Jul 21 '23 20:07 jezikk

As a vim user I'd love to see this to be navigateable via the keyboard. In vim I can simply press ctrl-w-w to jump in and out of the tooltip and while being inside I can navigate with vim movements and yank text using them.

lcptrs avatar May 15 '24 09:05 lcptrs

This issue is a bit old, but it is still a valid issue - however, I realized that when triaging it before, I forgot that we already had an issue for this. I'm going to close this in favor of:

  • https://github.com/zed-industries/zed/issues/5236

For anyone subscribed to this thread wanting this feature, please upvote #5236!

JosephTLyons avatar Jun 05 '24 06:06 JosephTLyons