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
Hello! today I've tried to add some additional arguments to live_grep on Windows. However, I ran into the problem that this some arguments ripgrep just refused to work and provided empty output.
Now it works, because nvim.uv (nvim.loop) automatically puts the arguments to ripgrep in double quotes on Windows ONLY and if you have several arguments in one string it quotes the entire string and the args become invalid.
To be honest, this is extremely counterintuitive behavior that's OS specific. You can remedy this by setting options.verbatim of uv.spawn to true (in lua/telescope/_.lua. The file is probably generated, I didn't check the repo ). Alternatively, you can specifically explain this behavior in the docs to Telescope and make it more apparent (if it already is explained, I've missed it and it drives my point home IMHO).
Description
Hello! today I've tried to add some additional arguments to live_grep on Windows. However, I ran into the problem that this some arguments ripgrep just refused to work and provided empty output.
So, what I originally tried to do is this:
However, this leads to unexpected behavior above. The trick is to do it like this:
Now it works, because nvim.uv (nvim.loop) automatically puts the arguments to ripgrep in double quotes on Windows ONLY and if you have several arguments in one string it quotes the entire string and the args become invalid.
To be honest, this is extremely counterintuitive behavior that's OS specific. You can remedy this by setting
options.verbatim
ofuv.spawn
to true (inlua/telescope/_.lua
. The file is probably generated, I didn't check the repo ). Alternatively, you can specifically explain this behavior in the docs to Telescope and make it more apparent (if it already is explained, I've missed it and it drives my point home IMHO).Neovim version
Operating system and version
Windows 11
Telescope version / branch / rev
df534c3 fix(git_status): correctly count result on_complete (#3321) (3 weeks ago)
checkhealth telescope
Steps to reproduce
Expected behavior
ripgrep returns expected results or tells you which arguments are incorrect.
Actual behavior
ripgrep shows empty output.
Minimal config
The text was updated successfully, but these errors were encountered: