mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
selectrum: remove doom-project-find-file
hack
This solution doesn't rely on condition evaluation order, and doesn't contain `featurep!`'s unnecessarily.
This commit is contained in:
@ -128,13 +128,13 @@ If DIR is not a project, it will be indexed (but not cached)."
|
||||
(if (doom-module-p :completion 'ivy)
|
||||
#'counsel-projectile-find-file
|
||||
#'projectile-find-file)))
|
||||
((fboundp 'selectrum-mode) ;HACK see @ymarco's comment on #5013 and TODO.org in the selecturm module.
|
||||
(call-interactively #'find-file))
|
||||
((fboundp 'counsel-file-jump) ; ivy only
|
||||
((and (bound-and-true-p ivy-mode)
|
||||
(fboundp 'counsel-file-jump))
|
||||
(call-interactively #'counsel-file-jump))
|
||||
((project-current nil dir)
|
||||
(project-find-file-in nil nil dir))
|
||||
((fboundp 'helm-find-files)
|
||||
((and (bound-and-true-p helm-mode)
|
||||
(fboundp 'helm-find-files))
|
||||
(call-interactively #'helm-find-files))
|
||||
((call-interactively #'find-file)))))
|
||||
|
||||
|
Reference in New Issue
Block a user