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
1. Use ripgrep over the Silver Searcher if it's installed.
2. Finally figured out the issue with .gitignore. I was
backslash-escaping spaces in .gitignore, which works for git, but
(currently) not for ripgrep or the Silver Searcher. Removing the
unnecessary backslashes fixed the issue. Now I can finally :grep much
faster than I :vimgrep, and use the external tools for much faster
CtrlP-opening.
I opened issues on the tools themselves:
- BurntSushi/ripgrep#659
- ggreer/the_silver_searcher#1172
In short, git treats paths with escaped spaces in the same way as paths with spaces. The Silver Searcher doesn't.
Steps to reproduce:
mkdir test_ignore
cd test_ignore
git init
echo "hi there" > "ignore me"
echo "ignore\\ me" >> .gitignore
git status
Note that the "ignore me" file is not listed.ag hi
Observed results:
Expected results:
There should be no output, because the Silver Searcher should be ignoring the "ignore me" file.
I've just fixed my repo not to include the unnecessary escaping, so as far as I'm concerned this is pretty low priority ;).
The text was updated successfully, but these errors were encountered: