top | item 40455898

(no title)

mcepl | 1 year ago

https://github.com/BurntSushi/ripgrep ???

discuss

order

zsyllepsis|1 year ago

The author specifically mentions, and benchmarks against, ripgrep in the linked content.

pdimitar|1 year ago

ripgrep is brilliant and I use it a lot but it has no knowledge of the languages it works with so I don't use it for searching anything more than names of functions or stuff.

If you really need to search for code constructs that can span multiple lines (but not always do) then Treesitter-aware tools like ast-grep and gritql are superior.

kstrauser|1 year ago

Ripgrep lacks the “& replace” bit.

cess11|1 year ago

Nah.

   $ rg 'sear' -r 'repl' file.txt