zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
47.22k stars 2.72k forks source link

Support content copying between multiple Zed instances #16741

Open sausir1 opened 3 weeks ago

sausir1 commented 3 weeks ago

Check for existing issues

Describe the bug / provide steps to reproduce it

When you copy some code content from one zed instance and try to paste it into another running Zed instance nothing happens. Copied contents can be pasted into other text fields (browser, text-editor and etc.)

To reproduce:

Environment

Zed: v0.150.3 (Zed Preview) OS: Linux Wayland ubuntu 22.04 Memory: 15.3 GiB Architecture: x86_64 GPU: Intel(R) Xe Graphics (TGL GT2) || Intel open-source Mesa driver || Mesa 23.2.1-1ubuntu3.1~22.04.2

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

Screenshots ![image](https://github.com/user-attachments/assets/f97bf95a-f663-40b2-ba3c-ba13840483f4) ![image](https://github.com/user-attachments/assets/f4bb9a55-590b-42af-9b6f-499114d5b075)

If applicable, attach your Zed.log file to this issue.

No response

SylChamber commented 3 weeks ago

Same issue, Ubuntu 24.04 LTS on Wayland session, copying content from one window to the other, when alt-tabbing or else clicking on the windows to get focus.

But, if I click on another app, or on my desktop background, before clicking on the target Zed window, or if I alt-tab to another app (GNOME Terminal, Firefox, GNOME Text Editor), then alt-tab to the target Zed window, paste works.

There is no entry being made in the zed log file when trying to copy/paste.