Function: consult-imenu-multi

consult-imenu-multi is an autoloaded, interactive and byte-compiled function defined in consult-imenu.el.

Signature

(consult-imenu-multi &optional QUERY)

Documentation

Select item from the imenus of all buffers from the same project.

In order to determine the buffers belonging to the same project, the consult-project-function is used. Only the buffers with the same major mode as the current buffer are used. See also consult-imenu for more details. In order to search a subset of buffers, QUERY can be set to a plist according to consult--buffer-query.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/consult-20260805.1130/consult-imenu.el
;;;###autoload
(defun consult-imenu-multi (&optional query)
  "Select item from the imenus of all buffers from the same project.

In order to determine the buffers belonging to the same project, the
`consult-project-function' is used.  Only the buffers with the
same major mode as the current buffer are used.  See also
`consult-imenu' for more details.  In order to search a subset of buffers,
QUERY can be set to a plist according to `consult--buffer-query'."
  (interactive "P")
  (unless (keywordp (car-safe query))
    (setq query (list :sort 'alpha :mode major-mode
                      :directory (and (not query) 'project))))
  (let ((buffers (consult--buffer-query-prompt "Go to item" query)))
    (consult-imenu--select (car buffers)
                           (consult-imenu--multi-items (cdr buffers)))))