phiresky / ripgrep-all

rga: ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz, etc.
Other
8.21k stars 177 forks source link

How maintain colors when pipe result with less #118

Closed vcrini closed 3 years ago

vcrini commented 3 years ago

When I pipeline rga output with less e.g. rga something | less -r or rga something | less -R

output is paginated but colorized output is no more present

phiresky commented 3 years ago

Should work the same as with ripgrep. Which should work pretty much the same as with normal grep. Something like --color=always

vcrini commented 3 years ago

Oh my bad, thanks a lot. Valerio