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
51.05k stars 3.17k forks source link

Failure to open permalink to line for organization-specific SSH username remotes #21507

Open nickbreaton opened 13 hours ago

nickbreaton commented 13 hours ago

Check for existing issues

Describe the bug / provide steps to reproduce it

My work's organization using GitHub has a specific username for cloning repositories other than git. I can't find any clear cut documentation on what this is used for, but see attached screenshot for an example:

clone instructions



When executing the "editor: open permalink to line" command, it fails with:

Failed to open permalink: failed to parse Git remote URL

Environment

Zed: v0.163.3 (Zed) OS: macOS 15.1.1 Memory: 32 GiB Architecture: aarch64

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

No response

If applicable, attach your Zed.log file to this issue.

Zed.log ``` ```
nickbreaton commented 13 hours ago

Tried my hand at fixing in #21508, happy to accommodate any feedback there!

This is my first issue and PR to Zed. Been loving the project so far, but this makes it hard for me to use at work.