[PR #5299] [MERGED] Add 'copyFormatting' global setting #26235

Open
opened 2026-01-31 09:14:50 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/5299
Author: @carlos-zamora
Created: 4/9/2020
Status: Merged
Merged: 4/10/2020
Merged by: @undefined

Base: masterHead: dev/cazamor/html-global


📝 Commits (2)

  • 9dd06ea Add 'copyFormatting' global setting
  • 147c8df move copyFormatting check to TermApp

📊 Changes

5 files changed (+32 additions, -10 deletions)

View changed files

📝 doc/cascadia/SettingsSchema.md (+1 -0)
📝 doc/cascadia/profiles.schema.json (+5 -0)
📝 src/cascadia/TerminalApp/GlobalAppSettings.cpp (+10 -0)
📝 src/cascadia/TerminalApp/GlobalAppSettings.h (+3 -0)
📝 src/cascadia/TerminalApp/TerminalPage.cpp (+13 -10)

📄 Description

Summary of the Pull Request

Implements copyFormatting as a global setting. When enabled, formatting such as font and foreground/background colors are copied to the clipboard on all copy operations.

Also updates the schema and docs.

References

#5212 - Spec for Formatted Copying
#4191 - Setting to enable/disable formatted copy

#5263 - PR prematurely merged without approval of #5212

This feature will also have an impact on these yet-to-be-implemented features:

  • #5262 - copyFormatting Keybinding Arg for Copy
  • #1553 - Pointer Bindings
  • #4191 - add array support for copyFormatting

Detailed Description of the Pull Request

We already check if the hstring passed into the clipboard is empty before setting it. So the majority of the changes are actually just adding the global setting in.

Validation Steps Performed

copyFormatting Mouse Copy Keyboard Copy
not set (false)
true
false

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/5299 **Author:** [@carlos-zamora](https://github.com/carlos-zamora) **Created:** 4/9/2020 **Status:** ✅ Merged **Merged:** 4/10/2020 **Merged by:** [@undefined](undefined) **Base:** `master` ← **Head:** `dev/cazamor/html-global` --- ### 📝 Commits (2) - [`9dd06ea`](https://github.com/microsoft/terminal/commit/9dd06ea8ed663e25fa91a267bbd76a812d860fe5) Add 'copyFormatting' global setting - [`147c8df`](https://github.com/microsoft/terminal/commit/147c8df8ae30bcd6f0e1c4b5035884dc42104754) move copyFormatting check to TermApp ### 📊 Changes **5 files changed** (+32 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `doc/cascadia/SettingsSchema.md` (+1 -0) 📝 `doc/cascadia/profiles.schema.json` (+5 -0) 📝 `src/cascadia/TerminalApp/GlobalAppSettings.cpp` (+10 -0) 📝 `src/cascadia/TerminalApp/GlobalAppSettings.h` (+3 -0) 📝 `src/cascadia/TerminalApp/TerminalPage.cpp` (+13 -10) </details> ### 📄 Description ## Summary of the Pull Request Implements `copyFormatting` as a global setting. When enabled, formatting such as font and foreground/background colors are copied to the clipboard on _all_ copy operations. Also updates the schema and docs. ## References #5212 - Spec for Formatted Copying #4191 - Setting to enable/disable formatted copy #5263 - PR prematurely merged without approval of #5212 This feature will also have an impact on these yet-to-be-implemented features: - #5262 - copyFormatting Keybinding Arg for Copy - #1553 - Pointer Bindings - #4191 - add array support for `copyFormatting` ## Detailed Description of the Pull Request We already check if the hstring passed into the clipboard is empty before setting it. So the majority of the changes are actually just adding the global setting in. ## Validation Steps Performed | `copyFormatting` | Mouse Copy | Keyboard Copy | |--|--|--| | not set (`false`) | ✔ | ✔ | | `true` | ✔ | ✔ | | `false` | ✔ | ✔ | --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:14:51 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#26235