mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-23 01:05:38 +00:00
12 lines
590 B
Fish
12 lines
590 B
Fish
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
|
|
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
|
|
end
|