[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Inserting todo time range
From: |
Spenser Truex |
Subject: |
Re: [O] Inserting todo time range |
Date: |
Sat, 29 Jun 2019 17:13:49 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Michael Welle <address@hidden> writes:
> Hello,
>
> Raimund Kohl-Füchsle <address@hidden> writes:
> [...]
>> If instead I would use
>>
>> ** TODO Test Time range
>>
>> <2004-08-23 Mon>--<2004-08-26 Thu>
>>
>> then this for org-mode would just be one todo; if I mark it done on
>> Mon all other days are marked as done, too.
>>
>> So how would I schedule a daily TODO only, say, this week from Mo -
>> Fr?
> well, I think there are only wuerg-arounds to gain the desired
> behaviour. First, you can use a sexp to specify the days on which your
> task will be inserted into your agenda:
>
> SCHEDULED: <%%(memq (calendar-day-of-week date) '(1 2 3 4 5))>
>
> But with that your task is done when you set it to done. Something
> like the following isn't perfect, but seems to work:
>
>
> ** TODO foobar
> DEADLINE: <2020-01-04 Sat +1d>
> SCHEDULED: <%%(memq (calendar-day-of-week date) '(1 2 3 4 5))>
> [2019-03-31 Sun]
I have also been wanting to be able to do this in my agenda, so I can
have my daily M-F schedule in my org-agenda buffer.
What would it take to write ORG to behave properly on a TODO range like that?
--
Spenser Truex
address@hidden
https://spensertruex.com/
San Francisco, USA