summaryrefslogtreecommitdiff
path: root/client/command.go
diff options
context:
space:
mode:
Diffstat (limited to 'client/command.go')
-rw-r--r--client/command.go9
1 files changed, 9 insertions, 0 deletions
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 {