You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a tough one. Image paste / drag-and-drop is hard to make work reliably through a terminal emulator: both eat and vterm emulate a PTY but don't forward OS-level drag events or clipboard image data to the underlying Claude process the way a real terminal (Ghostty, iTerm2, etc.) does. There's no clean way for claude-code.el to hook in between those layers - AFAIK.
This isn't something I'm planning to implement in the core package (it's fundamentally a terminal-emulator capability, not a claude-code.el one), but happy to consider a PR if someone finds a clean way — the most promising direction would probably be an Emacs-side command that prompts for an image/region, writes it to a temp file, and inserts @tempfile.png at point. I'll leave this open as a tracking issue.
fwiw I solve this by having a separate markdown buffer that I can drag+drop onto — and that gets sent to claude-code as a regular markdown image link to the file on disk.
fwiw I solve this by having a separate markdown buffer that I can drag+drop onto — and that gets sent to claude-code as a regular markdown image link to the file on disk.
Good idea! I do something similar in my matisse package.
jFYI, if you use ghostel as backend, both drag and drop and pasting images (with ctrl-v) works in claude-code. no code changes from claude-code.el necessary as it's a terminal feature.
Activity
stevemolitor commentedon Apr 18, 2026
This is a tough one. Image paste / drag-and-drop is hard to make work reliably through a terminal emulator: both eat and vterm emulate a PTY but don't forward OS-level drag events or clipboard image data to the underlying Claude process the way a real terminal (Ghostty, iTerm2, etc.) does. There's no clean way for claude-code.el to hook in between those layers - AFAIK.
This isn't something I'm planning to implement in the core package (it's fundamentally a terminal-emulator capability, not a claude-code.el one), but happy to consider a PR if someone finds a clean way — the most promising direction would probably be an Emacs-side command that prompts for an image/region, writes it to a temp file, and inserts @tempfile.png at point. I'll leave this open as a tracking issue.
dustinfarris commentedon Apr 19, 2026
fwiw I solve this by having a separate markdown buffer that I can drag+drop onto — and that gets sent to claude-code as a regular markdown image link to the file on disk.
stevemolitor commentedon Apr 19, 2026
Good idea! I do something similar in my matisse package.
I've implemented this approach in #135 .
dakra commentedon Apr 21, 2026
jFYI, if you use ghostel as backend, both drag and drop and pasting images (with ctrl-v) works in claude-code. no code changes from claude-code.el necessary as it's a terminal feature.