CLI: If file exists in a .git repository, open the root of the git repo as a project instead #25452
joebonrichie
started this conversation in
Feature Ideas / Enhancements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When opening a file via the cli, if the file exists in a .git repository open the root of the .git repository as a project instead.
e.g.
if i
zed src/main.rs
it'll create a new project "main.rs" instead of ideally opening up thequick-test
repository.Something like
git rev-parse --show-toplevel
or git similar API can be used to determine the root of the project.Some editors such as KDE's kate have this feature.
Beta Was this translation helpful? Give feedback.
All reactions