diff options
| author | raven <citrons@mondecitronne.com> | 2026-02-11 12:08:16 -0600 |
|---|---|---|
| committer | raven <citrons@mondecitronne.com> | 2026-02-11 12:14:23 -0600 |
| commit | 90d45bf01c945675558e8b9645b83a3cdd2346b8 (patch) | |
| tree | 22343cc660d3b38ef3ad3ea61b164883e83178db /client/command.go | |
| parent | 71ac612891076ecf270e78116f2e13c3a6a40068 (diff) | |
make clipboard command configurable
Diffstat (limited to 'client/command.go')
| -rw-r--r-- | client/command.go | 9 |
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 { |
