Function: gptel-highlight--margin-prefix
gptel-highlight--margin-prefix is a natively compiled function defined
in gptel.el.
Signature
(gptel-highlight--margin-prefix TYPE)
Documentation
Create margin prefix string for TYPE.
Supported TYPEs are response, ignore and tool calls.
Source Code
;; Defined in /nix/store/q3r7g81pvghw7a523kjk2k2zih3pfk8z-emacs-packages-deps/share/emacs/site-lisp/elpa/gptel-20261002.545/gptel.el
;; Common options for margin indicator:
;; BOX DRAWINGS LIGHT VERTICAL 0x002502
;; LEFT ONE QUARTER BLOCK 0x00258E
;; LEFT THREE EIGHTHS BLOCK 0x00258D
;; BOX DRAWINGS HEAVY VERTICAL 0x002503
;; VERTICAL ONE EIGHTH BLOCK-2 0x01FB70
(defun gptel-highlight--margin-prefix (type)
"Create margin prefix string for TYPE.
Supported TYPEs are response, ignore and tool calls."
(propertize ">" 'display
`( (margin left-margin)
,(propertize "▎" 'face
(pcase type
('response 'gptel-response-fringe-highlight)
('ignore 'shadow)
(`(tool . ,_) 'shadow))))))