docs(input): add documentation for missing action parameters (#12579)

### AI Disclosure

Claude generated all the commits, I reviewed it and created this PR
This commit is contained in:
kat
2026-05-05 08:59:39 +00:00
committed by GitHub

View File

@@ -347,6 +347,29 @@ pub const Action = union(enum) {
reset,
/// Copy the selected text to the clipboard.
///
/// Valid values:
///
/// - `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.
copy_to_clipboard: CopyToClipboard,
/// Paste the contents of the default clipboard.
@@ -398,6 +421,8 @@ pub const Action = union(enum) {
/// Navigate the search results. If there is no active search, this
/// is not performed.
///
/// Valid values: `previous`, `next`.
navigate_search: NavigateSearch,
/// Start a search if it isn't started already. This doesn't set any
@@ -681,10 +706,21 @@ pub const Action = union(enum) {
/// of the `confirm-close-surface` configuration setting.
close_surface,
/// Close the current tab and all splits therein, close all other tabs, or
/// close every tab to the right of the current one depending on the mode.
/// Close the specified tabs and all splits therein.
///
/// If the mode is not specified, defaults to closing the current tab.
/// Valid values:
///
/// - `this` (default)
///
/// Close the current tab and all splits within it.
///
/// - `other`
///
/// Close every tab in the current window except the current tab.
///
/// - `right`
///
/// Close every tab to the right of the current tab.
///
/// This might trigger a close confirmation popup, depending on the value
/// of the `confirm-close-surface` configuration setting.