mirror of
https://github.com/zed-industries/zed.git
synced 2026-11-24 01:20:29 +01:00
f4d40a2ccb
Files in the git panel's Changes list can now be dragged, just like entries in the project panel. Dropping a file on a terminal inserts its absolute path, and dropping it on a pane opens it. The rows reuse the project panel's `DraggedSelection` payload, so existing drop targets accept them without changes. When the dragged row is marked, the drag carries all marked files and directories, and the preview shows the entry count. Deleted files have no project entry and are not draggable. <!-- Add a GIF of dragging files from the git panel to the terminal. --> ## Testing https://github.com/user-attachments/assets/0d63ce06-057b-432b-97aa-747f6e8d09dd ## Self-review - [x] I've reviewed my diff for quality, security, reliability, and performance. - [x] UI changes follow the [checklist](https://zed.dev/docs/development/ui-checklist). - [x] Tests cover the new or changed behavior. Release Notes: - Added support for dragging files from the git panel to the terminal and editor panes.