added image clipboard support#264
Open
FelipeFMA wants to merge 1 commit into
Open
Conversation
Capture and serve binary image targets (image/png, image/bmp, image/jpeg, image/tiff, image/gif, image/webp) alongside standard text selections. - Store binary image data with content type metadata and human-readable size labels (e.g., "[JPEG image] 1.5K") in menu launchers. - Position content_type at the end of struct cs_snip to preserve on-disk binary layout compatibility with legacy snip files. - Track selection target requests with a per-selection FIFO queue (pending_type_queue) to prevent content-type mislabeling when TARGETS responses arrive out of order. - Inspect offered targets in selection owner priority order and detect image types from buffer magic bytes. - Clear pending target queues on selection change and pop unowned selection requests to prevent queue desynchronization. - Bypass text-only operations (first_line, is_salient_text, partial merges) on non-TEXT binary payloads. - Include TARGETS atom in clipserve TARGETS response for ICCCM §2.6.2 compliance. - Add unit test coverage for image clip storage, image detection, size formatting, and content type labels.
Author
|
would close #196 |
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.
No description provided.