copy_to_clipboard format types

This commit is contained in:
Mitchell Hashimoto
2025-10-30 13:30:37 -07:00
parent 77b038dcb6
commit df037d75a6
3 changed files with 47 additions and 8 deletions

View File

@@ -121,11 +121,15 @@ fn actionCommands(action: Action.Key) []const Command {
.description = "Reset the terminal to a clean state.",
}},
.copy_to_clipboard => comptime &.{.{
.action = .copy_to_clipboard,
.copy_to_clipboard => comptime &.{ .{
.action = .{ .copy_to_clipboard = .mixed },
.title = "Copy to Clipboard",
.description = "Copy the selected text to the clipboard.",
}},
}, .{
.action = .{ .copy_to_clipboard = .html },
.title = "Copy HTML to Clipboard",
.description = "Copy the selected text as HTML to the clipboard.",
} },
.copy_url_to_clipboard => comptime &.{.{
.action = .copy_url_to_clipboard,