[Remind-Fans] same formatting for numerous entries

hymie at lactose.homelinux.net hymie at lactose.homelinux.net
Thu Oct 16 08:32:17 EDT 2014


Greetings.

I've started separting my .remind file into multiple files --
work holidays, birthdays, work events, personal events -- that I can
mix-n-match to create different calendars for different purposes.

My "work holidays" file is filled with 4-line sets that look like this:

rem mon 15 jan scanfrom [trigger(today()-7)] satisfy 1
rem [trigger(trigdate())] msg martin luther king b'day
rem [trigger(trigdate())] SPECIAL SHADE 150
omit [trigger(trigdate())]

rem mon 1 sep scanfrom [trigger(today()-7)] satisfy 1
rem [trigger(trigdate())] msg labor day
rem [trigger(trigdate())] SPECIAL SHADE 150
omit [trigger(trigdate())]

What I'm wondering is, is there a way that I can set up a file or a block
in which every event is assumed to have SPECIAL SHADE 150 and/or omit?

It may not work the way I want it to, because I have to get creative
with certain holidays like

rem 1 jan scanfrom [trigger(today()-7)] satisfy 1
# saturday
if (wkdaynum(trigdate()) == 6)
  omit 31 dec msg new year's
  rem 31 dec SPECIAL SHADE 150
else
# sunday
  if (wkdaynum(trigdate()) == 0)
    omit 2 jan msg new year's
    rem 2 jan SPECIAL SHADE 150
  else
    omit 1 jan msg new year's day
    rem 1 jan SPECIAL SHADE 150
  endif
endif

but it would be nice.

Side question --

rem [trigger(trigdate())] msg labor day
omit [trigger(trigdate())]

is the same as

omit [trigger(trigdate())] msg labor day

isn't it?

--hymie!    http://lactose.homelinux.net/~hymie    hymie at lactose.homelinux.net
-------------------------------------------------------------------------------


More information about the Remind-fans mailing list