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/clipboard/shell_clipboard.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'client/clipboard/shell_clipboard.go') diff --git a/client/clipboard/shell_clipboard.go b/client/clipboard/shell_clipboard.go index 9d8ecc8..af0130d 100644 --- a/client/clipboard/shell_clipboard.go +++ b/client/clipboard/shell_clipboard.go @@ -7,8 +7,8 @@ import ( ) type ShellClipboard struct { - copyCommand string - pasteCommand string + CopyCommand string + PasteCommand string testCommand string } @@ -32,7 +32,7 @@ func (c ShellClipboard) Test() bool { } func (c ShellClipboard) Copy(text string) { - cmd := command(c.copyCommand) + cmd := command(c.CopyCommand) pipe, err := cmd.StdinPipe() cmd.Start() go func() { @@ -47,7 +47,7 @@ func (c ShellClipboard) Copy(text string) { } func (c ShellClipboard) Paste() <-chan string { - cmd := command(c.pasteCommand) + cmd := command(c.PasteCommand) pipe, err := cmd.StdoutPipe() cmd.Start() ch := make(chan string, 1) -- cgit v1.2.3