completion/helm: don't index HOME

Invoke helm-find-files instead
This commit is contained in:
Henrik Lissner 2018-08-04 16:00:11 +02:00
parent 9a3e71731c
commit 2c956593cf
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 13 additions and 1 deletions

View file

@ -6,6 +6,18 @@
;; TODO Implement `+helm/tasks'
(error "Not implemented yet"))
;;;###autoload
(defun +helm/projectile-find-file ()
"Call `helm-find-files' if called from HOME, otherwise
`helm-projectile-find-file'."
(interactive)
(call-interactively
(if (or (file-equal-p default-directory "~")
(when-let* ((proot (doom-project-root 'nocache)))
(file-equal-p proot "~")))
#'helm-find-files
#'helm-projectile-find-file)))
;;
;; Project search