# dacopy

A cross-platform tool for copying text into the clipboard in a shell

## Example Usage

```bash
# Pipe input into it to copy to clipboard.
html2text some_file.html | dacopy

# Use the --tee (-t) flag to also print it to stdout.
html2text some_file.html | dacopy --tee

# Pass one or more filenames to copy the contents directly.
dacopy filename.txt
dacopy filename.txt other_file.txt

# By default, dacopy trims the input (removes leading/trailing whitespaces).
# Pass --notrim/--no-trim to keep whitespaces.
echo $HOME | dacopy --no-trim
```

## Installation

```bash
cargo install dacopy
```

## About

After switching between `wl-copy` and `pbcopy` between systems, I set out to make a better version that works the same across systems.

`dacopy` is the DeflateAwning username abbreviated, plus the word "copy".

## Similar Tools

* `wl-copy` from wl-clipboard
* `pbcopy` on Mac
* `xsel --clipboard --input`
* `xclip -i -sel c -f | xclip -i -sel p`
* `clip.exe`
* `clipcopy`

The intention is that this tool works globally on all systems, replacing the mental load required to flip between each of those tools.
