This fork is used for zyedidia/micro
and has some modifications, namely: support for the primary clipboard on linux and support for an internal clipboard if the system clipboard is not available.
Provide copying and pasting to the Clipboard for Go.
Build:
$ go get github.com/atotto/clipboard
Platforms:
- OSX
- Windows 7 (probably work on other Windows)
- Linux, Unix (requires 'xclip' or 'xsel' command to be installed)
Document:
Notes:
- Text string only
- UTF-8 text encoding only (no conversion)
TODO:
- Clipboard watcher(?)
paste shell command:
$ go get github.com/atotto/clipboard/cmd/gopaste
$ # example:
$ gopaste > document.txt
copy shell command:
$ go get github.com/atotto/clipboard/cmd/gocopy
$ # example:
$ cat document.txt | gocopy