From 77e736f133ea9ba86e317c88ee4a987543e56336 Mon Sep 17 00:00:00 2001 From: Dan White Date: Thu, 6 Mar 2025 10:57:34 -0600 Subject: [PATCH] note: use asciidoc format --- note | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.25.1