Operating System
What feature would you like to be added?
Parsing of the clipboard's HTML representation when pasting into a rich-text-editable text widget, so that styled text copied from other applications (browsers, word processors, or another guigui app) keeps its formatting.
Scope:
- A small whitelist of tags and inline style properties mapped onto the ranged style model:
b/strong (weight), i/em (italic), u (underline), s/del (strikethrough), span with color, background-color, and font-size (mapped to the scale multiplier), plus br and block boundaries as line breaks. Everything else is stripped to its text content.
- Paste preference stays: internal rich clipboard slot (full in-app fidelity) → HTML parse → plain text. Paste Without Styles (Shift+mod+V) continues to bypass all styling.
- The parser operates on
clipboard.Contents.HTML, so it is platform-independent; availability follows the platform clipboard support (checked above).
Why is this needed?
The HTML write side already exists: copying styled text puts a text/html representation on the system clipboard, so other applications receive guigui's formatting. The read direction is missing — pasting styled content from an external application currently flattens it to plain text. Parsing the HTML flavor completes the cross-application rich text round trip for the rich text editor (#131, example/richtexteditor).
Filed by Claude (Claude Code) on behalf of @hajimehoshi.
Operating System
What feature would you like to be added?
Parsing of the clipboard's HTML representation when pasting into a rich-text-editable text widget, so that styled text copied from other applications (browsers, word processors, or another guigui app) keeps its formatting.
Scope:
b/strong(weight),i/em(italic),u(underline),s/del(strikethrough),spanwithcolor,background-color, andfont-size(mapped to the scale multiplier), plusbrand block boundaries as line breaks. Everything else is stripped to its text content.clipboard.Contents.HTML, so it is platform-independent; availability follows the platform clipboard support (checked above).Why is this needed?
The HTML write side already exists: copying styled text puts a
text/htmlrepresentation on the system clipboard, so other applications receive guigui's formatting. The read direction is missing — pasting styled content from an external application currently flattens it to plain text. Parsing the HTML flavor completes the cross-application rich text round trip for the rich text editor (#131,example/richtexteditor).Filed by Claude (Claude Code) on behalf of @hajimehoshi.