From 89d8170eac2630d3759e54aa713ad69ec2b84e1b Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 8 Feb 2024 01:55:17 -0500 Subject: [PATCH] fix(lib): doom-project-find-file: remove +vertico/consult-fd-or-find When +vertico/find-file-in was replaced in 60e22fd with +vertico/consult-fd-or-find, it changed a key behavior for doom-project-find-file for Vertico users: instead of displaying an initial list of all files under the target directory, it would display nothing until the user entered in N * `consult-async-min-input` characters, causing confusion (see linked comment). Since Vertico integration modifies project-find-file-in's interface appropriately, I leave it to that command instead. Ref: https://github.com/doomemacs/doomemacs/issues/7312#issuecomment-1933404444 Amend: 60e22fd2eb61 --- lisp/lib/projects.el | 3 --- 1 file changed, 3 deletions(-) diff --git a/lisp/lib/projects.el b/lisp/lib/projects.el index 91f528e12..a1655f314 100644 --- a/lisp/lib/projects.el +++ b/lisp/lib/projects.el @@ -149,9 +149,6 @@ 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 '+vertico/consult-fd-or-find)) - (+vertico/consult-fd-or-find default-directory)) ((and (bound-and-true-p ivy-mode) (fboundp 'counsel-file-jump)) (call-interactively #'counsel-file-jump))