# Make \`zed://\` links clickable in terminal \(\#58910\) · gitcafe/zed

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

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

Visibility: public

Requested revision: c46c350b8e021273cf0d513012786d1ffe5c139e

Requested commit: c46c350b8e021273cf0d513012786d1ffe5c139e

Commit: c46c350b8e021273cf0d513012786d1ffe5c139e

Tree: d7540d0c0cf11694ac3a9fbc08f965970b2afc60

Author: Victor Skvortsov

Committer: GitHub

## Message

```
Make `zed://` links clickable in terminal (#58910)

The PR makes Zed'd own `zed://` links clickable in the Zed's integrated
terminal. Previously, you had to copy and paste such links. Now you can
hover and follow the link on cmd+click:

<img width="794" height="354" alt="Screenshot 2026-06-09 at 15 25 18"
src="https://github.com/user-attachments/assets/0c9be498-ba63-4a10-8852-cf2e23fa9597"
/>

</br></br>

**Use case**

A CLI tool can output a `zed://` link, e.g. to open a remote dev
environment. If Zed's terminal makes them clickable, users can open the
remote simply by clicking on the link.

More specifically, [we're adding Zed support to
dstack](https://github.com/dstackai/dstack/pull/3947). The `dstack` CLI
allows users to launch a remote dev environment with GPU. So this PR is
needed to make the UX smooth: Users run the `dstack` CLI in the local
terminal, the CLI prints the the `zed://` link, and the users can click
the link and open a new remote Zed window.

**Implementation details**

`zed://` links are routed through the OS as other links and not
internally. One downside is that dev builds may open an installed Zed
version. Made this tradeoff to keep the diff simple.

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 adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- Made `zed://` links clickable in the terminal
```

## Parents

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

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