From: Dan White Date: Thu, 6 Mar 2025 16:57:34 +0000 (-0600) Subject: note: use asciidoc format X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=77e736f133ea9ba86e317c88ee4a987543e56336;p=pubbin.git note: use asciidoc format --- diff --git a/note b/note index fd81e9a..fcbd813 100755 --- a/note +++ b/note @@ -10,7 +10,7 @@ if [ "$1" == "-h" ]; then fi #TIMESTAMP=`date` -TIMESTAMP=`date +"%F %k:%M:%S"` +TIMESTAMP=`date +"%F %H:%M %Z"` # export to a different note file if [ "$1" == "-f" ]; then @@ -22,8 +22,8 @@ fi # create the time-stamped note cat << END_NOTE_TEXT >> $NOTES_FILE -$TIMESTAMP ----------------------------------------- +== $TIMESTAMP + END_NOTE_TEXT #text is from stdin @@ -35,6 +35,6 @@ fi # edit the note if no (remaining) arguments if [ $# -eq 0 ]; then - $EDITOR + $NOTES_FILE + $EDITOR +"$" "$NOTES_FILE" fi