# Add macOS file drag-out from project panel \(\#58161\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/f52fd9ac44b298c089491d9920daa22964c32cc8)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: f52fd9ac44b298c089491d9920daa22964c32cc8

Requested commit: f52fd9ac44b298c089491d9920daa22964c32cc8

Commit: f52fd9ac44b298c089491d9920daa22964c32cc8

Tree: 0e39959343b593e0736125b6a6d97fba396e13fa

Author: Lee ByeongJun

Committer: GitHub

## Message

```
Add macOS file drag-out from project panel (#58161)

## Description

Adds native macOS file drag out support for Project Panel entries. Local
file paths are resolved only when a drag gesture starts, remote or
missing paths are skipped, and unsupported platforms keep the default
no-op behavior.

The macOS implementation starts an AppKit drag session with file URL
pasteboard items, allows Finder and other external apps to choose copy
or move, keeps in-app GPUI drag/drop behavior in control for internal
drags, and clears the active drag state when the native session ends.


https://github.com/user-attachments/assets/42909389-1a32-4574-a200-9a14b913f55f

Self-Review Checklist:

- [X] I've reviewed my own diff for quality, security, and reliability
- [X] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [X] Tests cover the new/changed behavior
- [ ] Performance impact has been considered and is acceptable

Closes #55370

Release Notes:

- Added support for dragging files from the Project Panel to external
macOS apps.

---------

Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
```

## Parents

- [f620cbc04e8855a38a822ce7cf19e9ed44b00808](https://git.cafe/gitcafe/zed/commit/f620cbc04e8855a38a822ce7cf19e9ed44b00808?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/f52fd9ac44b298c089491d9920daa22964c32cc8?format=markdown)
