completion/helm: add mdfind support to helm-locate

This commit is contained in:
Henrik Lissner 2019-09-22 13:33:26 -04:00
parent 87c6e8900c
commit 19ef103392
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -159,7 +159,12 @@ be negative.")
;;;###package helm-locate
(defvar helm-generic-files-map (make-sparse-keymap))
(after! helm-locate (set-keymap-parent helm-generic-files-map helm-map))
(after! helm-locate
(when (and IS-MAC
(null helm-locate-command)
(executable-find "mdfind"))
(setq helm-locate-command "mdfind -name %s"))
(set-keymap-parent helm-generic-files-map helm-map))
;;;###package helm-projectile