added output to clipboard

This commit is contained in:
Paul Wilde 2023-11-23 11:14:44 +00:00
parent 669707f14a
commit 6f5f255b66

View file

@ -22,7 +22,8 @@ proc markup(str: string): string =
return text
proc copyToClipboard*(str: string): bool {.discardable.} =
return false
let ok = execCmd("echo -n " & quote(str) & " | xclip -selection clipboard")
return ok == 0
proc genMenuCmd(data: Info, opts: varargs[string]): string =
var cmd = ""