Hacker News new | ask | show | jobs
by oakpond 934 days ago
En garde! If you're a Vim user, fzf.vim [1] can do this. :)

[1]: https://github.com/junegunn/fzf.vim

2 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!

And if you want interactive support, try https://github.com/bombela/fzf.vim.rgfd

(shameless plug)