# DiffDing
It's easy to get lost in what you're doing. Diff ding counts the changes in your repo and
reminds you to commit your changes once you exceed a certain number of inserts and deletes.
## Installation
`cargo install diffding`
## Usage
`diffding [interval] [threshold]`
* **interval**: the number of seconds between checks (defaults to 10)
* **threshold**: the number of inserts and deletes allowed before a reminder (defaults to 100)
## Configuration
You can configure diffding by creating a `~/.config/diffding/config.toml` file in your home directory.
Example:
```toml
sound = "14409__acclivity__chimebar-f.wav" # name of a sound file in `~/.config/diffding`
interval = 10 # seconds between checks
threshold = 100 # number of inserts and deletes allowed before a reminder
volume = 1.0 # volume of the sound
```
### Custom Sounds
You can use any sound you like in place of the default bell.
Place the file in `~/.config/diffding` and set the `sound` option in the config file to the name of the file (with no path*);
_* support for arbitrary paths coming soon_
## Coming soon
[ ] **Snooze** - press space to suppress the dings for a bit
[ ] **Git integration** - commit directly from diffding
[ ] **More bells and whistles** -- literally. different built-in sounds.
[ ] **Volume control** - because sometimes the ding is just too much
[x] **Config file(s)** - set preferences in `~/.config/diffding/settings.toml`