Function: eca-chat-toggle-image-thumbnail
eca-chat-toggle-image-thumbnail is an interactive and natively
compiled function defined in eca-chat-image.el.
Signature
(eca-chat-toggle-image-thumbnail)
Documentation
Toggle the thumbnail of the image mention at point.
Image mentions are the image files added to the prompt, like pasted
screenshots, and their mentions in sent messages. The thumbnail,
sized by eca-chat-image-thumbnail-size, is displayed in place of
the mention; the text is unchanged, and so is the prompt sent.
Key Bindings
This command is not in any keymaps.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat-image.el
(defun eca-chat-toggle-image-thumbnail ()
"Toggle the thumbnail of the image mention at point.
Image mentions are the image files added to the prompt, like pasted
screenshots, and their mentions in sent messages. The thumbnail,
sized by `eca-chat-image-thumbnail-size', is displayed in place of
the mention; the text is unchanged, and so is the prompt sent."
(interactive)
(if-let* ((link (or (eca-chat--image-link-at (point))
(and (> (point) (point-min))
(eca-chat--image-link-at (1- (point)))))))
(eca-chat--toggle-image-thumbnail link)
(eca-warn "No image mention at point")))