3 unstable releases
0.2.1 | Jan 31, 2024 |
---|---|
0.2.0 | Jan 31, 2024 |
0.1.0 | Dec 8, 2023 |
#1642 in Command line utilities
22 downloads per month
9KB
120 lines
rsclip
CLI utility to copy the contents of a file to the clipboard written in Rust. Inspired in xclip. Supports X11.
Installation
Cargo
cargo install rclip
Usage
Copy from pipe
Copy the contents of a pipe to the clipboard.
$ echo "Hello world" | rsclip
$ rsclip
Hello world
Paste
Paste the contents of a file to the clipboard.
$ rclip
Clipboard content
$ rclip -p
Clipboard content
$ rclip --paste
Clipboard content
Copy
Copy the contents of a file to the clipboard.
$ rclip <file>
$ rclip -c <file>
$ rclip --copy <file>
todo
- Copy from pipe
- Config files to change default behavior
- Add clipboard history
- Add colorful output
- Add clear flag
- Test
- Sanitize clipboard contect
- Migrate to clap for argument management
Dependencies
~76–325KB