[PR #6567] Add setTabColor and openTabColorPicker actions #26748

Closed
opened 2026-01-31 09:17:53 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/6567

State: closed
Merged: Yes


Summary of the Pull Request

Adds a pair of ShortcutActions for setting the tab color.

  • setTabColor: This changes the color of the current tab to the provided color, or can be used to clear the color.
  • openTabColorPicker: This keybinding immediately activates the tab color picker for the currently focused tab.

References

PR Checklist

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

  • hey look there are tests
  • Tested with the following:

        // { "command": "setTabColor", "keys": [ "alt+c" ] },
        { "keys": "ctrl+alt+c", "command": { "action": "setTabColor", "color": "#123456" } },
        { "keys": "alt+shift+c", "command": { "action": "setTabColor", "color": null} },
        { "keys": "alt+c", "command": "openTabColorPicker" },
**Original Pull Request:** https://github.com/microsoft/terminal/pull/6567 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request Adds a pair of `ShortcutAction`s for setting the tab color. * `setTabColor`: This changes the color of the current tab to the provided color, or can be used to clear the color. * `openTabColorPicker`: This keybinding immediately activates the tab color picker for the currently focused tab. ## References ## PR Checklist * [x] scratches my own itch * [x] I work here * [x] Tests added/passed * [x] https://github.com/MicrosoftDocs/terminal/pull/69 ## Detailed Description of the Pull Request / Additional comments ## Validation Steps Performed * hey look there are tests * Tested with the following: ```json // { "command": "setTabColor", "keys": [ "alt+c" ] }, { "keys": "ctrl+alt+c", "command": { "action": "setTabColor", "color": "#123456" } }, { "keys": "alt+shift+c", "command": { "action": "setTabColor", "color": null} }, { "keys": "alt+c", "command": "openTabColorPicker" }, ```
claunia added the pull-request label 2026-01-31 09:17:53 +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#26748