Function: eca-chat--completion-drill-in

eca-chat--completion-drill-in is a natively compiled function defined in eca-chat-context.el.

Signature

(eca-chat--completion-drill-in PREFIX)

Documentation

Keep completing after PREFIX instead of finalizing the item.

Strips the completion text properties from the just inserted directory text and re-triggers completion so the user can drill into the directory contents.

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-drill-in (prefix)
  "Keep completing after PREFIX instead of finalizing the item.
Strips the completion text properties from the just inserted
directory text and re-triggers completion so the user can drill
into the directory contents."
  (let ((start-pos (save-excursion
                     (search-backward prefix (line-beginning-position) t))))
    (when start-pos
      (remove-text-properties (+ start-pos (length prefix)) (point)
                              '(eca-chat-completion-item nil face nil))))
  (eca-chat--completion-retrigger))