Debian Codegraph @

/

debian golang-github-zyedidia-clipboard 1.0.3-1debian golang-github-zyedidia-clipboard-dev gomod github.com/zyedidia/clipboard debiangogoinimakefilemarkdownshellyaml 19 files · 118 symbols
README (full)

This is a fork of atotto/clipboard

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.

Build Status

GoDoc

Clipboard for Go

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:

  • http://godoc.org/github.com/atotto/clipboard

Notes:

  • Text string only
  • UTF-8 text encoding only (no conversion)

TODO:

  • Clipboard watcher(?)

Commands:

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
dir debian/
file .travis.yml
file LICENSE
file README.md
file clipboard.go
file clipboard_darwin.go
file clipboard_test.go
file clipboard_unix.go
file clipboard_windows.go
file example_test.go
file go.mod