[Remind-Fans] AFTER doesn't works as expected
rrandom
rrandom at dismail.de
Sun Jan 16 09:45:43 EST 2022
Thank you! But sometimes your solution doesn't work, for example at
2020-02-11 when Practicing and Gym will be at one day. I try combine
all that AFTERs and OMITs in a PUSH-POP block to temporary clear all
old OMITs but without any success. The most strange thing is that
BEFORE works good with ADDOMIT and I can't understand why. So of course
I understand that it's against the Remind's logic but if BEFORE works
AFTER should work too, right?..
> From what I understand of your requirements
I want to do
"Practicing-Library-Gym-Practicing-Library-Gym-Practicing-Library-Gym"
etc. with delaying/AFTERing the task and all the other tasks if the day
is weekend, holiday or every other OMIT or ADDOMIT day. That's all!
Maybe some OMIT FUNCTION can help me?
On Sun, 16 Jan 2022 09:22:23 -0500
Dianne Skoll via Remind-fans <remind-fans at lists.skoll.ca> wrote:
> Hi,
>
> > It seems like AFTER doesn't work as expected.
>
> AFTER works fine, but combining things with ADDOMIT is unlikely
> to work as you want. Run with
>
> From what I understand of your requirements, this will work:
>
> REM 16 January 2022 *4 AT 10:00 DURATION 4:00 AFTER OMIT Sunday
> Saturday MSG Practicing REM 17 January 2022 *4 AT 10:00 DURATION 4:00
> AFTER OMIT Sunday Monday MSG Library REM 18 January 2022 *4 AT 10:00
> DURATION 4:00 AFTER OMIT Monday Tuesday MSG Gym
>
> To see why your example does not work, try running in debug mode for
> various dates. For example:
>
> remind -dte /path/to/your/file 17 Jan 2022
> remind -dte /path/to/your/file 18 Jan 2022
>
> You can see that on the 17th, the Practicing reminder triggers, and
> marks the 17th as omitted. However, on the 18th, the trigger date for
> the Practicing reminder is the 20th and therefore there are no
> OMITted days for the Library reminder to be moved after. In general,
> making reminders depend on other reminders is not likely to work
> (unless you take great care) because of how the Remind algorithm
> works.
>
> Regards,
>
> Dianne.
>
> _______________________________________________
> Remind-fans mailing list
> Remind-fans at lists.skoll.ca
> https://dianne.skoll.ca/mailman/listinfo/remind-fans
> Remind is at https://dianne.skoll.ca/projects/remind/
--
More information about the Remind-fans
mailing list