Skip to content

fix: warn when pasting unregistered Mac-* clipboard format#217

Merged
fuzzzerd merged 2 commits into
masterfrom
fuzzz/paste-unknown-format-warning
May 20, 2026
Merged

fix: warn when pasting unregistered Mac-* clipboard format#217
fuzzzerd merged 2 commits into
masterfrom
fuzzz/paste-unknown-format-warning

Conversation

@fuzzzerd
Copy link
Copy Markdown
Owner

Summary

  • Filter pasted Mac-* formats through ClipTypeRegistry.IsRegistered before claiming structured handling.
  • When the clipboard only carries unrecognized Mac-* formats, paste the first one as opaque, log the format id, and show a status-bar message: "Pasted unknown format X; will round-trip as raw XML."
  • Mixed recognized + unrecognized payloads still behave as before: recognized formats paste normally, no spurious warning fires.

The paste handler now partitions Mac-* formats into recognized and
unrecognized via ClipTypeRegistry.IsRegistered. Recognized formats
paste as before. If none were recognized, the first unrecognized
Mac-* falls through as an opaque clip, the format id is logged, and
the status bar tells the user the clip will round-trip as raw XML.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 20, 2026

Test Results

✔️ Tests 1410 / 1410 - passed in 19.4s
✔️ Coverage 79.22% - passed with 70% threshold
📏 15176 / 17624 lines covered 🌿 5146 / 8030 branches covered
🔍 click here for more details

✏️ updated for commit 9c57f64

@fuzzzerd fuzzzerd merged commit f90944e into master May 20, 2026
6 checks passed
@fuzzzerd fuzzzerd deleted the fuzzz/paste-unknown-format-warning branch May 20, 2026 01:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant