Files
zed/crates/git_ui
Michal Matczuk f4d40a2ccb git_ui: Drag files from the git panel to the terminal (#66423)
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.
2026-11-02 16:48:58 +00:00
..