You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my root .gitignore I include vendor/ruby. It’s not in the app .gitignore because this is more a vagary of how I install dependencies, and not something that everyone who works on the app does.
git properly ignores vendor/ruby by seeing the root .gitignore file. But zed shows vendor/ruby in the project panel. When I Go to File or do a project search vendor/ruby is also included in the results.
I found a few existing issues (like this one #21370 and this one #6998) which confuse me even more about this because it sounds like people want zed to not respect parent .gitignore files? Which seems to be different from how git itself works?
Running git status in ~/app should not show vendor/ruby/some-file because it has been ignored by the ~/.gitignore.
If you open ~/app in zed, zed shows vendor/ruby/some-file in the project panel in a bright color (not ignored) and CMD-P shows vendor/ruby/some-file in the list of files to open.
I would expect vendor/ruby/some-file to be greyed out in the project panel (indicating it is ignored) and CMD-P should not show vendor/ruby/some-file in the list of files to open.
Check for existing issues
Describe the bug / provide steps to reproduce it
I think this must have changed recently because I don’t think this was an issue before… it seems like it cropped up in the last few weeks or months.
Basically I have a directory structure like this:
In my root
.gitignore
I includevendor/ruby
. It’s not in the app.gitignore
because this is more a vagary of how I install dependencies, and not something that everyone who works on the app does.git properly ignores
vendor/ruby
by seeing the root.gitignore
file. But zed showsvendor/ruby
in the project panel. When I Go to File or do a project searchvendor/ruby
is also included in the results.I found a few existing issues (like this one #21370 and this one #6998) which confuse me even more about this because it sounds like people want zed to not respect parent
.gitignore
files? Which seems to be different from how git itself works?Steps to reproduce
I think this should do it:
Running
git status
in~/app
should not showvendor/ruby/some-file
because it has been ignored by the~/.gitignore
.If you open
~/app
in zed, zed showsvendor/ruby/some-file
in the project panel in a bright color (not ignored) and CMD-P showsvendor/ruby/some-file
in the list of files to open.I would expect
vendor/ruby/some-file
to be greyed out in the project panel (indicating it is ignored) and CMD-P should not showvendor/ruby/some-file
in the list of files to open.Zed Version and System Specs
Zed: v0.169.3 (Zed)
OS: macOS 15.0.1
Memory: 36 GiB
Architecture: aarch64
If applicable, add screenshots or screencasts of the incorrect state / behavior
If applicable, attach your Zed.log file to this issue.
Zed.log
The text was updated successfully, but these errors were encountered: