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' ;; TODO Implement `+helm/tasks'
(error "Not implemented yet")) (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 ;; Project search

View file

@ -30,7 +30,7 @@ If you want to already use git-grep or grep, set this to nil.")
[remap imenu-anywhere] #'helm-imenu-anywhere [remap imenu-anywhere] #'helm-imenu-anywhere
[remap imenu] #'helm-semantic-or-imenu [remap imenu] #'helm-semantic-or-imenu
[remap noop-show-kill-ring] #'helm-show-kill-ring [remap noop-show-kill-ring] #'helm-show-kill-ring
[remap projectile-find-file] #'helm-projectile-find-file [remap projectile-find-file] #'+helm/projectile-find-file
[remap projectile-recentf] #'helm-projectile-recentf [remap projectile-recentf] #'helm-projectile-recentf
[remap projectile-switch-project] #'helm-projectile-switch-project [remap projectile-switch-project] #'helm-projectile-switch-project
[remap projectile-switch-to-buffer] #'helm-projectile-switch-to-buffer [remap projectile-switch-to-buffer] #'helm-projectile-switch-to-buffer