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
It only happens when specifying the dir as an arg.
With just /usr/bin/rg scroll -l it makes no difference if --smart-case is used (it is always ignored then as expected).
blueyed
changed the title
--smart-case ignores .ignore file?!
--smart-case ignores .ignore file when using path argument
Sep 15, 2019
I don't see what smart case has to do with this. The output you've shown is invariant with respect to whether smart case is enabled or not.
This looks like a duplicate of a big where ignore rules aren't always handled correctly when a directory is specified as an argument. But I'm on mobile, so I'm not searching for it right now.
The --smart-case behavior is easily explained. The file contains the text SCROLL, so rg scroll won't match it but rg scroll --smart-case will. This is expected and correct.
Using
--smart-case
does not ignore a file specified in.ignore
..ignore
includes:The whole .ignore file:
This might be due to the file itself (via https://github.com/neovim/neovim/tree/b9d035a39cfcd61eab2633f55e6064460f557c69/test/functional/fixtures), I can provide more info if it is not reproducible for you.
ripgrep 11.0.2
-SIMD -AVX (compiled)
+SIMD +AVX (runtime)
The text was updated successfully, but these errors were encountered: