feat(journal): appened thought is in a quote block

This commit is contained in:
Ayo Ayco 2025-06-23 13:49:45 +02:00
parent 2a5c07577c
commit 59f1b57091
3 changed files with 4 additions and 3 deletions

View file

@ -1 +1,2 @@
notes_dir="${HOME}/notes/Journal" notes_dir="${HOME}/notes/Journal"
scripts_dir="${HOME}/Projects/scripts"

View file

@ -2,7 +2,7 @@
# Load config & functions # Load config & functions
. ${HOME}/ayo.conf . ${HOME}/ayo.conf
. functions.sh . ${scripts_dir}/functions.sh
command=$1 command=$1
journal_dir="${notes_dir}/Journal" journal_dir="${notes_dir}/Journal"
@ -19,7 +19,7 @@ elif [ "$1" = "append" ]; then
{ {
read -p "Add thought: " thought read -p "Add thought: " thought
time=$(date +'%r') time=$(date +'%r')
echo $'\n'\[$time\] $thought$'\n' >> "$full_path" echo $'\n'\> \[$time\]$'\n'\> $thought$'\n' >> "$full_path"
notesSync notesSync
} || { } || {
echo ">>> Append failed" echo ">>> Append failed"

View file

@ -4,7 +4,7 @@
# Load config # Load config
. ${HOME}/ayo.conf . ${HOME}/ayo.conf
. functions.sh . ${scripts_dir}/functions.sh
# TODO: write log for echoes with >>> # TODO: write log for echoes with >>>