shift
echo "* [ ] $*" >> "$COLLECTOR_FILE"
elif [ "$ACTION" == "list" ]; then
- grep -e "^\* \[ \]" "$COLLECTOR_FILE"
+ if grep -q -e "^\* \[ \]" "$COLLECTOR_FILE"; then
+ echo "Collected items at $COLLECTOR_FILE:"
+ echo ""
+ grep -e "^\* \[ \]" "$COLLECTOR_FILE"
+ fi
elif [ "$ACTION" == "edit" ]; then
if [ ! -z "$EDITOR" ]; then
$EDITOR "$COLLECTOR_FILE"
# Check your TODO lists, filtering only important tasks
todo list important
+ # Collected items that need to be moved somewhere else
+ collector list
+
# Check if you have mails to send
postponed