[org-mode]:每周一、三、五 18:00 重复任务,需要 sexp 帮助

发布于 2024-09-01 07:33:15 字数 545 浏览 6 评论 0原文

正如我在标题中所写的,我需要一些帮助来改进此 sexp:

* TODO remeber about thingie.
  SCHEDULED: <%%(or (= 1 (calendar-day-of-week date)) 
                    (= 3 (calendar-day-of-week date)) 
                    (= 5 (calendar-day-of-week date)))>

现在它会在接下来的几天内显示出来,但我想更改有关它的两件事:

  • 我怎样才能安排特定的时间(在接下来的几天里,即 18:00 - 20:00)

  • 我怎样才能让这个任务重复进行,就像它重复一样

    <2010-05-13周三+1w>

    (我所说的重复是指它自动记录结束日期和时间并返回到 TODO 状态)。

我将不胜感激任何帮助。

谢谢。

As I had written in title, I need a little help with improvement of this sexp:

* TODO remeber about thingie.
  SCHEDULED: <%%(or (= 1 (calendar-day-of-week date)) 
                    (= 3 (calendar-day-of-week date)) 
                    (= 5 (calendar-day-of-week date)))>

Now it shows itself in the following days, but I would like to change two things about it:

  • How can I also schedule on specific hours (i.e. 18:00 - 20:00) in the following days

  • How can I made this task repeat itself, just like it repeats itself with

    <2010-05-13 Wed +1w>

    (by repetition I mean something like it automatically logs the closing date and time and comes back to the TODO state).

I will be grateful for any help.

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

︶ ̄淡然 2024-09-08 07:33:15
* TODO remeber about thingie.
  SCHEDULED: <2012-05-07 Mon 18:00 +1w>
  SCHEDULED: <2012-05-09 Wed 18:00 +1w>
  SCHEDULED: <2012-05-11 Fri 18:00 +1w>
* TODO remeber about thingie.
  SCHEDULED: <2012-05-07 Mon 18:00 +1w>
  SCHEDULED: <2012-05-09 Wed 18:00 +1w>
  SCHEDULED: <2012-05-11 Fri 18:00 +1w>
度的依靠╰つ 2024-09-08 07:33:15

不幸的是,你不能使用 diary-sexps 在 org-mode 中重复 TODO 项目。
解决方法是创建三个重复的 TODO 项目,并使用正常的组织模式日期表达式,而不是日记 sexps。

Unfortunately, you cannot use diary-sexps for repeating TODO items in org-mode like that.
The work-around is to create three repeating TODO items, and use the normal org-mode date expressions, not diary sexps.

染柒℉ 2024-09-08 07:33:15

如果您不需要每天将任务标记为完成,则只需编写:

** remeber about thingie 1. 18:00-20:00
   <%%(and (memq (calendar-day-of-week date) '(1 3 5))
           (diary-block 03 26 2012 12 31 2012))>

在您的情况下,您必须使用单独的任务:

** TODO remeber about thingie 2-1. 18:00-20:00
   SCHEDULED: <2012-03-26 Mon +1w>
** TODO remeber about thingie 2-3. 18:00-20:00
   SCHEDULED: <2012-03-28 Wed +1w>
** TODO remeber about thingie 2-5. 18:00-20:00
   SCHEDULED: <2012-03-30 Fri +1w>

将任务标记为完成 (抄送抄送)您的任务将自动更改为:

** TODO remeber about thingie 2-5. 18:00-20:00
   SCHEDULED: <2012-04-06 Fri +1w>
   - State "DONE"       from "TODO"       [2012-03-30 Fri 12:34]
   :PROPERTIES:
   :LAST_REPEAT: [2012-03-30 Fri 12:34]
   :END:

If you don't need to mark task as DONE every day, you must simply write:

** remeber about thingie 1. 18:00-20:00
   <%%(and (memq (calendar-day-of-week date) '(1 3 5))
           (diary-block 03 26 2012 12 31 2012))>

In your case you have to use separated tasks:

** TODO remeber about thingie 2-1. 18:00-20:00
   SCHEDULED: <2012-03-26 Mon +1w>
** TODO remeber about thingie 2-3. 18:00-20:00
   SCHEDULED: <2012-03-28 Wed +1w>
** TODO remeber about thingie 2-5. 18:00-20:00
   SCHEDULED: <2012-03-30 Fri +1w>

Marking task as DONE (C-c C-t) your task will be changed automatically to:

** TODO remeber about thingie 2-5. 18:00-20:00
   SCHEDULED: <2012-04-06 Fri +1w>
   - State "DONE"       from "TODO"       [2012-03-30 Fri 12:34]
   :PROPERTIES:
   :LAST_REPEAT: [2012-03-30 Fri 12:34]
   :END:
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文