Function: eca-chat--key-pressed-tab

eca-chat--key-pressed-tab is an interactive and natively compiled function defined in eca-chat.el.

Signature

(eca-chat--key-pressed-tab)

Documentation

Expand tool call if point is at expandable content, or use default behavior.

Key Bindings

eca-chat-mode-map TAB

Source Code

;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat.el
(defun eca-chat--key-pressed-tab ()
  "Expand tool call if point is at expandable content, or use default behavior."
  (interactive)
  (cond
   ;; expandable toggle
   ((eca-chat--expandable-content-at-point)
    (eca-chat--allow-write
     (eca-chat--expandable-content-toggle (overlay-get (eca-chat--expandable-content-at-point) 'eca-chat--expandable-content-id))))

   ;; context completion
   ((and (eca-chat--prompt-context-field-ov)
         (eolp))
    (completion-at-point))

   ;; prompt completion for @context, #file or /command tokens
   ((and (eca-chat--point-at-prompt-field-p)
         (eca-chat--completion-type-at-point))
    (completion-at-point))

   (t t)))