[Remind-Fans] basing task recurrance schedule on completed date/time

Daniel Graham daniel.graham at duke.edu
Tue Aug 8 12:30:22 EDT 2006


Try putting this in a file that is 'included' in your .reminders.

-Dan

######################
# FLOATING REMINDERS #
######################
#   $Id: FLOAT,v 1.2 2006/05/06 15:59:15 dag Exp dag $
# 
#   To enable floating reminders INCLUDE this file in your reminders
#   file prior to any use of float().
# 
#   Remind usage:
#       REM [float(y, m, d, n)] MSG ... %
#
#   where y/m/d is the target or due date for the reminer with
#       y: integer (4-digit) year
#       m: integer month
#       d: inter date
#   and 
#       n: integer number of days of advance warning.
#
#   Example:
#
#       REM [float(2006,4,15,10)] MSG File tax return%
#
#   will display as follows:
#
#       In calendar modes on 15 Apr 2006 only:
#           File tax return
#
#       Other, non-calendar modes:
#           On any date --- on 15 Apr event list:
#               File tax return (today)
#           On or before 5 Apr --- on 5 Apr event list:
#               File tax return (in 10 days)
#           On 10 Apr --- on 10 Apr event list:
#               File tax return (in 5 days)
#           On 14 Apr --- on 14 Apr event list:
#               File tax return (tomorrow)
#           On 16 Apr --- on 16 Apr event list:
#               File tax return (yesterday)
#           On 18 Apr --- on 18 Apr event list:
#               File tax return (3 days ago)
#
#   Additionally, float() events are automatically assigned priorities so that
#   reminders are ordered by their due dates. These priorities range from 0
#   (1000 days ago) to 2000 with priority 1000 corresponding to today.  Since
#   remind's default priority is 5000, such floating reminders will be listed
#   before any default reminders.
#
IF  ($CalMode || $PSCal )
    # For Cal and PS calendars, only trigger the event on the due date.
    FSET float(y,m,d,n) trigger(date(y,m,d))
ELSE
    # For Simple Calendar (rem -s) and other modes, also set warning trigger,
    # priority and suffixes.
    FSET float(y,m,d,n) iif(date(y,m,d) == today(), trigger(today()) + \
    " PRIORITY 1000", trigger(MAX(realtoday(), date(y,m,d)-n)) + \
    iif(n >= date(y,m,d) - today(), " PRIORITY " + \
    (1000 + (date(y,m,d) - today())),"")))

    FSET msgsuffix(x) iif(0 > x, "", \
    998 >= x, " (" + (1000-x) + " days ago)", \
    999 >= x, " (yesterday)", \
    1000 >= x, " (today)", \
    1001 >= x, " (tomorrow)", \
    2000 >= x, " (in " + (x - 1000) + " days)", "")

    # This calsuffix is used by wxRemind
    FSET calsuffix(x) iif(0 > x, "", \
    998 >= x, " (" + (1000-x) + " days ago)", \
    999 >= x, " (yesterday)", \
    1000 >= x, " (today)", \
    1001 >= x, " (tomorrow)", \
    2000 >= x, " (in " + (x - 1000) + " days)", "")
ENDIF


On 2006-08-08 10:18 -0600, Jon Garvin wrote:
> I've been on the quest for my personal holy grail of task reminder
> tools  for quite some time.  I saw a mention of 'Remind' on linux .com
> today and spent a while browsing the remind wiki and mailing list
> archives sceptically optimistic.  The  fact that  Remind has an actual
> scripting language suggests that what I need to do might actually be
> possible here, but I don't see a specific mention of it anywhere, so... 
> if someone could simply tell me either "No, Outlook is still the only
> software that does that well." or "Sure, that's easy, go check out 'this
> link'." I'd greatly appreciate it.
> 
> What I need is to have a task, let's say "Mow the lawn," that doesn't
> necessarily NEED to happen on the day the reminder triggers. Maybe it's
> raining, or I've got other plans, or it doesn't really need it yet, or
> it's just too damn hot.  So, I put it off for a couple days, or even
> until next week.  What I do NOT need to is put it off six days and then
> on the 7th get another reminder telling me to do it all over again.
> Instead, once I do finally get it done, I want to automatically schedule
> a new reminder for, let's say, one week from the time that I completed
> it this time.  Outlook does this extremely well, but I have yet to find
> anything for linux that does this right. Maybe Remind does, and I've
> just been oblivious this whole time? I've got my fingers crossed.
> 
> 
> _______________________________________________
> Remind-fans mailing list
> Remind-fans at lists.whatexit.org
> http://lists.whatexit.org/mailman/listinfo/remind-fans
> 

-- 
Daniel A Graham
Professor of Economics
Duke University
Durham, NC 27708-0097
919 660-1802




More information about the Remind-fans mailing list