From 90d45bf01c945675558e8b9645b83a3cdd2346b8 Mon Sep 17 00:00:00 2001 From: raven Date: Wed, 11 Feb 2026 12:08:16 -0600 Subject: make clipboard command configurable --- client/command.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'client/command.go') diff --git a/client/command.go b/client/command.go index a96839c..108452c 100644 --- a/client/command.go +++ b/client/command.go @@ -3,6 +3,7 @@ package main import ( "citrons.xyz/talk/proto" "citrons.xyz/talk/client/window" + "citrons.xyz/talk/client/clipboard" ) func isCommand(text string) (bool, string) { @@ -106,6 +107,14 @@ func (a *application) doCommand(command string, args []string, text string) { a.cmdWindow.err(err.Error()) } return + case "clipboard-command": + if !argN(2) { + return + } + clipboard.Set(clipboard.ShellClipboard { + CopyCommand: args[0], PasteCommand: args[1], + }) + return } if !a.connected { -- cgit v1.2.3