Skip to content

feat: distinguish rich text from plain text and hide no-op plain paste - #53

Merged
rgdevment merged 2 commits into
mainfrom
feat/issue-48
Aug 5, 2026
Merged

feat: distinguish rich text from plain text and hide no-op plain paste#53
rgdevment merged 2 commits into
mainfrom
feat/issue-48

Conversation

@rgdevment

@rgdevment rgdevment commented Aug 5, 2026

Copy link
Copy Markdown
Owner

Text copied with styles now shows its own glyph, keeping the type color untouched so plain text — the bulk of the history — looks unchanged. "Paste as plain text" is offered only when there is formatting to strip.

The two use different criteria on purpose: the glyph tracks rtf only, since browsers attach html to plain text as well, while the button also counts html because the writer restores it to the clipboard.

Also refreshes rtf/html metadata when an existing item is reactivated: re-copying the same text discarded the new format, leaving the item stuck with whatever the first copy carried.

close #48

Text copied with styles now shows its own glyph, keeping the type color
untouched so plain text — the bulk of the history — looks unchanged.
"Paste as plain text" is offered only when there is formatting to strip.

The two use different criteria on purpose: the glyph tracks rtf only,
since browsers attach html to plain text as well, while the button also
counts html because the writer restores it to the clipboard.

Also refreshes rtf/html metadata when an existing item is reactivated:
re-copying the same text discarded the new format, leaving the item
stuck with whatever the first copy carried.
@codecov

codecov Bot commented Aug 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@rgdevment
rgdevment merged commit 2fd6dee into main Aug 5, 2026
9 checks passed
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.

Add a distinction between stylized text and plain text

1 participant