From a23b5328a5e230fd29cb53a0f468f7eca5149c3d Mon Sep 17 00:00:00 2001 From: "Jeffrey C. Ollie" Date: Sun, 6 Jul 2025 13:12:00 -0500 Subject: [PATCH] keybind: rename copy_title to copy_title_to_clipboard Co-authored-by: Jon Parise --- src/Surface.zig | 2 +- src/input/Binding.zig | 4 ++-- src/input/command.zig | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Surface.zig b/src/Surface.zig index faba60ced..30235f26f 100644 --- a/src/Surface.zig +++ b/src/Surface.zig @@ -4443,7 +4443,7 @@ pub fn performBindingAction(self: *Surface, action: input.Binding.Action) !bool return false; }, - .copy_title => { + .copy_title_to_clipboard => { const title = self.rt_surface.getTitle() orelse return false; self.rt_surface.setClipboardString(title, .standard, false) catch |err| { diff --git a/src/input/Binding.zig b/src/input/Binding.zig index 6339674f8..21edf2636 100644 --- a/src/input/Binding.zig +++ b/src/input/Binding.zig @@ -283,7 +283,7 @@ pub const Action = union(enum) { /// Copy the terminal title to the clipboard. If the terminal title is not /// set this has no effect. - copy_title, + copy_title_to_clipboard, /// Increase the font size by the specified amount in points (pt). /// @@ -1009,7 +1009,7 @@ pub const Action = union(enum) { .reset, .copy_to_clipboard, .copy_url_to_clipboard, - .copy_title, + .copy_title_to_clipboard, .paste_from_clipboard, .paste_from_selection, .increase_font_size, diff --git a/src/input/command.zig b/src/input/command.zig index 434a4edf3..84e9afc79 100644 --- a/src/input/command.zig +++ b/src/input/command.zig @@ -132,8 +132,8 @@ fn actionCommands(action: Action.Key) []const Command { .description = "Copy the URL under the cursor to the clipboard.", }}, - .copy_title => comptime &.{.{ - .action = .copy_title, + .copy_title_to_clipboard => comptime &.{.{ + .action = .copy_title_to_clipboard, .title = "Copy Terminal Title to Clipboard", .description = "Copy the terminal title to the clipboard. If the terminal title is not set this has no effect.", }},