From dd9657d90dd647ea489ab554ad9aa0c054872d9f Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 25 Jul 2021 17:55:59 -0400 Subject: [PATCH] Fix SPC f F w/ vertico + consult Not a perfect analogue to counsel-file-jump, but it's a start (and better than the previous no-op). --- core/autoload/projects.el | 3 +++ modules/config/default/autoload/files.el | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/core/autoload/projects.el b/core/autoload/projects.el index 93c3117e8..6346caf8d 100644 --- a/core/autoload/projects.el +++ b/core/autoload/projects.el @@ -128,6 +128,9 @@ 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))) + ((and (bound-and-true-p vertico-mode) + (fboundp 'consult-find)) + (consult-find default-directory)) ((and (bound-and-true-p ivy-mode) (fboundp 'counsel-file-jump)) (call-interactively #'counsel-file-jump)) diff --git a/modules/config/default/autoload/files.el b/modules/config/default/autoload/files.el index 21bdef833..9f21ed0c7 100644 --- a/modules/config/default/autoload/files.el +++ b/modules/config/default/autoload/files.el @@ -36,7 +36,7 @@ (interactive) (if (featurep! :completion ivy) (call-interactively #'counsel-file-jump) - (cmd! (doom-project-find-file default-directory)))) + (doom-project-find-file default-directory))) ;;;###autoload (defun +default/discover-projects (arg)