support copying stuff to clipboard

This commit is contained in:
Jesse Duffield
2020-04-15 20:30:24 +10:00
committed by github-actions[bot]
parent fcdcd1c335
commit 2974a57943
10 changed files with 57 additions and 135 deletions

View File

@@ -5,5 +5,6 @@ func GetPlatformDefaultConfig() []byte {
return []byte(
`os:
openCommand: 'sh -c "xdg-open {{filename}} >/dev/null"'
openLinkCommand: 'sh -c "xdg-open {{link}} >/dev/null"'`)
openLinkCommand: 'sh -c "xdg-open {{link}} >/dev/null"'
copyToClipboardCommand: 'bash -c "echo -n {{str}} | xclip -selection clipboard"'`)
}