Skip to content

Image support in claude code #127

Open

Description

@yashwant-shrivastava

Currently claude code support image attachment using drag and drop or ctrl + v or (cmd + v). Can we add this support as well?

Activity

  1. stevemolitor commented on Apr 18, 2026

    @stevemolitor
    Owner

    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.

  2. dustinfarris commented on Apr 19, 2026

    @dustinfarris

    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.

  3. stevemolitor commented on Apr 19, 2026

    @stevemolitor
    Owner

    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.

    I've implemented this approach in #135 .

  4. dakra commented on Apr 21, 2026

    @dakra
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions