keybind: rename copy_title to copy_title_to_clipboard

Co-authored-by: Jon Parise <jon@indelible.org>
This commit is contained in:
Jeffrey C. Ollie
2025-07-06 13:12:00 -05:00
parent 3cf56b8af3
commit a23b5328a5
3 changed files with 5 additions and 5 deletions

View File

@ -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| {

View File

@ -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,

View File

@ -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.",
}},