From 248df8e7aadeca395007857dd7f82d4505ace6a6 Mon Sep 17 00:00:00 2001 From: "Claude Opus 4.7" Date: Mon, 4 May 2026 16:57:37 +0200 Subject: [PATCH] docs(input): document copy_to_clipboard arguments --- src/input/Binding.zig | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/input/Binding.zig b/src/input/Binding.zig index 52ab82e93..1cf925401 100644 --- a/src/input/Binding.zig +++ b/src/input/Binding.zig @@ -347,6 +347,31 @@ pub const Action = union(enum) { reset, /// Copy the selected text to the clipboard. + /// + /// Valid arguments: + /// + /// - `plain` + /// + /// Copy the selection as plain text only. + /// + /// - `vt` + /// + /// Copy the selection as plain text, preserving terminal escape + /// sequences (such as colors and styles). + /// + /// - `html` + /// + /// Copy the selection as HTML, preserving colors and styles as + /// HTML markup. + /// + /// - `mixed` (default) + /// + /// Place multiple representations on the clipboard at once + /// (e.g. plain text and HTML), each tagged with its content type + /// so the receiving OS or application can pick the most appropriate + /// representation when pasting. + /// + /// If no argument is given, defaults to `mixed`. copy_to_clipboard: CopyToClipboard, /// Paste the contents of the default clipboard.