note: use asciidoc format
authorDan White <dan@whiteaudio.com>
Thu, 6 Mar 2025 16:57:34 +0000 (10:57 -0600)
committerDan White <dan@whiteaudio.com>
Thu, 6 Mar 2025 16:57:34 +0000 (10:57 -0600)
note

diff --git a/note b/note
index fd81e9ae29787df39db828f5ec16f86559b3475a..fcbd8131df55e83ec96634d9d1f748b465bf718b 100755 (executable)
--- 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