1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-11-30 09:16:47 +02:00
lazygit/vendor/github.com/atotto/clipboard
2020-08-26 07:53:43 +10:00
..
clipboard_darwin.go use clipboard package to handle clipboard stuff 2020-08-26 07:53:43 +10:00
clipboard_unix.go use clipboard package to handle clipboard stuff 2020-08-26 07:53:43 +10:00
clipboard_windows.go use clipboard package to handle clipboard stuff 2020-08-26 07:53:43 +10:00
clipboard.go use clipboard package to handle clipboard stuff 2020-08-26 07:53:43 +10:00
go.mod use clipboard package to handle clipboard stuff 2020-08-26 07:53:43 +10:00
LICENSE use clipboard package to handle clipboard stuff 2020-08-26 07:53:43 +10:00
README.md use clipboard package to handle clipboard stuff 2020-08-26 07:53:43 +10:00

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:

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