Dear org-mode developers, I wish that I could write +1bd on a repeating tasks so that it skips from Friday to Monday. I looked into implementing this myself, but there are a lot of places (29) where the regexp [dwmy] is used and it scares me off because I think I'll break something. It almost seems like you should be able to add a new 'what' to 'org-timestamp-change' and it will Just Work. But the algorithm in there would need to change a bit, because it would try to change by a number of days, but then adjust based on the advic day of the week. For now, I just manually complete the task on Saturdays and Sundays... but it seems wrong to get credit in the TODO -> DONE log when I really didn't do it :) I also wish that I could specify in some way that an event happens every third Thursday of the month or on the first and third Wednesdays (when my recycling cans are picked up). I don't know of a good way to fit that into the current annotation scheme of + and ++. If you have any advice about how I could do it myself safely, I'd be happy to try and contribute. Jay -- Jay McCarthy <jay@cs.byu.edu> Assistant Professor / Brigham Young University http://faculty.cs.byu.edu/~jay "The glory of God is Intelligence" - D&C 93
Jay McCarthy <jay.mccarthy@gmail.com> wrote:
> ...
> I also wish that I could specify in some way that an event happens
> every third Thursday of the month or on the first and third Wednesdays
> (when my recycling cans are picked up). I don't know of a good way to
> fit that into the current annotation scheme of + and ++.
>
> If you have any advice about how I could do it myself safely, I'd be
> happy to try and contribute.
Diary s-exprs can do things like this:
--8<---------------cut here---------------start------------->8---
* TODO every third Thursday of the month
<%%(org-float t 4 3)>
* TODO every first and third Wednesday of the month
<%%(or (org-float t 3 1) (org-float t 3 3))>
--8<---------------cut here---------------end--------------->8---
See
(info "(org) Timestamps")
(info "(emacs) Special Diary entries")
Nick
Nick Dokos <nicholas.dokos@hp.com> writes:
> Jay McCarthy <jay.mccarthy@gmail.com> wrote:
>
>> ...
>> I also wish that I could specify in some way that an event happens
>> every third Thursday of the month or on the first and third Wednesdays
>> (when my recycling cans are picked up). I don't know of a good way to
>> fit that into the current annotation scheme of + and ++.
>>
>> If you have any advice about how I could do it myself safely, I'd be
>> happy to try and contribute.
>
> Diary s-exprs can do things like this:
>
>
> * TODO every third Thursday of the month
> <%%(org-float t 4 3)>
>
> * TODO every first and third Wednesday of the month
> <%%(or (org-float t 3 1) (org-float t 3 3))>
Except these TODO's don't behave like repeating tasks. If you mark it
DONE it stays DONE as opposed to cycling back to TODO for the next
occurrence.
Regards,
Bernt
Jay McCarthy <jay.mccarthy@gmail.com> writes:
> I wish that I could write +1bd on a repeating tasks so that it skips
> from Friday to Monday.
>
> I looked into implementing this myself, but there are a lot of places
> (29) where the regexp [dwmy] is used and it scares me off because I
> think I'll break something. It almost seems like you should be able to
> add a new 'what' to 'org-timestamp-change' and it will Just Work. But
> the algorithm in there would need to change a bit, because it would
> try to change by a number of days, but then adjust based on the advic
> day of the week.
>
> For now, I just manually complete the task on Saturdays and Sundays...
> but it seems wrong to get credit in the TODO -> DONE log when I really
> didn't do it :)
You can also just adjust the date with S-right until the next
occurrence - this doesn't mark it DONE. Then you don't get 'credit' for
doing it on weekends.
HTH,
Bernt