zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
39.18k stars 2.03k forks source link

Permalinks support enterprise github repository #11160

Open tkolleh opened 2 months ago

tkolleh commented 2 months ago

Check for existing issues

Describe the feature

Support for generating permalinks for enterprise Github repositories. To reproduce:

If applicable, add mockups / screenshots to help present your vision of the feature

No response

maxdeviant commented 2 months ago

One complication here is that for self-hosted instances of GitHub/GitLab/etc. we can't tell which one is being used based on the URL alone, as the URL could be something like git.bigco.com.

Moshyfawn commented 1 month ago

I can copy a permalink to a line in a private Enterprise repository hosted on GitHub.

jaydenseric commented 1 month ago

Using Zed v0.136.2, attempting:

Screenshot 2024-05-23 at 9 47 12 AM

Results in:

Screenshot 2024-05-23 at 9 46 09 AM

Our Git remote doesn't look special, it's in the format:

https://jaydenseric@github.com/[redacted org name]/[redacted repo name].git