Skip to content

Make zed:// links clickable in terminal - #58910

Merged
MrSubidubi merged 2 commits into
zed-industries:mainfrom
r4victor:pr_terminal_clickable_zed_links
Jun 9, 2026
Merged

Make zed:// links clickable in terminal#58910
MrSubidubi merged 2 commits into
zed-industries:mainfrom
r4victor:pr_terminal_clickable_zed_links

Conversation

@r4victor

@r4victor r4victor commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

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:

Screenshot 2026-06-09 at 15 25 18



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. 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:

  • I've reviewed my own diff for quality, security, and reliability
  • Unsafe blocks (if any) have justifying comments
  • The content adheres to Zed's UI standards (UX/UI and icon guidelines)
  • Tests cover the new/changed behavior
  • Performance impact has been considered and is acceptable

Release Notes:

  • Made zed:// links clickable in the terminal

@cla-bot

cla-bot Bot commented Jun 9, 2026

Copy link
Copy Markdown

We require contributors to sign our Contributor License Agreement, and we don't have @r4victor on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@zed-community-bot zed-community-bot Bot added the first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions label Jun 9, 2026
@r4victor

r4victor commented Jun 9, 2026

Copy link
Copy Markdown
Contributor Author

@cla-bot check

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Jun 9, 2026
@cla-bot

cla-bot Bot commented Jun 9, 2026

Copy link
Copy Markdown

The cla-bot has been summoned, and re-checked this pull request!

@MrSubidubi MrSubidubi changed the title Make zed:// links clickable in terminal Make zed:// links clickable in terminal Jun 9, 2026

@MrSubidubi MrSubidubi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks! And congrats to your first contribution! 🎉

@MrSubidubi
MrSubidubi enabled auto-merge June 9, 2026 12:43
@MrSubidubi
MrSubidubi added this pull request to the merge queue Jun 9, 2026
Merged via the queue into zed-industries:main with commit c46c350 Jun 9, 2026
34 checks passed
This was referenced Jun 18, 2026
jonx pushed a commit to jonx/zed-aros that referenced this pull request Jul 17, 2026
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](dstackai/dstack#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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants