Function: marginalia-classify-by-prompt
marginalia-classify-by-prompt is a byte-compiled function defined in
marginalia.el.
Signature
(marginalia-classify-by-prompt)
Documentation
Determine category by matching regexps against the minibuffer prompt.
This runs through the marginalia-prompt-categories alist
looking for a regexp that matches the prompt.
Source Code
;; Defined in ~/.emacs.d/elpa/marginalia-20260724.810/marginalia.el
(defun marginalia-classify-by-prompt ()
"Determine category by matching regexps against the minibuffer prompt.
This runs through the `marginalia-prompt-categories' alist
looking for a regexp that matches the prompt."
(when-let* ((prompt (minibuffer-prompt)))
(setq prompt
(replace-regexp-in-string "(.*?default.*?)\\|\\[.*?\\]" "" prompt))
(cl-loop with case-fold-search = t
for (regexp . category) in marginalia-prompt-categories
when (string-match-p regexp prompt)
return category)))