jremmen / vim-ripgrep

Use RipGrep in Vim and display results in a quickfix list
MIT License
541 stars 99 forks source link

ignorecase and smartcase #36

Open cngu opened 5 years ago

cngu commented 5 years ago

Hi!

In my .vimrc, I have: set ignorecase smartcase

This allows me to search via / ignoring case, but then switch to smart-case as soon as I type a capital.

However, this causes an undesired behavior in vim-ripgrep where the quickfix list contains all matches ignoring case, even if my search query contained a capital letter. g:rg_highlight only highlights the case-sensitive matches, which is great, but I'd also expect all the other incorrect-case-matches to be filtered out to make :cn and :cp easier.

I believe this was introduced in #5, although I'm not sure if this is by-design. But regardless, I'd greatly appreciate any tips to achieve my expected behavior!