From cf78bc0515fa38a6cc570afd7a7e0000bdcda09e Mon Sep 17 00:00:00 2001 From: citrons Date: Thu, 5 Jun 2025 14:56:22 -0500 Subject: clipboard support --- client/main.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'client/main.go') diff --git a/client/main.go b/client/main.go index 5b88117..c9da6c3 100644 --- a/client/main.go +++ b/client/main.go @@ -2,6 +2,7 @@ package main import ( "citrons.xyz/talk/tui" + "citrons.xyz/talk/client/clipboard" "time" "fmt" "os" @@ -10,6 +11,8 @@ import ( var globalApp *application func main() { + go clipboard.DiscoverCommand() + err := tui.Start() if err != nil { fmt.Fprintln(os.Stderr, "error initializing terminal: ", err) @@ -39,6 +42,10 @@ func main() { globalApp.show() redraw = false } + case text := <-globalApp.activePaste: + globalApp.onPaste(text) + globalApp.activePaste = nil + redraw = true } if globalApp.quit == true { return -- cgit v1.2.3