rsclip

Crates.iorsclip
lib.rsrsclip
version0.2.1
sourcesrc
created_at2023-12-08 17:05:36.185998
updated_at2024-01-31 11:25:48.026837
descriptionCLI utility to copy the contents of a file to the clipboard written in Rust
homepage
repositoryhttps://github.com/daniqss/rsclip
max_upload_size
id1062253
size25,440
(daniqss)

documentation

README

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
Commit count: 0

cargo fmt