zed icon indicating copy to clipboard operation
zed copied to clipboard

Text drag'n'drop on editor selections

Open StevenRCE0 opened this issue 2 years ago • 3 comments

Check for existing issues

  • [X] Completed

Describe the feature

Though it seems "un-geeky" to use mouse to rearrange blocks of code, it would be nice to have!

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

Screen Recording 2023-03-13 at 14 01 51-0001

StevenRCE0 avatar Mar 13 '23 06:03 StevenRCE0

This was pointed out over a year ago. How do basic editor UI features get left out?

This is why VS-Code wins, their team first implemented feature-complete editing UI.

chadananda avatar Sep 24 '24 19:09 chadananda

Dragging text from another application into a Zed editor should also work.

injust avatar Nov 04 '24 06:11 injust

Any update on this ?

fullyDeepak avatar Apr 03 '25 18:04 fullyDeepak

I miss this feature from vscode, but it seems it's close to be released. Thanks to the contributors.

lcdss avatar Jun 11 '25 15:06 lcdss

Was it released? Should I enable something?

meliborn avatar Jul 22 '25 21:07 meliborn

It's enabled by default. Just hold on to selection for more than 300ms, and drag.

smitbarmase avatar Jul 22 '25 22:07 smitbarmase

Dragging text from another application into a Zed editor should also work.

@smitbarmase Would you prefer to open a new discussion for this?

injust avatar Jul 22 '25 22:07 injust

Created one here: https://github.com/zed-industries/zed/discussions/34930

smitbarmase avatar Jul 23 '25 00:07 smitbarmase

Seems like this functionality disappeared? 0.196.5 has the setting now, but the functionality is gone.

digitalextremist avatar Jul 25 '25 00:07 digitalextremist

It should also support dragging from one pane to another pane.

WantenMN avatar Aug 09 '25 05:08 WantenMN

Has anyone noticed this functionality gone, even with this setting in place?

  "drag_and_drop_selection": { "enabled": true, "delay": 300 }

Currently on 0.199.9 and about to update


Issue persists at 0.200.5 [ estimated to have seen this for >20 patch revisions and ~2 minor versions ]

digitalextremist avatar Aug 26 '25 22:08 digitalextremist

@digitalextremist, did you try "delay": 0? From what I have observed, drag and drop with delay can be quite tricky.

eandersons avatar Aug 27 '25 06:08 eandersons

Yes, I did try delay: 0 @eandersons; unfortunately, no difference!

digitalextremist avatar Aug 27 '25 21:08 digitalextremist

@digitalextremist, that is unfortonate to hear.

What is the operating system on the computer you are experiencing drag and drop not working?

Do you have a chance to check if the issue can be observed on other machines?

Either way I think that you should create a new issue regarding the problems you are experiencing if that has not been already done, as this one is specifically about adding drag and drop functionality, which has been done.

eandersons avatar Aug 28 '25 07:08 eandersons

Did ticket this, here, @eandersons: https://github.com/zed-industries/zed/issues/36968

@smitbarmase seems to think it might be isolated to Linux Mint

Have not been able to check with a different machine, but will try to also!

digitalextremist avatar Aug 28 '25 09:08 digitalextremist