Introduce action for copying into clipboard

This commit is contained in:
Troels Thomsen
2025-06-29 09:15:40 +02:00
parent cc2c45ff4e
commit ef06e3d02c
4 changed files with 26 additions and 0 deletions

View File

@@ -204,6 +204,11 @@ fn actionCommands(action: Action.Key) []const Command {
}},
.write_screen_file => comptime &.{
.{
.action = .{ .write_screen_file = .copy },
.title = "Copy Screen to Temporary File and Copy Path",
.description = "Copy the screen contents to a temporary file and copy the path to the clipboard.",
},
.{
.action = .{ .write_screen_file = .paste },
.title = "Copy Screen to Temporary File and Paste Path",
@@ -217,6 +222,11 @@ fn actionCommands(action: Action.Key) []const Command {
},
.write_selection_file => comptime &.{
.{
.action = .{ .write_selection_file = .copy },
.title = "Copy Selection to Temporary File and Copy Path",
.description = "Copy the selection contents to a temporary file and copy the path to the clipboard.",
},
.{
.action = .{ .write_selection_file = .paste },
.title = "Copy Selection to Temporary File and Paste Path",