Helm: Fix Helm AG command (follow symlinks).
parent
4f80f66d3f
commit
3bc14f8458
|
@ -153,6 +153,10 @@
|
||||||
;;; https://github.com/emacs-helm/helm/issues/1118
|
;;; https://github.com/emacs-helm/helm/issues/1118
|
||||||
;; (define-key helm-read-file-map (kbd "M-p") 'helm-ff-run-switch-to-history)
|
;; (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)
|
(defun ambrevar/helm-grep-git-or-ag (arg)
|
||||||
"Run `helm-grep-do-git-grep' if possible; fallback to `helm-do-grep-ag' otherwise.
|
"Run `helm-grep-do-git-grep' if possible; fallback to `helm-do-grep-ag' otherwise.
|
||||||
Requires `call-process-to-string' from `functions'."
|
Requires `call-process-to-string' from `functions'."
|
||||||
|
|
Loading…
Reference in New Issue