2020-12-18 02:29:55 +00:00
|
|
|
function meeting --description "Describe a meeting" -a "name"
|
|
|
|
note-dates
|
|
|
|
set today_date (date -j +"%Y-%m-%d")
|
|
|
|
set time (date +"%I:%M%p" | tr '[:upper:]' '[:lower:]')
|
|
|
|
set meeting_name (echo $name | tr ' ' '-' | tr '[:upper:]' '[:lower:]')
|
|
|
|
set meeting_note $today_date-$meeting_name
|
2021-04-26 16:55:33 +00:00
|
|
|
set meeting_file meetings/$meeting_note.md
|
|
|
|
printf "[$TODAY_NOTE](../journal/$TODAY_NOTE.md) | #meeting\n\n# $name\n\n---\n\n" > $NOTES_PATH/$meeting_file
|
|
|
|
printf "\n\n---\n\n$time - [$name](../$meeting_file)\n\n---\n\n" >> $TODAY_NOTE_FILE
|
|
|
|
vim $NOTES_PATH/$meeting_file
|
2020-12-18 02:29:55 +00:00
|
|
|
end
|