Skip to content

Commit

Permalink
Use 'project-file as category metadata in completing read
Browse files Browse the repository at this point in the history
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
  • Loading branch information
juergenhoetzel authored and bbatsov committed Sep 1, 2024
1 parent 8cc2ee8 commit 002e527
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projectile.el
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 002e527

Please sign in to comment.