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

Add support for ripgrep

Open eulerdisk opened this issue 9 years ago • 5 comments

ripgrep is a superfast grep implemented in Rust. It would be nice to have it.

https://github.com/BurntSushi/ripgrep

eulerdisk avatar Oct 04 '16 08:10 eulerdisk

This looks like a great tool, thanks for suggesting it. I added initial support in this commit: 6a2225db8fcd5045b4c132c488863d257851632a

Not all options are yet implemented but I'm hoping to look into the rest soon. In the meantime basic support should work.

dkprice avatar Oct 05 '16 11:10 dkprice

Thank you! rg is so much faster...

Some documentation for other users:

:GrepCommand to test

And enable permanently with:

let g:EasyGrepCommand='rg'

dpc avatar Sep 21 '17 21:09 dpc

Any progress on this ? I haven't managed to get RG working following @dpc instructions

Herz3h avatar Apr 22 '18 21:04 Herz3h

@Herz3h Did you make any progress. It works for me

dylan-chong avatar Jun 17 '18 21:06 dylan-chong

Ahh, the only problem is when trying to do a replace with special characters (e.g. (). ag has the same problem with this plug-in.

The problem is due to grep needing to escape different characters versus ag / rg

dylan-chong avatar Jun 17 '18 22:06 dylan-chong