From 002e52769e5fda5e03fb9069ae02b2d3763c92e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20H=C3=B6tzel?= Date: Sun, 1 Sep 2024 17:17:10 +0200 Subject: [PATCH] Use 'project-file as category metadata in completing read project-file is a more suitable category for the completion (also used by project.el). 'vertico-prescient-completion-category-overrides changes the completion style for 'file to '(basic partial-completion) and limits completion to prefix matches. Fixes #1902 --- projectile.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projectile.el b/projectile.el index 83bfe895..13e42407 100644 --- a/projectile.el +++ b/projectile.el @@ -2079,7 +2079,7 @@ project-root for every file." ;; embark to enhance how they ;; present candidates ((eq action 'metadata) - '(metadata . ((category . file)))) + '(metadata . ((category . project-file)))) (t (complete-with-action action choices string pred)))) nil nil initial-input))