Option to disable HTML copy #7025

Closed
opened 2026-01-31 00:53:14 +00:00 by claunia · 6 comments
Owner

Originally created by @msmigiel on GitHub (Mar 20, 2020).

Description of the new feature/enhancement

There was a feature request to add the ability to copy text as HTML. This is very handy but I don't see a way to disable this - meaning to only copy as text. Please consider adding a flag to disable copying text as full HTML.

Proposed technical implementation details (optional)

Maybe introduce a boolean like copyTextAsHtml in the global properties section.

Originally created by @msmigiel on GitHub (Mar 20, 2020). # Description of the new feature/enhancement There was a feature request to add the ability to copy text as HTML. This is very handy but I don't see a way to disable this - meaning to only copy as text. Please consider adding a flag to disable copying text as full HTML. # Proposed technical implementation details (optional) Maybe introduce a boolean like copyTextAsHtml in the global properties section.
claunia added the Issue-QuestionArea-SettingsResolution-DuplicateProduct-Terminal labels 2026-01-31 00:53:14 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Mar 20, 2020):

Out of curiosity, what application are you pasting into that's requesting the HTML content from the clipboard when you'd like the text content? The Terminal copies both text and HTML to the clipboard, it's usually the responsibility of the receiving application to take what content they're capable of using.

See also #2690

@zadjii-msft commented on GitHub (Mar 20, 2020): Out of curiosity, what application are you pasting into that's requesting the HTML content from the clipboard when you'd like the text content? The Terminal copies both text and HTML to the clipboard, it's usually the responsibility of the _receiving_ application to take what content they're capable of using. See also #2690
Author
Owner

@msmigiel commented on GitHub (Mar 20, 2020):

I'm pasting into Microsoft Word (Office 365) and the pasted text has full HTML markup. Most of the time when I am copying from a terminal I only want to plain text.

@msmigiel commented on GitHub (Mar 20, 2020): I'm pasting into Microsoft Word (Office 365) and the pasted text has full HTML markup. Most of the time when I am copying from a terminal I only want to plain text.
Author
Owner

@zadjii-msft commented on GitHub (Mar 20, 2020):

You can use this button right here:

image

To choose to paste only the text content

@zadjii-msft commented on GitHub (Mar 20, 2020): You can use this button right here: ![image](https://user-images.githubusercontent.com/18356694/77174165-a2f3ac00-6a8e-11ea-992b-364aeaeb06b6.png) To choose to paste only the text content
Author
Owner

@msmigiel commented on GitHub (Mar 20, 2020):

Thank you - that suggestion does work, however it is one extra step. In Word, when I press CTRL+V it defaults to HTML and then in the tooltip I can choose plain text. This is minor, but still an extra step.

I see this also has been brought up in 2690 as you mention and also 4191. Personally, when I work with the terminal, I want all of my copied text to be pure text only with no HTML markup.

@msmigiel commented on GitHub (Mar 20, 2020): Thank you - that suggestion does work, however it is one extra step. In Word, when I press CTRL+V it defaults to HTML and then in the tooltip I can choose plain text. This is minor, but still an extra step. I see this also has been brought up in 2690 as you mention and also 4191. Personally, when I work with the terminal, I want all of my copied text to be pure text only with no HTML markup.
Author
Owner

@DHowett-MSFT commented on GitHub (Mar 24, 2020):

Thanks for the use case 😄 this is a /dupe of #4191

@DHowett-MSFT commented on GitHub (Mar 24, 2020): Thanks for the use case :smile: this is a /dupe of #4191
Author
Owner

@ghost commented on GitHub (Mar 24, 2020):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Mar 24, 2020): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#7025