zed
                                
                                 zed copied to clipboard
                                
                                    zed copied to clipboard
                            
                            
                            
                        Permalinks support enterprise github repository
Check for existing issues
- [X] Completed
Describe the feature
Support for generating permalinks for enterprise Github repositories. To reproduce:
- Open project linked to an enterprise Github repo
- Type :copy permalink
- See the error "failed to parse Git remote URL"
If applicable, add mockups / screenshots to help present your vision of the feature
No response
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.
I can copy a permalink to a line in a private Enterprise repository hosted on GitHub.
Using Zed v0.136.2, attempting:
Results in:
Our Git remote doesn't look special, it's in the format:
https://[email protected]/[redacted org name]/[redacted repo name].git
I saw the issue when attempting to link to a self-hosted instances of GitHub/GitLab/etc.