Skip to content

Comment on Ripgrep 14 Releasedparent

Comments

If you don't need live updating output, you can just set grepprg and get results in the quickfix list with :grep[!] (or the location list with :lgrep[!]).

  if executable('rg')
    let &grepprg = 'rg --vimgrep $*'
  endif
No need for Fzf/Telescope/Denite/DDU or anything else in that case.

See:

https://neovim.io/doc/user/quickfix.html#%3Agrep

https://neovim.io/doc/user/options.html#'grepprg'

used to do that with glimpse when i worked with very large codebases 23 years ago!

big fan of ag, ripgrep and burntsushi's rust work!

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.