Ripgrep is faster than grep, ag, Git grep, ucg, pt, sift (2016)
blog.burntsushi.net
Ripgrep is faster than grep, ag, Git grep, ucg, pt, sift (2016)
1–10 of 198 posts
Re: Ripgrep is faster than grep, ag, Git grep, ucg, pt, sift (2016)
#2Re: Ripgrep is faster than grep, ag, Git grep, ucg, pt, sift (2016)
#3 function frg {
$result = rg --ignore-case --color=always --line-number --no-heading @Args |
fzf --ansi `
--color 'hl:-1:underline,hl+:-1:underline:reverse' `
--delimiter ':' `
--preview "bat --color=always {1} --theme='Solarized (light)' --highlight-line {2}" `
--preview-window 'up,60%,border-bottom,+{2}+3/3,~3'
if ($result) {
& ($env:EDITOR).Trim("`"'") $result.Split(': ')[0]
}
}
There are other ways to approach this, but for me this is a very fast way of nailing down 'I now something exists in this multi-repo project but don't know where exactly nor the exact name'edit this comes out of https://github.com/junegunn/fzf/blob/master/ADVANCED.md and even though you might not want to use most of what is in there, it's still worth glancing over it to get ideas of what you could do with it
Re: Ripgrep is faster than grep, ag, Git grep, ucg, pt, sift (2016)
#4Re: Ripgrep is faster than grep, ag, Git grep, ucg, pt, sift (2016)
#5Re: Ripgrep is faster than grep, ag, Git grep, ucg, pt, sift (2016)
#6But is any of them using `_mm256_sad_epu8` for small, literal strings?
Re: Ripgrep is faster than grep, ag, Git grep, ucg, pt, sift (2016)
#7It's fast indeed. And I can't help keeping promoting the combination with fzf :) For those who want to try it out, this is a Powershell function but the same principle applies in any shell. Does ripgrep then puts fuzzy searching in the resulting files+text on top while showing context in bat: function frg { $result = rg --ignore-case --color=always --line-number --no-heading @Args | fzf --ansi ` --color 'hl:-1:underl…
Re: Ripgrep is faster than grep, ag, Git grep, ucg, pt, sift (2016)
#8It's fast indeed. And I can't help keeping promoting the combination with fzf :) For those who want to try it out, this is a Powershell function but the same principle applies in any shell. Does ripgrep then puts fuzzy searching in the resulting files+text on top while showing context in bat: function frg { $result = rg --ignore-case --color=always --line-number --no-heading @Args | fzf --ansi ` --color 'hl:-1:underl…
How do you scroll the preview window with keyboard ?
Re: Ripgrep is faster than grep, ag, Git grep, ucg, pt, sift (2016)
#9git grep cannot even find a simple string in its repo.