vim-grepper icon indicating copy to clipboard operation
vim-grepper copied to clipboard

no results for term surrounded by single quotes under Microsoft Windows 10

Open Konfekt opened this issue 4 years ago • 3 comments

With

let g:grepper.prompt_quote = 2

under Windows 10, no results are found. That is, if the search term is surrounded by single quotes, then, under Windows 10, no grepper tool (be it git-grep, rg, ag, ...) finds any result.

Instead double quotes work fine.

Therefore

let g:grepper.prompt_quote = has('win32') ? 3 : 2

is to be recommended.

Konfekt avatar Aug 31 '21 13:08 Konfekt

This is not specific to vim-grepper. Vim's grep with &grepprg set just as grepper.tool.grepprg also shows no results for search terms surrounded by single quotes.

Konfekt avatar Aug 31 '21 13:08 Konfekt

As I understand it, this is a pretty normal artifact of the "standard" quoting rules on Windows (to the extent such a standard exists).

This is also an issue for the grep operator, which seems to always single-quote the query.

blm768 avatar Apr 01 '22 15:04 blm768

Yes, single quoting on Windows gives results that have little to do with what you expect on Unix

Konfekt avatar Apr 01 '22 18:04 Konfekt