Add setting to select which formats of copy to perform (text, rtf or html) #5872

Closed
opened 2026-01-31 00:23:57 +00:00 by claunia · 3 comments
Owner

Originally created by @mcpiroman on GitHub (Jan 12, 2020).

Originally assigned to: @carlos-zamora on GitHub.

Description of the new feature/enhancement

This is extension of #2690, which would allow to separately enable/disable all formats of copy, which there are currently 3, but might be more in the future.

Why disable? Ideally, all editors should well handle these formats, allow selection etc. However, in addition to what #2690 stated,, certain editors might for example better support RTF that HTML or whatever format there might be (I still think about #1084).

Proposed technical implementation details (optional)

This might either be a profile setting in form of:

"copyFormats": "text,html,rtf"

or an argument on copy action, when that is the thing. You could the just remove one or more of these formats, e.g. keep only plain text.

Originally created by @mcpiroman on GitHub (Jan 12, 2020). Originally assigned to: @carlos-zamora on GitHub. <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> # Description of the new feature/enhancement This is extension of #2690, which would allow to separately enable/disable all formats of copy, which there are currently 3, but might be more in the future. Why disable? Ideally, all editors should well handle these formats, allow selection etc. However, in addition to what #2690 stated,, certain editors might for example better support RTF that HTML or whatever format there might be (I still think about #1084). # Proposed technical implementation details (optional) This might either be a profile setting in form of: `"copyFormats": "text,html,rtf"` or an argument on copy action, when that is the thing. You could the just remove one or more of these formats, e.g. keep only plain text.
Author
Owner

@DHowett-MSFT commented on GitHub (Jan 13, 2020):

This could do with a mini spec (perhaps in the discussion here?) before we go ahead on implementation.

@DHowett-MSFT commented on GitHub (Jan 13, 2020): This could do with a mini spec (perhaps in the discussion here?) before we go ahead on implementation.
Author
Owner

@shanselman commented on GitHub (Mar 30, 2020):

How about just two commands? copy and copyPlain? Would be far simpler.

@shanselman commented on GitHub (Mar 30, 2020): How about just two commands? copy and copyPlain? Would be far simpler.
Author
Owner

@ghost commented on GitHub (Aug 26, 2020):

:tada:This issue was addressed in #6004, which has now been successfully released as Windows Terminal Preview v1.3.2382.0.🎉

Handy links:

@ghost commented on GitHub (Aug 26, 2020): :tada:This issue was addressed in #6004, which has now been successfully released as `Windows Terminal Preview v1.3.2382.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.3.2382.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#5872