# gpui: Convert macOS clipboard file URLs to paths for paste \(\#36848\) · gitcafe/zed

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

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

Visibility: public

Requested revision: eccdfed32b6cfd3d7bb687e32f2c1de7665afb31

Requested commit: eccdfed32b6cfd3d7bb687e32f2c1de7665afb31

Commit: eccdfed32b6cfd3d7bb687e32f2c1de7665afb31

Tree: db4b5d21c2c40e779e813f32597809d212ee597d

Author: Sean Timm

Committer: GitHub

## Message

```
gpui: Convert macOS clipboard file URLs to paths for paste (#36848)

- On macOS, pasting now inserts the actual file path when the clipboard
contains a file URL (public.file-url/public.url)
- Terminal paste remains text-only; no temp files or data URLs are
created. If only raw image bytes exist on the clipboard, paste is a
no-op.
- Scope: macOS only; no dependency changes.
- Added a test (test_file_url_converts_to_path) that verifies URL→path
conversion using a unique pasteboard.

Release Notes:

- Improved pasting on macOS: now inserts the actual file path when the
clipboard contains a file URL (enables image paste support for Claude
Code)
```

## Parents

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

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