Conversation
rich_clipboard added CF_HTML, but RTF (the format rich editors accept for styled paste) and the Csv format Excel reads were still missing. Add both: build_rtf/rtf_to_text build and strip RTF control words and escapes in pure Python with a unit-testable round-trip, and rows_to_csv/ csv_to_rows wrap the stdlib csv module (delimiter-parametrised for TSV). The Win32 get/set share one generic byte-transfer helper; codecs are platform-independent and headless-tested.
…ch-formats-batch Add clipboard_rich_formats: RTF + CSV/TSV clipboard codecs
The clipboard holds the same content in several formats at once, and nothing reported which formats were present or detected when that set changed. Add classify_format/classify_formats (map standard CF_* ids + registered names to friendly categories), diff_formats (pure monitor primitive returning added/removed/changed), and a Win32 EnumClipboardFormats enumeration. Classifier and diff are pure and headless-tested; only the live enumeration is Win32.
…rmats-batch Add clipboard_formats: classify + diff the clipboard's available formats
clipboard_files stages a file list on the clipboard for Ctrl+V; this actively drops files onto a target window (the completion of a drag-and-drop) by posting WM_DROPFILES. Reuses clipboard_files. build_dropfiles to pack the DROPFILES blob (shared byte layout) and dispatches through an injectable driver seam, so build-and-dispatch is unit-testable with a fake driver; the real GlobalAlloc + PostMessage lives in the default Win32 driver. plan_file_drop is a pure dry-run.
Add file_drop: drop files onto a window via WM_DROPFILES
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 147 |
| Duplication | 4 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
|
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.



Release: cross-app clipboard lane (v185–v187)
Bundles the completed cross-app clipboard lane — three features extending clipboard / drag-drop interop, each merged to
devCI-green (Codacy 0 / SonarCloud OK / all matrices + Docker).clipboard_rich_formats(v185, Add clipboard_rich_formats: RTF + CSV/TSV clipboard codecs #402) — RTF + CSV/TSV codecs (build_rtf/rtf_to_text/rows_to_csv/csv_to_rows) and Windowsget/setfor theRich Text FormatandCsvclipboard formats.clipboard_formats(v186, Add clipboard_formats: classify + diff the clipboard's available formats #403) — classify and diff the clipboard's available formats (EnumClipboardFormats); pure classify/diff seam.file_drop(v187, Add file_drop: drop files onto a window via WM_DROPFILES #404) — drop files onto a window viaWM_DROPFILES, reusingclipboard_files.build_dropfilesthrough an injectable driver seam.All three keep the pure codec / classify / pack-and-dispatch logic headless-testable; only the live Win32 clipboard / message I/O is platform-gated. EN/Zh docs (v185–v187) + WHATS_NEW entries included.