1

I think you are looking for something like ivy-rich. You can configure what should be displayed in the minibuffer, including the help string of the functions. You can configure the ivy-rich-display-transformers-alist. For description of variables or functions you can configure columns: (:columns ((counsel-M-x-transformer (:width 40)) (ivy-rich-counsel-...


1

I think that I misunderstood what the OP asked for. He wished to search for matches to arbitrary regexps not simply within the matches found by the usual imenu. This can be done. (defun imenu-match-insert (s) (interactive "sRegexp to search with: ") (let ((imenu--index-alist nil) (imenu-generic-expression (list (list nil s 0)))) (...


1

This does what you ask for. (defun imenu-insert-label (s) (interactive "sRegexp to search with: ") (insert (completing-read "Choose a target: " (seq-filter (lambda (z) (string-match s (car z))) (cdr (imenu--make-index-alist)))))...


Only top voted, non community-wiki answers of a minimum length are eligible