emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Repeated tasks, but only for a limited period (of time)
@ 2013-03-12 15:06 Rick Hanson
  2013-03-12 16:58 ` Brian van den Broek
  2013-03-12 17:01 ` Darlan Cavalcante Moreira
  0 siblings, 2 replies; 6+ messages in thread
From: Rick Hanson @ 2013-03-12 15:06 UTC (permalink / raw)
  To: Org-mode Mailing List

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

Hi everyone,

I've already RTFMed for this, but I still don't see how to do the following.

Fact: I can add a repeater to a time stamp (like "+1d") in org-mode so that
a task shows up in my agenda as an every day item.

Question: Can I restrict this repetition to, say, 1 week?

For instance, I have a task I have to perform every day this week, /but
only for this week/.  So if I were to pull up my agenda for this week, I
should see the task posted every day of this week, but if I then hit the
"f" key to go forward a week, I should *not* see that task in this (the
following) week.

This is a not deal-breaker if not possible.  I can just get rid if the task
at the end of the week (but it's state, of course, that I have to keep in
my mind, instead of committing it to the magic of org-mode).

Thanks a lot of any help!  (My apologies if it's in the manual and I missed
it.)

Best, --Rick

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

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

* Re: Repeated tasks, but only for a limited period (of time)
  2013-03-12 15:06 Repeated tasks, but only for a limited period (of time) Rick Hanson
@ 2013-03-12 16:58 ` Brian van den Broek
  2013-03-12 17:01 ` Darlan Cavalcante Moreira
  1 sibling, 0 replies; 6+ messages in thread
From: Brian van den Broek @ 2013-03-12 16:58 UTC (permalink / raw)
  To: Rick Hanson; +Cc: Org-mode Mailing List

On 12 March 2013 11:06, Rick Hanson <cryptorick@gmail.com> wrote:
> Hi everyone,
>
> I've already RTFMed for this, but I still don't see how to do the following.
>
> Fact: I can add a repeater to a time stamp (like "+1d") in org-mode so that
> a task shows up in my agenda as an every day item.
>
> Question: Can I restrict this repetition to, say, 1 week?
>
> For instance, I have a task I have to perform every day this week, /but only
> for this week/.  So if I were to pull up my agenda for this week, I should
> see the task posted every day of this week, but if I then hit the "f" key to
> go forward a week, I should *not* see that task in this (the following)
> week.
>
> This is a not deal-breaker if not possible.  I can just get rid if the task
> at the end of the week (but it's state, of course, that I have to keep in my
> mind, instead of committing it to the magic of org-mode).
>
> Thanks a lot of any help!  (My apologies if it's in the manual and I missed
> it.)
>
> Best, --Rick


Hi Rick,

I know of no way to do exactly what you are after. But, for things
like that, I make one headline task and then apply M-x
org-clone-subtree-with-time-shift to get the desired number of
distinct tasks. Perhaps that will suit your needs.

Best,

Brian vdB

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

* Re: Repeated tasks, but only for a limited period (of time)
  2013-03-12 15:06 Repeated tasks, but only for a limited period (of time) Rick Hanson
  2013-03-12 16:58 ` Brian van den Broek
@ 2013-03-12 17:01 ` Darlan Cavalcante Moreira
  2013-03-12 19:54   ` Rick Hanson
  1 sibling, 1 reply; 6+ messages in thread
From: Darlan Cavalcante Moreira @ 2013-03-12 17:01 UTC (permalink / raw)
  To: Rick Hanson; +Cc: Org-mode Mailing List


Instead of using a repeater you can clone the task. Just create the task
the way you like it (with a schedule and a deadline) for the first day and
then call 'M-x org-clone-subtree-with-time-shift'.  Org-mode will ask you
the number of clones it should create and the time shift. Just specify the
time shift as '1d' and you are done.

--
Darlan

At Tue, 12 Mar 2013 11:06:30 -0400,
Rick Hanson wrote:
> 
> [1  <text/plain; ISO-8859-1 (7bit)>]
> Hi everyone,
> 
> I've already RTFMed for this, but I still don't see how to do the following.
> 
> Fact: I can add a repeater to a time stamp (like "+1d") in org-mode so that
> a task shows up in my agenda as an every day item.
> 
> Question: Can I restrict this repetition to, say, 1 week?
> 
> For instance, I have a task I have to perform every day this week, /but
> only for this week/.  So if I were to pull up my agenda for this week, I
> should see the task posted every day of this week, but if I then hit the
> "f" key to go forward a week, I should *not* see that task in this (the
> following) week.
> 
> This is a not deal-breaker if not possible.  I can just get rid if the task
> at the end of the week (but it's state, of course, that I have to keep in
> my mind, instead of committing it to the magic of org-mode).
> 
> Thanks a lot of any help!  (My apologies if it's in the manual and I missed
> it.)
> 
> Best, --Rick
> [2  <text/html; ISO-8859-1 (quoted-printable)>]
> 

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

* Re: Repeated tasks, but only for a limited period (of time)
  2013-03-12 17:01 ` Darlan Cavalcante Moreira
@ 2013-03-12 19:54   ` Rick Hanson
  2013-03-13  8:59     ` Bastien
  0 siblings, 1 reply; 6+ messages in thread
