mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-06-19 01:51:26 +00:00
rename copy_title action to copy_title_to_clipboard
This commit is contained in:
@@ -5400,7 +5400,7 @@ pub fn performBindingAction(self: *Surface, action: input.Binding.Action) !bool
|
||||
|
||||
.copy_title_to_clipboard => return try self.rt_app.performAction(
|
||||
.{ .surface = self },
|
||||
.copy_title,
|
||||
.copy_title_to_clipboard,
|
||||
{},
|
||||
),
|
||||
|
||||
|
||||
@@ -333,7 +333,7 @@ pub const Action = union(Key) {
|
||||
/// Copy the effective title of the surface to the clipboard.
|
||||
/// The effective title is the user-overridden title if set,
|
||||
/// otherwise the terminal-set title.
|
||||
copy_title,
|
||||
copy_title_to_clipboard,
|
||||
|
||||
/// Sync with: ghostty_action_tag_e
|
||||
pub const Key = enum(c_int) {
|
||||
@@ -400,7 +400,7 @@ pub const Action = union(Key) {
|
||||
search_total,
|
||||
search_selected,
|
||||
readonly,
|
||||
copy_title,
|
||||
copy_title_to_clipboard,
|
||||
};
|
||||
|
||||
/// Sync with: ghostty_action_u
|
||||
|
||||
@@ -649,7 +649,7 @@ pub const Application = extern struct {
|
||||
.close_tab => return Action.closeTab(target, value),
|
||||
.close_window => return Action.closeWindow(target),
|
||||
|
||||
.copy_title => return Action.copyTitle(target),
|
||||
.copy_title_to_clipboard => return Action.copyTitleToClipboard(target),
|
||||
|
||||
.config_change => try Action.configChange(
|
||||
self,
|
||||
@@ -1898,7 +1898,7 @@ const Action = struct {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn copyTitle(target: apprt.Target) bool {
|
||||
pub fn copyTitleToClipboard(target: apprt.Target) bool {
|
||||
return switch (target) {
|
||||
.app => false,
|
||||
.surface => |v| surface: {
|
||||
|
||||
Reference in New Issue
Block a user