Open UKeeySDis opened 4 years ago
:Rg
returns command not found for me, too
Run the command in the error message in your shell and check the exit code. If it's non-zero, fzf displays the message.
Run the command in the error message in your shell and check the exit code. If it's non-zero, fzf displays the message.
I check the exit code by run echo $?
in my shell, but the result is zero.
:Rg
returns command not found for me, too
maybe u should run rg
in your shell first.
This rg
man page says:
If ripgrep finds a match, then the exit status of the program is 0. If no match could be found, then the exit status is 1. If an error occurred, then the exit status is always 2 unless ripgrep was run with the --quiet flag and a match was found.
The fzf
code appears to report the "Command failed" error if the command didn't exit with status 0 and produced no output, which is the case when ripgrep matching no lines.
So, I think that for no search results this is the expected behaviour.
I saw similar issues like this one, but they provided empty query, I'm not. I can run this command in terminal success. rg version:
This is my .vimrc about fzf: