#!/bin/sh -e
# t -- simple notes manager
-# Copyright (C) 2013-2019 Sergey Matveev <stargrave@stargrave.org>
+# Copyright (C) 2013-2020 Sergey Matveev <stargrave@stargrave.org>
# Invoke the script without any arguments to briefly print all notes.
# Otherwise you can specify the following ones:
# a -- add new note (either starts an editor if not arguments are specified,
case "$1" in
a)
shift
- note=$NOTES_DIR/$(date '+%s')
+ note=$NOTES_DIR/$(date "+%Y%m%d-%H%M%S")
[ $# -gt 0 ] && echo "$@" > $note || $EDITOR $note
;;
d)