Function: consult--prefix-group

consult--prefix-group is a byte-compiled function defined in consult.el.

Signature

(consult--prefix-group CAND TRANSFORM)

Documentation

Return title for CAND or TRANSFORM the candidate.

The candidate must have a consult--prefix-group property.

Source Code

;; Defined in ~/.emacs.d/elpa/consult-20260805.1130/consult.el
;;;; Narrowing and grouping

(defun consult--prefix-group (cand transform)
  "Return title for CAND or TRANSFORM the candidate.
The candidate must have a `consult--prefix-group' property."
  (if transform
      (substring cand (1+ (length (get-text-property 0 'consult--prefix-group cand))))
    (get-text-property 0 'consult--prefix-group cand)))