5 releases

0.1.4 Apr 20, 2024
0.1.3 Apr 20, 2024
0.1.2 Apr 18, 2024
0.1.1 Feb 2, 2024
0.1.0 Feb 1, 2024

#326 in Filesystem

MIT license

12KB
241 lines

Copy To Clipboard

cptc is a small helper CLI tool for quickly copying the contents of file/s to your systems clipboard.

Installation

You can install cptc from cargo

$ cargo install cptc

Usage

usage: cptc [OPTIONS] [FILE]...

A cli tool for copying file/s contents to your clipboard

Options:
  --help       -h      Print this menu and exit
  --version    -V      Print the version number and exit
  --verbouse   -v      Print what is copied
  --pause      -p      Pauses exiting of the program until ENTER is pressed

Wayland support

Currently on Wayland, the clipboard will be cleared when the program ends (A limitation of rust clipboard libraries). To overcome this use the --pause or -p flag to prevent the program closing before you've had a chance to paste the contents of the file!

The program should auto-pause when it detects Wayland, however if you can't seem to paste the content you've copied, this might be the issue

Dependencies

~0.1–11MB
~144K SLoC