feat(desktop): add "Copy Image" to right-click context menu#1052
Merged
juliusmarminge merged 1 commit intopingdotgg:mainfrom Apr 10, 2026
Merged
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Contributor
|
Nice! This would be useful |
5ae725c to
1e8b583
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Changed
Added a "Copy Image" option to the Electron right-click context menu when clicking on an image.
Why
The Electron context menu only showed Cut/Copy/Paste/Select All. There was no way to copy an image from the app, whether from the expanded image preview or the smaller image thumbnails.
UI Changes
Before:

On expanded image preview:
On image thumbnail:

After:

On expanded image preview:
On image thumbnail:

Checklist
Note
Add "Copy Image" to the desktop right-click context menu
In main.ts, the
context-menuevent handler increateWindownow injects a "Copy Image" menu item when right-clicking on an image. Selecting it callswebContents.copyImageAt(x, y)to copy the image to the clipboard.Macroscope summarized 5ae725c.
Note
Low Risk
Low risk UI-only change in the desktop context menu that calls Electron’s built-in
webContents.copyImageAt; no auth or data processing changes.Overview
Adds a "Copy Image" item to the desktop Electron
webContentsright-click context menu when the clicked element is an image (params.mediaType === "image"). Selecting it copies the image under the cursor viawebContents.copyImageAt(x, y), inserted before the standard cut/copy/paste entries.Reviewed by Cursor Bugbot for commit 1e8b583. Bugbot is set up for automated code reviews on this repo. Configure here.