Skip to content

Commit

Permalink
Add category metadata to completing-read
Browse files Browse the repository at this point in the history
  • Loading branch information
juergenhoetzel authored and bbatsov committed Aug 14, 2024
1 parent 70d03fb commit fb78b79
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion projectile.el
Original file line number Diff line number Diff line change
Expand Up @@ -2072,7 +2072,13 @@ project-root for every file."
((bound-and-true-p ivy-mode) 'ivy)
(t 'default))
projectile-completion-system)
('default (completing-read prompt choices nil nil initial-input))
('default (completing-read prompt (lambda (string pred action)
(cond
((eq action 'metadata)
'(metadata . ((category . file))))
(t
(complete-with-action action choices string pred))))
nil nil initial-input))
('ido (ido-completing-read prompt choices nil nil initial-input))
('helm
(if (and (fboundp 'helm)
Expand Down

0 comments on commit fb78b79

Please sign in to comment.