diff --git a/.gitignore b/.gitignore index ad93b85..3d82927 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ fzf-vjour +demo/ diff --git a/README.md b/README.md index ff19484..758bbc8 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,12 @@ These entries are stored as [iCalendar](https://datatracker.ietf.org/doc/html/rf For instance, you could use this application as a terminal-based counterpart of [jtx Board](https://jtx.techbee.at/) in a setup with a CalDav server, such as [Radicale](https://radicale.org/), and a synchronization tool like [vdirsyncer](http://vdirsyncer.pimutils.org/). +Demo +---- +Run the script `./scripts/generate_demo.sh` to generate a demo. + +![Demo screenshot](./demo/screenshot.png) + Installation ------------ diff --git a/demo/screenshot.png b/demo/screenshot.png new file mode 100644 index 0000000..1228bd8 Binary files /dev/null and b/demo/screenshot.png differ diff --git a/scripts/generate_demo.sh b/scripts/generate_demo.sh new file mode 100755 index 0000000..7cb3751 --- /dev/null +++ b/scripts/generate_demo.sh @@ -0,0 +1,56 @@ +#!/bin/sh + +set -eu + +BOLD="\033[1m" +GREEN="\033[0;32m" +OFF="\033[m" +DEMO="demo" +FVJ="./fzf-vjour" +ROOT="$DEMO/journal/" +COLLECTION_LABELS="745ae7a0-d723-4cd8-80c4-75f52f5b7d90=shared 👫🏼;12cacb18-d3e1-4ad4-a1d0-e5b209012e85=work 💼;" + +export CONFIGFILE="$DEMO/config" +rm -rf "$ROOT" +collection1="$(printf "%s" "$COLLECTION_LABELS" | cut -d ";" -f 1 | cut -d "=" -f 1)" +collection2="$(printf "%s" "$COLLECTION_LABELS" | cut -d ";" -f 2 | cut -d "=" -f 1)" +mkdir -p "$ROOT/$collection1" +mkdir -p "$ROOT/$collection2" +cat <"$CONFIGFILE" +ROOT="$ROOT" +COLLECTION_LABELS="$COLLECTION_LABELS" +EOF +echo "⚙️ ${BOLD}${GREEN}Building demo$OFF" +## Fill in data +cal 2028 | $FVJ --add-note "2028 will be a leap year" +$FVJ --add-task "Finish proof of admissibility theorem" "tomorrow" --collection 2 +cat <