File finder: git diff links (Ignore a/
and b/
prefix)
#15081
Labels
enhancement
[core label]
git
Git integration feedback
navigation
Feedback for workspace navigation, breadcrumbs, definitions, files, panels, etc
terminal
Feedback for terminal integration, shell commands, etc
Check for existing issues
Describe the feature
I often use
git diff
in the terminal (outside of Zed), notice a small mistake (usually adbg!(...)
,println!(...)
, similar or code I've commented out but not deleted) and need to go back to Zed and jump to this file.When copying the file path from the terminal (double click to select the entire path) it includes the
a/
orb/
:a/path/to/my/file.rs
. Unfortunately this means that you have to manually remove thea/
orb/
prefix for Zed to find the file.Although this is not an issue from/with/by Zed, it would be amazing if the file finder would recognize this pattern/prefix and remove the
a/
andb/
prefix automatically.That way the following three would yield identical results:
I can only see two downsides to this:
a/part_of_filename
would now list everything withpart_of_filename
instead of onlypart_of_filename
that are in a folder with the lettera
.Overall, I think the first downside is small enough and the second downside is negligible.
If applicable, add mockups / screenshots to help present your vision of the feature
No response
The text was updated successfully, but these errors were encountered: