Add pin from clipboard#210
Open
chablino wants to merge 3 commits into
Open
Conversation
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds a “Pin from Clipboard” feature, including a new hotkey/menu item and clipboard-to-image rendering for both images and text content.
Changes:
- Added new localized strings for “Pin from Clipboard” and a new clipboard-content alert.
- Extended hotkey registration to include a new
pinFromClipboardslot. - Introduced clipboard pinning services to convert clipboard image/text (HTML/RTF/plain) into an
NSImagefor pinning.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| macshot/en.lproj/Localizable.strings | Adds localized menu title and alert text for pinning clipboard content. |
| macshot/Services/HotkeyManager.swift | Adds a new hotkey slot and wires it into registration and menu shortcut mapping. |
| macshot/Services/ClipboardTextPinRenderer.swift | New renderer to normalize attributed text and rasterize it into an image with sensible bounds. |
| macshot/Services/ClipboardPinService.swift | New service to extract an image directly or render text into an image from pasteboard items. |
| macshot/AppDelegate.swift | Adds menu item + hotkey callback and implements the pin-from-clipboard flow + alert. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
4a215fd to
d199a16
Compare
d199a16 to
721e42d
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.
Summary
Test Plan
Demo
Text clipboard:
