emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Inserting todo time range
@ 2019-06-26 19:16 Raimund Kohl-Füchsle
  2019-06-26 22:53 ` Kyle Meyer
  2019-06-27  6:48 ` Michael Welle
  0 siblings, 2 replies; 5+ messages in thread
From: Raimund Kohl-Füchsle @ 2019-06-26 19:16 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 555 bytes --]

I do have a recurring task Mo-Fri, but not at weekends.

I searched the manual and it offers a time range - like

    ** Test Time range

         <2004-08-23 Mon>--<2004-08-26 Thu>

But, of course, this doesn't mark a recurring task.

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?

ray


[-- Attachment #2: Type: text/html, Size: 955 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Inserting todo time range
  2019-06-26 19:16 Inserting todo time range Raimund Kohl-Füchsle
@ 2019-06-26 22:53 ` Kyle Meyer
  2019-06-27  4:19   ` Raimund Kohl-Füchsle
  2019-06-27  6:48 ` Michael Welle
  1 sibling, 1 reply; 5+ messages in thread
From: Kyle Meyer @ 2019-06-26 22:53 UTC (permalink / raw)
  To: Raimund Kohl-Füchsle, emacs-orgmode

Raimund Kohl-Füchsle <rk-f@posteo.de> writes:

> I do have a recurring task Mo-Fri, but not at weekends.
>
> I searched the manual and it offers a time range - like
>
>     ** Test Time range
>
>          <2004-08-23 Mon>--<2004-08-26 Thu>
>
> But, of course, this doesn't mark a recurring task.
>
> 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?

The way I handle this, which isn't particularly elegant, is to just have
a heading for each day of interest.  So, in your case, something like

  ** TODO task (Mon)
  SCHEDULED: <2019-07-01 Mon ++1w>
  
  ** TODO task (Tue)
  SCHEDULED: <2019-07-02 Tue ++1w>
  
  [...]

  ** TODO task (Fri)
  SCHEDULED: <2019-07-05 Fri ++1w>

-- 
Kyle

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Inserting todo time range
  2019-06-26 22:53 ` Kyle Meyer
@ 2019-06-27  4:19   ` Raimund Kohl-Füchsle
  0 siblings, 0 replies; 5+ messages in thread
From: Raimund Kohl-Füchsle @ 2019-06-27  4:19 UTC (permalink / raw)
  To: Kyle Meyer; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1235 bytes --]

Yepp, that is how I do it, too. I just thought there were something more convenient.

Thank you anyway :-)

⁣Gesendet mit Blue ​

Am 27. Juni 2019, 00:53, um 00:53, Kyle Meyer <kyle@kyleam.com> schrieb:
>Raimund Kohl-Füchsle <rk-f@posteo.de> writes:
>
>> I do have a recurring task Mo-Fri, but not at weekends.
>>
>> I searched the manual and it offers a time range - like
>>
>>     ** Test Time range
>>
>>          <2004-08-23 Mon>--<2004-08-26 Thu>
>>
>> But, of course, this doesn't mark a recurring task.
>>
>> 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?
>
>The way I handle this, which isn't particularly elegant, is to just
>have
>a heading for each day of interest.  So, in your case, something like
>
>  ** TODO task (Mon)
>  SCHEDULED: <2019-07-01 Mon ++1w>
>
>  ** TODO task (Tue)
>  SCHEDULED: <2019-07-02 Tue ++1w>
>
>  [...]
>
>  ** TODO task (Fri)
>  SCHEDULED: <2019-07-05 Fri ++1w>
>
>--
>Kyle

[-- Attachment #2: Type: text/html, Size: 1977 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Inserting todo time range
  2019-06-26 19:16 Inserting todo time range Raimund Kohl-Füchsle
  2019-06-26 22:53 ` Kyle Meyer
@ 2019-06-27  6:48 ` Michael Welle
  2019-06-30  0:13   ` Spenser Truex
  1 sibling, 1 reply; 5+ messages in thread
From: Michael Welle @ 2019-06-27  6:48 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

Raimund Kohl-Füchsle <rk-f@posteo.de> 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] 
   

Regards
hmw

-- 
FrOSCon? Free and Open Source Software Conference
10th + 11th August 2019, Sankt Augustin, Bonn Area/Germany
https://www.froscon.de/en/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Inserting todo time range
  2019-06-27  6:48 ` Michael Welle
@ 2019-06-30  0:13   ` Spenser Truex
  0 siblings, 0 replies; 5+ messages in thread
From: Spenser Truex @ 2019-06-30  0:13 UTC (permalink / raw)
  To: emacs-orgmode

Michael Welle <mwe012008@gmx.net> writes:

> Hello,
>
> Raimund Kohl-Füchsle <rk-f@posteo.de> 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
usenet@spensertruex.com
https://spensertruex.com/
San Francisco, USA

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-06-30  0:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-26 19:16 Inserting todo time range Raimund Kohl-Füchsle
2019-06-26 22:53 ` Kyle Meyer
2019-06-27  4:19   ` Raimund Kohl-Füchsle
2019-06-27  6:48 ` Michael Welle
2019-06-30  0:13   ` Spenser Truex

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).