Function: eca-chat--file-to-completion
eca-chat--file-to-completion is a natively compiled function defined
in eca-chat-context.el.
Signature
(eca-chat--file-to-completion QUERY ROOTS FILE)
Documentation
Convert FILE to a completion item for typed QUERY and ROOTS.
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--file-to-completion (query roots file)
"Convert FILE to a completion item for typed QUERY and ROOTS."
(propertize (eca-chat--completion-path-label
query roots
(plist-get file :path)
(string= "directory" (plist-get file :type)))
'eca-chat-completion-item file
'face 'eca-chat-context-file-face))