Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add setTabColor, openTabColorPicker to docs #69

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions TerminalDocs/customize-settings/key-bindings.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,46 @@ This opens a specific tab depending on the index.
| ---- | --------- | ------- | ----------- |
| `index` | Required | Integer | Tab that will open based on its position in the tab bar (starting at 0). |


### Set the tab color

This changes the color of the current tab to the provided color, or can be used to clear the color.

**Command name:** `setTabColor`

**Example bindings:**

```json
{ "command": { "action": "setTabColor", "color": "#123456" }, "keys": "alt+c" },
{ "command": { "action": "setTabColor" }, "keys": "ctrl+alt+c" },
{ "command": "setTabColor", "keys": "alt+shift+c" }
```

#### Actions

| Name | Necessity | Accepts | Description |
| ---- | --------- | ------- | ----------- |
| `color` | Optional | Color | If provided, will set the tab's color to the given value. If omitted, it will clear the tab's color |

> [!IMPORTANT]
> This action is only available in [Windows Terminal Preview](https://aka.ms/terminal-preview/), version 1.2

### Open the tab color picker

This keybinding immediately activates the tab color picker for the currently focused tab.

**Command name:** `openTabColorPicker`

**Example bindings:**

```json
{ "command": "openTabColorPicker", "keys": "alt+shift+c" }
```

> [!IMPORTANT]
> This action is only available in [Windows Terminal Preview](https://aka.ms/terminal-preview/), version 1.2


<br />

___
Expand Down