zed
zed copied to clipboard
Text drag'n'drop on editor selections
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

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.
Dragging text from another application into a Zed editor should also work.
Any update on this ?
I miss this feature from vscode, but it seems it's close to be released. Thanks to the contributors.
Was it released? Should I enable something?
It's enabled by default. Just hold on to selection for more than 300ms, and drag.
Dragging text from another application into a Zed editor should also work.
@smitbarmase Would you prefer to open a new discussion for this?
Created one here: https://github.com/zed-industries/zed/discussions/34930
Seems like this functionality disappeared? 0.196.5 has the setting now, but the functionality is gone.
It should also support dragging from one pane to another pane.
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, did you try "delay": 0? From what I have observed, drag and drop with delay can be quite tricky.
Yes, I did try delay: 0 @eandersons; unfortunately, no difference!
@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.
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!