danger-write 0.1.5

A writing app that erases everything you've written if you stop typing
# danger-write

A writing app that forces you to keep writing. If you stop typing for too long,
the words you've written fade out and are erased. Reach your goal (a time limit
or a word count) to survive and copy your text.

![demo](https://raw.githubusercontent.com/bobby-sills/danger-write/master/demo.gif)

## Install

```bash
cargo install danger-write
```

Or build from source:

```bash
git clone https://github.com/bobby-sills/danger-write
cd danger-write
cargo build --release   # binary at target/release/danger-write
```

## Usage

```bash
danger-write              # write for 5 minutes (default)
danger-write -w 250       # write until you reach 250 words
danger-write -i 5         # allow 5 seconds idle before erasure (default: 3)
```

### Options

| Flag | Description |
|------|-------------|
| `-t, --time <MINUTES>` | Survive by writing for this long (default: 5) |
| `-w, --words <N>` | Survive by reaching this many words |
| `-i, --idle <SECONDS>` | Idle time before your words are erased (default: 3) |
| `-h, --help` | Show help |

## Keys

- **While writing:** just type. `Ctrl+C` to quit.
- **After you win:** `c` to copy your text to the clipboard, `q` to quit.
- **After you fail:** `r` to restart, `q` to quit.

## Clipboard

Copying uses whatever clipboard tool is available: `wl-copy`, `xclip`, or
`xsel` on Linux, `pbcopy` on macOS, `clip` on Windows. On Linux you may need to
install one (e.g. `wl-clipboard`); macOS and Windows work out of the box.