如何让project-find-regexp使用ripgrep

在使用project-find-regexp查找内容时数度太慢了,有没有办法向 projectile一样使用ripgrep( projectile-ripgrep)。

consult-ripgrep 换成你用的

(advice-add #'project-find-regexp :override #'consult-ripgrep)
2 个赞

谢谢你,解决 :blush:

可以通过设置 (setq xref-search-program 'ripgrep) ,来让 project-find-regexp 使用 ripgrep

6 个赞

这个是正解,不过只支持28+。

1 个赞