branch: externals/marginalia commit 0cb98a0ee22a4d0d614fadbd21555b1a0b1e2350 Author: Omar Antolín <omar.anto...@gmail.com> Commit: Omar Antolín <omar.anto...@gmail.com>
Remove default value from prompt before matching --- marginalia.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/marginalia.el b/marginalia.el index cb88f6e..a977b4c 100644 --- a/marginalia.el +++ b/marginalia.el @@ -229,6 +229,8 @@ determine it." 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 for (regexp . category) in marginalia-prompt-categories when (string-match-p regexp prompt) return category)))