Playing around with some ideas from the book, I was curious if there was
a way to track the *total* number of events thus far. We have $NumTrig
to track how many were triggered, but not how many total. So with this
example (today being the 10th):
REM Feb 9 MSG Nine
REM Feb 10 MSG Ten
REM Feb 11 MSG Eleven
REM MSG NumTrig: [$NumTrig]
I can get
$ rem -q
Reminders for Tuesday, 10th February, 2026 (today):
Ten
NumTrig: 1
The aim of my playing was to determine the fraction of a number of
events that had been triggered, imagining something like $NumTotal to do
something like
# other events here ...
SET TotBefore $NumTotal
SET TrigBefore $NumTrig
REM Feb 9 MSG Nine
REM Feb 10 MSG Ten
REM Feb 11 MSG Eleven
REM MSG [$NumTrig-TrigBefore]/[$NumTotal-TotBefore] events processed
which would give output like
Ten
1/3 events processed
The final goal of the playing was to use that resulting
fraction/percentage in a SHADE type directive, something like
... SHADE [255 * ($NumTrig - TrigBefore) / ($NumTotal - TotBefore)] ...
to set the shade based on the percentage of events processed for the
day.
It's likely a dumb idea, and I have zero attachment the prospect, but I
didn't know if it was easy to implement or something others might find
useful. :-)
-tim
--
_______________________________________________
Remind-fans mailing list
[email protected]
https://dianne.skoll.ca/mailman/listinfo/remind-fans
Remind is at https://dianne.skoll.ca/projects/remind/