summaryrefslogtreecommitdiff
path: root/client/clipboard/shell_clipboard.go
diff options
context:
space:
mode:
authorraven <citrons@mondecitronne.com>2026-02-11 12:08:16 -0600
committerraven <citrons@mondecitronne.com>2026-02-11 12:14:23 -0600
commit90d45bf01c945675558e8b9645b83a3cdd2346b8 (patch)
tree22343cc660d3b38ef3ad3ea61b164883e83178db /client/clipboard/shell_clipboard.go
parent71ac612891076ecf270e78116f2e13c3a6a40068 (diff)
make clipboard command configurable
Diffstat (limited to 'client/clipboard/shell_clipboard.go')
-rw-r--r--client/clipboard/shell_clipboard.go8
1 files changed, 4 insertions, 4 deletions
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)