completion/helm: don't index HOME
Invoke helm-find-files instead
This commit is contained in:
parent
9a3e71731c
commit
2c956593cf
2 changed files with 13 additions and 1 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue