Function: claude-code-ide-insert-at-mentioned
claude-code-ide-insert-at-mentioned is an interactive and natively
compiled function defined in claude-code-ide.el.
Signature
(claude-code-ide-insert-at-mentioned)
Documentation
Insert selected text into a Claude prompt.
Targets one instance: the current terminal, the sole or sole-visible instance, else the most recently used one (prefix argument picks).
Key Bindings
This command is not in any keymaps.
Source Code
;; Defined in /nix/store/yjvbhwl7p6zrbw9xlnni7y4hra8sa3pl-emacs-packages-deps/share/emacs/site-lisp/claude-code-ide.el
;;;###autoload
(defun claude-code-ide-insert-at-mentioned ()
"Insert selected text into a Claude prompt.
Targets one instance: the current terminal, the sole or sole-visible
instance, else the most recently used one (prefix argument picks)."
(interactive)
(let ((session (claude-code-ide--resolve-session 'auto "Send selection to Claude instance: ")))
(if (and session (claude-code-ide-mcp-session-client session))
(progn
(claude-code-ide-mcp-send-at-mentioned session)
(claude-code-ide-debug "Sent selection to Claude Code"))
(user-error "Claude Code is not connected. Please start Claude Code first"))))