The Complete Computer

Deadgrep is a Great Grep Interface

LifeTechEmacsArcology

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 roam:get out the emacs scalpel .

emacs-lisp source: 
(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 :

nix source: :tangle ~/arroyo-nix/hm/deadgrep.nix
{pkgs,...}: { home.packages = [ pkgs.ripgrep ]; }