Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is clever. I wrote a "replace_all" bash function years ago that does the "run ripgrep and replace on the result files" and while it works well 99% of the time it is annoying when it screws up things due to partial matches. I solved this by basically forcing literal matches and word boundaries but it's limiting at that point.

The rep approach to use the actual ripgrep output seems very clever, tho I wonder how well it works in practice, but I'll be sure to give it a try.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: