diff --git a/TerminalDocs/customize-settings/actions.md b/TerminalDocs/customize-settings/actions.md index 2501669d..fe47eb40 100644 --- a/TerminalDocs/customize-settings/actions.md +++ b/TerminalDocs/customize-settings/actions.md @@ -985,6 +985,7 @@ This copies the selected terminal content to your clipboard. If no selection exi | Name | Necessity | Accepts | Description | | ---- | --------- | ------- | ----------- | | `singleLine` | Optional | `true`, `false` | When `true`, the copied content will be copied as a single line. When `false`, newlines persist from the selected text. | + | `withControlSequences` | Optional | `true`, `false` | When `true`, copied content will contain ANSI escape code control sequences representing the styling of the content. When `false`, only the plain text will be copied. | | `copyFormatting` | Optional | `true`, `false`, `"all"`, `"none"`, `"html"`, `"rtf"` | When `true`, the color and font formatting of the selected text is also copied to your clipboard. When `false`, only plain text is copied to your clipboard. You can also specify which formats you would like to copy. When `null`, the global `"copyFormatting"` behavior is inherited. | ### Paste diff --git a/TerminalDocs/selection.md b/TerminalDocs/selection.md index 148742ef..7a493e73 100644 --- a/TerminalDocs/selection.md +++ b/TerminalDocs/selection.md @@ -73,6 +73,8 @@ As mentioned above, selected text can be copied with a right-click or the `copy` - You can copy text without dismissing the text selection by setting the `dismissSelection` parameter in the `copy` action to `false`. - Copying as a single line - You can copy text as a single line using the `singleLine` parameter in the `copy` action. +- Copying with control sequences + - You can include [ANSI escape code](https://en.wikipedia.org/wiki/ANSI_escape_code) control sequences in the copied text using the `withControlSequences` parameter in the `copy` action. - Removing trailing whitespace from block selections - You can remove the trailing whitespace from a block selection using the `trimBlockSelection` global setting.