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
50.12k stars 3.07k forks source link

Feature Request: Support for Drag and Drop Functionality #16830

Closed krabhi1 closed 1 month ago

krabhi1 commented 2 months ago

Check for existing issues

Describe the feature

I would like to request the addition of drag-and-drop functionality in the Zed editor. This feature would allow users to easily move files within the editor or between different sections of the interface by simply dragging and dropping them.

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

Peek 2024-08-28 15-14

System info

Zed: v0.149.5 (Zed) OS: Linux X11 manjaro unknown Memory: 7.7 GiB Architecture: x86_64 GPU: Intel(R) HD Graphics 4400 (HSW GT2) || Intel open-source Mesa driver || Mesa 24.1.6-arch1.1

Chen1Plus commented 2 months ago

See #4958

JosephTLyons commented 2 months ago

Hey @krabhi1, can you give me more details on specifically which things you are wanting to move? Zed has quite a bit of drag and drop functionality, but we are missing some things, such as:

krabhi1 commented 2 months ago

like dropping files from file explorer to zed

Cre8or commented 2 months ago

Drag and dropping files from Dolphin doesn't work. This seems like a normal use case to me, but sadly does seem to be supported (yet).

image

(I wasn't sure if this warrants a ping, but this is in reply to Joseph's question for more feedback)

apricotbucket28 commented 1 month ago

This should be fixed in 0.153 now that X11 drag and drop support got merged:

Cre8or commented 1 month ago

Confirmed! I can now drag and drop files out of Dolphin into Zed. Thank you! :heart: