Helm: Fix Helm AG command (follow symlinks).

master
Pierre Neidhardt 2021-02-21 17:29:50 +01:00
parent 4f80f66d3f
commit 3bc14f8458
1 changed files with 4 additions and 0 deletions

View File

@ -153,6 +153,10 @@
;;; https://github.com/emacs-helm/helm/issues/1118
;; (define-key helm-read-file-map (kbd "M-p") 'helm-ff-run-switch-to-history)
;; Follow symlinks with 'ag', otherwise visiting a symlinked files and greping
;; may yield (unexpectedly) no result.
(setq helm-grep-ag-command "ag --follow --line-numbers -S --color --nogroup %s %s %s")
(defun ambrevar/helm-grep-git-or-ag (arg)
"Run `helm-grep-do-git-grep' if possible; fallback to `helm-do-grep-ag' otherwise.
Requires `call-process-to-string' from `functions'."