The Complete Computing Environment

Deadgrep is a Great Grep Interface

LifeTechEmacsTopicsArcology

ripgrep is a regular expression searching Tool written in Rust. deadgrep is a package which runs on top of it providing an Emacs interface to rg's functionality. I have it bound to C-x p a in a Projectile Hydra. I provide a "hack" to introduce some extra arguments to Deadgrep. While Wilfred is happy to commit and work on various issues, he hasn't seemed too interested in solving this. So we get out the emacs scalpel.

(use-package deadgrep
  :config
  (defun deadgrep--hack-arguments (oldfun &rest rest)
    (let ((res (apply oldfun rest)))
      (append (list "--follow" "--glob" "!*~") res)))
  (add-function :around (symbol-function 'deadgrep--arguments) #'deadgrep--hack-arguments))
(provide 'cce/deadgrep)

for NixOS Nix Home Manager:

{pkgs,...}:
{
  home.packages = [ pkgs.ripgrep ];
}