Using opencode.el 808c168e33 on GNU Emacs 30.2 (build 1, aarch64-apple-darwin23.2.0, NS appkit-2487.30 Version 14.2 (Build 23C64)) of 2025年12月06日 I'm unable to past an image to the chat because C-v is being shadowed.
Would it be possible to add a command to get a image from the clipboard to the opencode session?
Support Pasting an image #32
Right now you can add image files with with C-c f (opencode-add-file) or opencode-add-file-dwim (in a buffer with the image file open, or in dired with the point over the image file name). We don't support pasting images from clipboard yet, I think the emacsy way to do it would be to register a yank-media-handler for opencode-session-mode so that yank-media works.
Thanks for looking into this so quickly! I had found the add-file approach, but found it wasn't too handy as one needs to store the image somewhere first (rather than taking a screenshot and pasting it directly). yank-media sounds like a good approach and possible future improvement. Understanding that approach I though also think the C-c f (opencode-add-file) approach is a totally reasonable workaroung. Feel free to close the ticket or keep it open for future reference.
Thank you overall for putting this package together! It's overall a joy to use!
opencode+GPT made short work of it, yank-media should work now in opencode session buffers
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?