[Remind-Fans] Fun remind(1) trick for vacation itineraries
Tim Chase
remind at tim.thechases.com
Wed Aug 21 21:39:02 EDT 2024
I recently had some vacation plans to put on my calendar, but had
an issue where I wanted different info depending on whether it was
the calendar view (`-c`) or the agenda view.
Of course, remind to the rescue:
IF $CalMode
REM AUG 8 2024 THROUGH Aug 31 2024 MSG Vacation
ELSE
REM Aug 24 2024 AT 6:00am DURATION 5:00 \
MSG Flight 3141 to HI %b (itinerary C0FF33)
REM Aug 25 2024 AT 10:00am MSG See volcano %b
REM Aug 25 2024 AT 1:00pm MSG Hang-gliding %b
REM Aug 26 2024 AT 6:00pm MSG Luau %b
REM Aug 27 2024 AT 9:30am MSG Diving %b
REM Aug 28 2024 3:00pm MSG Pearl Harbor %b
REM Aug 29 2024 AT 10:00am MSG Surf lessons %b
REM Aug 30 2024 MSG Rest & relax
REM Aug 31 2024 AT 5:00am DURATION 5:00 \
MSG Flight 1415 home %b
ENDIF
That way, the calendar-view had simple entries each day, while the
agenda view had all the details of each day (much longer reminders
with times on events, multiple events per day, hotel/car reservation
numbers, flight numbers, etc). So it wasn't as simple as using the
REM ... MSG %"Cal text%" with details
syntax.
I can't even imagine how I'd go about doing something like this in
other calendar programs.
Sharing in case it's useful for someone else.
-tim
PS: fake vacation events here, not our actual vacation :-)
More information about the Remind-fans
mailing list