Function: eca-chat--filepath->str
eca-chat--filepath->str is a natively compiled function defined in
eca-chat-context.el.
Signature
(eca-chat--filepath->str FILEPATH LINES-RANGE)
Documentation
Convert FILEPATH and LINES-RANGE to a presentable str in buffer.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat-context.el
(defun eca-chat--filepath->str (filepath lines-range)
"Convert FILEPATH and LINES-RANGE to a presentable str in buffer."
(let* ((item-str (concat eca-chat-filepath-prefix
(eca-chat--context-presentable-path filepath)
(-when-let ((&plist :start start :end end) lines-range)
(format "(%d-%d)" start end)))))
(eca-chat--propertize-image-mention
(propertize item-str
'eca-chat-item-type 'filepath
'eca-chat-item-str-length (length item-str)
'eca-chat-expanded-item-str (concat eca-chat-filepath-prefix
filepath
(-when-let ((&plist :start start :end end) lines-range)
(format ":L%d-L%d" start end)))
'font-lock-face 'eca-chat-context-file-face)
filepath)))