feat(wpcarro/emacs): Pass --{hidden,follow} flags to rg
These are useful defaults. Change-Id: Ife4a7f559c9599ba3b846eea7e757266afd7ceae Reviewed-on: https://cl.tvl.fyi/c/depot/+/4805 Tested-by: BuildkiteCI Reviewed-by: wpcarro <wpcarro@gmail.com> Autosubmit: wpcarro <wpcarro@gmail.com>
This commit is contained in:
parent
07d1f9449b
commit
e0dbc1ae59
1 changed files with 5 additions and 6 deletions
|
@ -272,12 +272,11 @@
|
||||||
(setq deadgrep--additional-flags '("--multiline"))
|
(setq deadgrep--additional-flags '("--multiline"))
|
||||||
(wpc-misc-deadgrep-region)
|
(wpc-misc-deadgrep-region)
|
||||||
(call-interactively #'deadgrep))))
|
(call-interactively #'deadgrep))))
|
||||||
(advice-add
|
(advice-add 'deadgrep--arguments
|
||||||
'deadgrep--format-command
|
:filter-return
|
||||||
:filter-return
|
(lambda (args)
|
||||||
(lambda (cmd)
|
(push "--hidden" args)
|
||||||
(replace-regexp-in-string
|
(push "--follow" args))))
|
||||||
"^rg " "rg --hidden " cmd))))
|
|
||||||
|
|
||||||
;; TODO: Do I need this when I have swiper?
|
;; TODO: Do I need this when I have swiper?
|
||||||
(use-package counsel)
|
(use-package counsel)
|
||||||
|
|
Loading…
Add table
Reference in a new issue