From: Rick Hanson @ 2013-03-12 19:54 UTC (permalink / raw)
  To: Darlan Cavalcante Moreira, Brian van den Broek; +Cc: Org-mode Mailing List

Based your advices, I used org-clone-subtree-with-time-shift for my
application today -- worked like a charm.  Thanks to the both of you!

Best, --Rick

On Tue, Mar 12, 2013 at 12:58 PM, Brian van den Broek
<brian.van.den.broek@gmail.com> wrote:
>
> Hi Rick,
>
> I know of no way to do exactly what you are after. But, for things
> like that, I make one headline task and then apply M-x
> org-clone-subtree-with-time-shift to get the desired number of
> distinct tasks. Perhaps that will suit your needs.
>
> Best,
>
> Brian vdB

On Tue, Mar 12, 2013 at 1:01 PM, Darlan Cavalcante Moreira
<darcamo@gmail.com> wrote:
>
> Instead of using a repeater you can clone the task. Just create the task
> the way you like it (with a schedule and a deadline) for the first day and
> then call 'M-x org-clone-subtree-with-time-shift'.  Org-mode will ask you
> the number of clones it should create and the time shift. Just specify the
> time shift as '1d' and you are done.
>
> --
> Darlan
>
> At Tue, 12 Mar 2013 11:06:30 -0400,
> Rick Hanson wrote:
>>
>> [1  <text/plain; ISO-8859-1 (7bit)>]
>> Hi everyone,
>>
>> I've already RTFMed for this, but I still don't see how to do the following.
>>
>> Fact: I can add a repeater to a time stamp (like "+1d") in org-mode so that
>> a task shows up in my agenda as an every day item.
>>
>> Question: Can I restrict this repetition to, say, 1 week?
>>
>> For instance, I have a task I have to perform every day this week, /but
>> only for this week/.  So if I were to pull up my agenda for this week, I
>> should see the task posted every day of this week, but if I then hit the
>> "f" key to go forward a week, I should *not* see that task in this (the
>> following) week.
>>
>> This is a not deal-breaker if not possible.  I can just get rid if the task
>> at the end of the week (but it's state, of course, that I have to keep in
>> my mind, instead of committing it to the magic of org-mode).
>>
>> Thanks a lot of any help!  (My apologies if it's in the manual and I missed
>> it.)
>>
>> Best, --Rick
>> [2  <text/html; ISO-8859-1 (quoted-printable)>]
>>

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

* Re: Repeated tasks, but only for a limited period (of time)
  2013-03-12 19:54   ` Rick Hanson
@ 2013-03-13  8:59     ` Bastien
  2013-03-13 14:42       ` Rick Hanson
  0 siblings, 1 reply; 6+ messages in thread
From: Bastien @ 2013-03-13  8:59 UTC (permalink / raw)
  To: Rick Hanson; +Cc: Brian van den Broek, Org-mode Mailing List

Hi Rick,

Rick Hanson <cryptorick@gmail.com> writes:

> Based your advices, I used org-clone-subtree-with-time-shift for my
> application today -- worked like a charm.  Thanks to the both of you!

Yes, that's what the manual advised too.  

But I find your request to be useful in another circumstance: when
there is a repeated scheduled item and a deadline.  In that case, the
meaning should be "repeat until the deadline".

You can now achieve this by setting 

(setq org-agenda-skip-scheduled-if-deadline-is-shown
      'repeated-after-deadline)

which translates to: "Skip the agenda scheduled item when it repeats
after the deadline."

This feature is available from master.

Thanks for coming up with this idea and for the clear use-case!

-- 
 Bastien

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

* Re: Repeated tasks, but only for a limited period (of time)
  2013-03-13  8:59     ` Bastien
@ 2013-03-13 14:42       ` Rick Hanson
  0 siblings, 0 replies; 6+ messages in thread
From: Rick Hanson @ 2013-03-13 14:42 UTC (permalink / raw)
  To: Bastien; +Cc: Brian van den Broek, Org-mode Mailing List

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

Thank you, Bastien!

On Wed, Mar 13, 2013 at 4:59 AM, Bastien <bzg@altern.org> wrote:

> Hi Rick,
>
> Rick Hanson <cryptorick@gmail.com> writes:
>
> > Based your advices, I used org-clone-subtree-with-time-shift for my
> > application today -- worked like a charm.  Thanks to the both of you!
>
> Yes, that's what the manual advised too.
>
> But I find your request to be useful in another circumstance: when
> there is a repeated scheduled item and a deadline.  In that case, the
> meaning should be "repeat until the deadline".
>
> You can now achieve this by setting
>
> (setq org-agenda-skip-scheduled-if-deadline-is-shown
>       'repeated-after-deadline)
>
> which translates to: "Skip the agenda scheduled item when it repeats
> after the deadline."
>
> This feature is available from master.
>
> Thanks for coming up with this idea and for the clear use-case!
>
> --
>  Bastien
>

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

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

end of thread, other threads:[~2013-03-13 14:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-12 15:06 Repeated tasks, but only for a limited period (of time) Rick Hanson
2013-03-12 16:58 ` Brian van den Broek
2013-03-12 17:01 ` Darlan Cavalcante Moreira
2013-03-12 19:54   ` Rick Hanson
2013-03-13  8:59     ` Bastien
2013-03-13 14:42       ` Rick Hanson

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).