aboutsummaryrefslogtreecommitdiff
path: root/vendor/libghostty-vt/src/input/Binding.zig
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-05-07 18:29:21 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-05-07 18:29:21 +0300
commitdcfe11a7588fcd42471159453810abc9b7720a57 (patch)
treec32a77266028e73ca2382b96c96f8438a5fcd621 /vendor/libghostty-vt/src/input/Binding.zig
parent2dfed860103c4e4505ac7f25def9fe37da1e1e6a (diff)
build: update libghostty-vt vendor
vendor ghostty 063ac3e and remove the musl libc++ link workaround. expose the new selection formatter and hyperlink uri apis for follow-up rendering work. add manual artifact validation for static linux builds.
Diffstat (limited to 'vendor/libghostty-vt/src/input/Binding.zig')
-rw-r--r--vendor/libghostty-vt/src/input/Binding.zig47
1 files changed, 41 insertions, 6 deletions
diff --git a/vendor/libghostty-vt/src/input/Binding.zig b/vendor/libghostty-vt/src/input/Binding.zig
index 62a4e39a..d60f2933 100644
--- a/vendor/libghostty-vt/src/input/Binding.zig
+++ b/vendor/libghostty-vt/src/input/Binding.zig
@@ -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.
+ ///
+ /// 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`
///
- /// If the mode is not specified, defaults to closing the current tab.
+ /// 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.
@@ -2615,9 +2651,8 @@ pub const Set = struct {
/// Get an entry for the given key event. This will attempt to find
/// a binding using multiple parts of the event in the following order:
///
- /// 1. Translated key (event.key)
- /// 2. Physical key (event.physical_key)
- /// 3. Unshifted Unicode codepoint (event.unshifted_codepoint)
+ /// 1. Physical key (event.physical_key)
+ /// 2. Unshifted Unicode codepoint (event.unshifted_codepoint)
///
pub fn getEvent(self: *const Set, event: KeyEvent) ?Entry {
var trigger: Trigger = .{