update note functions with -template suffix

This commit is contained in:
2026-05-09 12:34:48 +02:00
parent f92b2718a3
commit 49e5b10e06

View File

@@ -92,7 +92,7 @@ today() {
mkdir -p ~/notes/daily
if [ ! -f "$file" ]; then
sed "s/YYYY-MM-DD/$(date +%Y-%m-%d)/g" \
~/notes/templates/daily.md > "$file"
~/notes/templates/daily-template.md > "$file"
fi
${EDITOR} "$file"
}
@@ -103,7 +103,7 @@ thisweek() {
mkdir -p ~/notes/weekly
if [ ! -f "$week" ]; then
sed "s/YYYY-WNN/$(date +%Y-W%V)/g" \
~/notes/templates/weekly.md > "$week"
~/notes/templates/weekly-template.md > "$week"
fi
${EDITOR} "$week"
}