neoclide / coc-lists

Common lists for coc.nvim
264 stars 24 forks source link

arguments to rg (`rg-l`) #85

Open agtonybarletta opened 4 years ago

agtonybarletta commented 4 years ago

Is there a way to pass arguments to rg?

Since the grep command uses rg, can we pass argument to rg within the extension? I would like to simulate the behaviour of rg -l using CocList

:CocList grep -l
chemzqm commented 4 years ago

It should work by use fullname of option

agtonybarletta commented 4 years ago

Configuration:

If I run :CocList grep --files-with-matches it doesn't show anything. The command >rg -files-with-matches <string> run with cmd.exe works as expected.

chemzqm commented 4 years ago

You should use files source for grep files

agtonybarletta commented 4 years ago

What do you mean with "files source"? My intention is to search for a word within the content of the files and then list the file names only (not the content that matches the word). In this way I will have one line for each file matched ( one line for each file that contains the searched word) and not one line for each match in the file.

chemzqm commented 4 years ago

it won't work since grep list can't parse the result,should be possilbe with files source