blob: c00bb9b10858acd6954ea8f03225c96234e03e06 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/sh
# acmetodo-all: Shows all items in the todo list.
PLAN9=${PLAN9:-"/usr/local/plan9"}
TODO_FILE="$PLAN9/lib/todo"
ACME_BIN="$PLAN9/bin/acme"
MAIN_TODO_WINID=$($ACME_BIN -w | grep "^$TODO_FILE" | cut -d' ' -f1 | head -n 1)
if [ -z "$MAIN_TODO_WINID" ]; then
echo "Error: Main acmetodo window not found." >/dev/stderr
exit 1
fi
# Simply get (reload) the content of the todo file
echo 'Get' | $ACME_BIN -a "$MAIN_TODO_WINID"
echo 'clean' | $ACME_BIN -a "$MAIN_TODO_WINID"
|