Global/project search should respect a global .gitignore #29037
Replies: 1 comment
-
There's another thing. For now, I moved stuff to However, having something git ignored doesn't make it disappear from the tree. It's visible, greyed out. So having something in the gitignore makes it so:
This is to say that making zed respect the global |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When using global search in my rather large project, I find that the search is really slow. Comparing to VS Code - really slow, like orders of magnitude.
The thing is, I have some gitignored files in my repo. But they are not gitignored inside my repo, I ignore them via the
.global-gitignore
in my dotfiles. VS Code doesn't respect the global gitignore, but is still really fast, instant (I guess because of the ripgrep).But, VS Code has the option to respect the global gitignore config: microsoft/vscode#59364
Is there a way for zed to also have this? Or better yet - improve the search performance (I know that there are already issues about that, so this issue is I guess only about the usage of global gitignore files). When I added one problematic folder to either:
.gitignore
in my repofile_scan_exclusions
in the settings, the search was near instant. That doesn't solve the issue of the search being really slow, but it could help with it. I can obviously add this stuff to my
file_scan_exclusions
and be done with it, but I guess having an option to have it in a global gitignore and zed respecting it is better,Beta Was this translation helpful? Give feedback.
All reactions