Function: eca-chat-toggle-expandable-block

eca-chat-toggle-expandable-block is an interactive and natively compiled function defined in eca-chat.el.

Signature

(eca-chat-toggle-expandable-block &optional FORCE-OPEN?)

Documentation

Toggle current expandable block at point.

Just open if FORCE-OPEN? is non-nil.

Key Bindings

eca-chat-mode-map C-c <tab>

Source Code

;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat.el
;;;###autoload
(defun eca-chat-toggle-expandable-block (&optional force-open?)
  "Toggle current expandable block at point.
Just open if FORCE-OPEN? is non-nil."
  (interactive)
  (eca-assert-session-running (eca-session))
  (eca-chat--with-current-buffer (eca-chat--get-last-buffer (eca-session))
    (unless (eca-chat--expandable-content-at-point-dwim)
      (eca-chat-go-to-prev-expandable-block))
    (when-let ((ov (eca-chat--expandable-content-at-point-dwim)))
      (eca-chat--expandable-content-toggle (overlay-get ov 'eca-chat--expandable-content-id) (when force-open? t) (not force-open?)))))