Skip to content

Paste spreadsheets as text#2200

Merged
GCHQDeveloper581 merged 2 commits intogchq:masterfrom
C85297:paste-spreadsheet-as-text
Feb 20, 2026
Merged

Paste spreadsheets as text#2200
GCHQDeveloper581 merged 2 commits intogchq:masterfrom
C85297:paste-spreadsheet-as-text

Conversation

@C85297
Copy link
Copy Markdown
Member

@C85297 C85297 commented Feb 20, 2026

Closes #2196

Instead of preferring files in a paste event, and discarding text items, this switches to the opposite behaviour, preferring to take text over files.

This means that pasting a spreadsheet will use the text version of the spreadsheet, rather than the image version.

@C85297 C85297 self-assigned this Feb 20, 2026
Copy link
Copy Markdown
Contributor

@GCHQDeveloper581 GCHQDeveloper581 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

Tested with the use case from #2196, and also with the use case from #1852 from which the original "paste from clipboard" changes were inspired.

Thanks for your contribution.

@GCHQDeveloper581 GCHQDeveloper581 merged commit 98fb680 into gchq:master Feb 20, 2026
2 checks passed
mkilijanek pushed a commit to mkilijanek/CyberChef that referenced this pull request Feb 23, 2026
Incorporates 37 upstream commits from gchq/CyberChef master including:
- Fix: Move Magic checks from Escape to Unescape Unicode Characters (gchq#2195)
- Paste spreadsheets as text (gchq#2200)
- Fix Roboto Mono font (gchq#2199)
- Fix return of buffer for PNG QR image generation (gchq#2125)
- Update JIMP (gchq#2171)
- Bump v10.22.1 (gchq#2193)
- Bump v10.22.0 (gchq#2189)
- Fixed Percent delimiter for hex encoding (gchq#2137)
- Added ability to paste Images from Clipboard (gchq#1876)
- Quoted Printable improvements (gchq#2186)
- Fix freeze when output text decoding fails (gchq#1573)
- Fix import operations with special chars (gchq#1040)
- Add Bech32 encode/decode operations
- Various bug fixes and improvements

Conflict resolution:
- Workflow files: kept Node 24 + actions@v4 (local upgrade)
- package.json: kept jsonwebtoken 9.0.0, fixJimpModule postinstall, added upstream 'tag' script
- package-lock.json: kept local version (consistent with jimp 1.6.0 install)
- sitemap.mjs: kept modern 'with' import assertion syntax
- Code.mjs: kept escaped curly brace regex for Node 24 compatibility
- newMinorVersion.mjs: added upstream ignoredAuthors constant

https://claude.ai/code/session_011xozAMdxys1JF7nLRQsMtg
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.

Bug report: Copy-paste from spreadsheet inserts as PNG

2 participants