mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
keybind: rename copy_title to copy_title_to_clipboard
Co-authored-by: Jon Parise <jon@indelible.org>
This commit is contained in:
@ -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| {
|
||||
|
@ -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,
|
||||
|
@ -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.",
|
||||
}},
|
||||
|
Reference in New Issue
Block a user