FR: Customizable HTML/formated copy #2970

Open
opened 2026-01-30 23:10:01 +00:00 by claunia · 1 comment
Owner

Originally created by @mcpiroman on GitHub (Jul 27, 2019).

Description of the new feature/enhancement

Text copied in formated form, like HTML, should be customizable by settings, so in case you do a lot of copy-paste you don't have to re-format each piece to match your preferences.
All of them should be optional, with some default values. Once settings are categorized, they should go into single category.

Proposed technical implementation details (optional)

My propositions:

Property Type Default Description
htmlWidth String "terminal" - terminal - the width of the actual terminal.
- text - up to the last printable character. Like terminal, but with stripped blank space on the right.
- infinite - Scratches to available space (current behaviour).
- Valid css value e.g. 500px
htmlBackground String background's value Could anything that background can be or any valid css value that would be passed to background css property, like url. Theoretically we could support stripping the actual background (like image) and embed it as base64. I'd like that feature, but I'm afraid it's too heavy for a while.
htmlOffsetFirstCharracter Boolean true In situation like this:
   0123456789
   ABCDEFGHIJ
   KLMNOPQRST
where this means selected, true makes the paste as:
         3456789
   ABCDEFGHIJ
   KLMNOPQ
and false as:
   3456789
   ABCDEFGHIJ
   KLMNOPQ

Other than these above, properties padding, fontFace, fontSize and colorTable should be duplicated for the html/formated text so they can be set separately. If not set, they would match the terminal's ones.

Originally created by @mcpiroman on GitHub (Jul 27, 2019). # Description of the new feature/enhancement Text copied in formated form, like HTML, should be customizable by settings, so in case you do a lot of copy-paste you don't have to re-format each piece to match your preferences. All of them should be optional, with some default values. Once settings are categorized, they should go into single category. # Proposed technical implementation details (optional) My propositions: | Property | Type | Default | Description | | --- | -- | ---- | -------- | | `htmlWidth`| String | `"terminal"` | - `terminal` - the width of the actual terminal. <br/> - `text` - up to the last printable character. Like terminal, but with stripped blank space on the right. <br/> - `infinite` - Scratches to available space (current behaviour). <br/> - `Valid css value` e.g. `500px` | | `htmlBackground` | String | `background`'s value | Could anything that `background` can be or any valid css value that would be passed to `background` css property, like url. Theoretically we could support stripping the actual background (like image) and embed it as base64. I'd like that feature, but I'm afraid it's too heavy for a while. | | `htmlOffsetFirstCharracter` | Boolean | `true` | In situation like this: <br/>&nbsp; &nbsp;_012`3456789`_<br/>&nbsp; &nbsp;_`ABCDEFGHIJ`_<br/>&nbsp; &nbsp;_`KLMNOPQ`RST_ <br/> where `this means selected`, true makes the paste as:<br/>&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_3456789_<br/>&nbsp; &nbsp;_ABCDEFGHIJ_<br/>&nbsp; &nbsp;_KLMNOPQ_ </br>and false as:<br/>&nbsp; &nbsp;_3456789_<br/>&nbsp; &nbsp;_ABCDEFGHIJ_<br/>&nbsp; &nbsp;_KLMNOPQ_ Other than these above, properties `padding`, `fontFace`, `fontSize` and `colorTable` should be duplicated for the html/formated text so they can be set separately. If not set, they would match the terminal's ones.
claunia added the Issue-FeatureHelp WantedArea-SettingsProduct-Terminal labels 2026-01-30 23:10:01 +00:00
Author
Owner

@miniksa commented on GitHub (Aug 1, 2019):

This sounds alright at first glance during our triage. Do you want to write an actual spec doc or go from here or what?

@miniksa commented on GitHub (Aug 1, 2019): This sounds alright at first glance during our triage. Do you want to write an actual spec doc or go from here or what?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#2970