zed icon indicating copy to clipboard operation
zed copied to clipboard

Allow opening git commit view via URI scheme

Open schpet opened this issue 1 month ago • 0 comments

Add support for zed://git/commit/# URI scheme

implement parsing and handling of git commit URIs to navigate directly to commit views from external links. the main use case for me is to use OSC8 hyperlinks to link from a git sha into zed. this allows me e.g. to easily navigate from a terminal into zed

questions

  • is this URI scheme appropriate? it was the first one i thought of, but wondering if ?ref=<some sha> might make more sense – the git/commit namespace was also an equally arbitrary choice
video demo showing navigation from zed's built in terminal

https://github.com/user-attachments/assets/18ad7e64-6b39-44b2-a440-1a9eb71cd212

video demo showing navigation form ghostty to zed commit view

https://github.com/user-attachments/assets/1825e753-523f-4f98-b59c-7188ae2f5f19

Release Notes:

  • Added support for zed://git/commit/# URI scheme

schpet avatar Nov 22 '25 21:11 schpet