Function: eca-chat--completion-context-from-new-context-exit-function
eca-chat--completion-context-from-new-context-exit-function is a
natively compiled function defined in eca-chat-context.el.
Signature
(eca-chat--completion-context-from-new-context-exit-function ITEM STATUS)
Documentation
Add to context the selected ITEM.
Directories are not finalized: completion keeps going inside them; typing a space adds the directory itself as context.
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--completion-context-from-new-context-exit-function (item _status)
"Add to context the selected ITEM.
Directories are not finalized: completion keeps going inside
them; typing a space adds the directory itself as context."
(if (eca-chat--completion-item-directory-p item)
(eca-chat--completion-drill-in eca-chat-context-prefix)
(eca-chat--add-context (get-text-property 0 'eca-chat-completion-item item))
(end-of-line)))