lclip

cli interface for labeled clipboard.
$ echo -e "Hello\nworld" | lclip -s hello
$ lclip -g hello
Hello
world
Usage
$ lclip <operation> [...]
operations:
lclip {-h --help} # show this help message
lclip {-v --version} # print the version
lclip {-l --labels} # list labels
lclip {-g --get} <label> # paste text from label
lclip {-s --set} <label> [file(s)] # copy text to label
lclip {-d --delete} <label(s)> # delete label(s)
Installation
compiled binary
See releases
go get
go get github.com/kusabashira/lclip
Operations
-h, --help
Display a help message.
-v, --version
Display the version of lclip.
-l, --labels
List sorted labels.
-g, --get label
Paste text from label.
If not exists label, paste a newline.
-s, --set label file(s)
Copy text to label.
Read from file(s), or standard input, and nothing output.
-d, --delete label(s)
Delete label(s) from the storage.
Other Specification
- Storage path is
~/.lclip.json
- If not exist exists storage, storage will be created.
License
MIT License
Author
kusabashira kusabashira227@gmail.com