Function: consult-global-mark
consult-global-mark is an autoloaded, interactive and byte-compiled
function defined in consult.el.
Signature
(consult-global-mark &optional MARKERS)
Documentation
Jump to a marker in MARKERS list (defaults to global-mark-ring).
The command supports preview of the currently selected marker position. The symbol at point is added to the future history.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/consult-20260805.1130/consult.el
;;;###autoload
(defun consult-global-mark (&optional markers)
"Jump to a marker in MARKERS list (defaults to `global-mark-ring').
The command supports preview of the currently selected marker position.
The symbol at point is added to the future history."
(interactive)
(consult--read
(consult--global-mark-candidates
(or markers global-mark-ring))
:prompt "Go to global mark: "
;; Despite `consult-global-mark' formatting the candidates in grep-like
;; style, we are not using the `consult-grep' category, since the candidates
;; have location markers attached.
:category 'consult-location
:sort nil
:require-match t
:lookup #'consult--lookup-location
:history '(:input consult--line-history)
:add-history (thing-at-point 'symbol)
:state (consult--jump-state)))