比印象笔记强大的emacs-org中的时间规划管理


比印象笔记强大的emacs-org中的时间规划管理

作为项目管理的辅助,TODO条目可以标注时间戳。时间戳在他处或许颇为简单,但是在豪横的org-mode内有复杂且实际的用处。

1.时间戳

时间戳标注时间点和时间段,比如:

<2020-08-31 Mon>
<2020-08-31 Mon 10:36>
<2020-08-31 Mon 10:36-12:36>

时间戳出现在标题以及org的树形条目中,org-agenda将会展示所有标注时间戳的内容。

时间戳,事件与约会 Plain timestamp; Event; Appointmen:

时间戳的应用与我们日常的纸笔模式完全一致。事项后面紧随时间戳:

    * Meet Peter at the movies
      <2020-11-01 Wed 19:15>
    * Discussion on climate change
      <2020-11-02 Thu 20:00-22:00>

间隔重复事件 Timestamp with repeater interva:

时间戳内标注重复区间,每天,每周,每月,每年这四个时间单位。

比如以下,每周一早上的例会

    * Rountine meeting
      <2020-08-31 Wed 09:15 +1w>

日记表达式 Diary-style expression entrie:

针对更加复杂的情况,org-mode支持调用emacs-calendar-package中的日记表达式

    * 22:00-23:00 The nerd meeting on every 2nd Thursday of the month
      <%%(diary-float t 4 2)>

比如nerd-meeting在个月的第二个周四。

以及下面的格式:

&%%(diary-float 11 4 4) American Thanksgiving

感恩节在每年11月份的第四个周四。

2.创建时间戳

org-mode有许多方法创建时间戳,主要的几个方法如下:

  1. C-c.(org-time-stamp)插入当前的日期,倘若连续调用两次则插入时间段。
  2. C-c !(org-time-stamp-inactive)插入inactive时间戳,不会展示在agenda中。
  3. C-c < (org-date-from-calendar)从当前的日历日期中插入时间。
  4. C-c > (org-goto-calendar)从时间戳上进入日历
  5. C-c C-o (org-open-at-point)从时间戳上打开agenda
  6. S-left and S-right按日变更时间戳
  7. S-Up and S-Down在当前光标处变更时间戳(颇为奇妙的应用)
  8. C-c C-y org-evaluate-time-range计算选定区域的时间间隔

3.输入时间戳的提示

表面看起来我们从时间输入的提示框中只能输入当前时间,但实情并非如此。

单单键入Fri就是输入本周五的时间戳。

比印象笔记强大的emacs-org中的时间规划管理

org辨识的时间戳格式如下:

比印象笔记强大的emacs-org中的时间规划管理

时间戳格式

除此之外,还能以”日周月年“为单位插入相对时间,比如:

比印象笔记强大的emacs-org中的时间规划管理

插入相对时间

插入时间段,比如:

比印象笔记强大的emacs-org中的时间规划管理

更可以遍历日历来操作。

比印象笔记强大的emacs-org中的时间规划管理

4.截至日期和安排

比印象笔记强大的emacs-org中的时间规划管理

时间戳加上特殊的关键词帮助我们更好地处理计划。Deadline与schedule必须紧随在事项之后,中间不能有其他内容。

截止日期Deadline

Deadline可以设置提醒,需要从org-deadline-warning-days中自定义,默认为14天。

    *** TODO Call Trillian for a date on New Years Eve.
        SCHEDULED: <2020-12-25 Sat>

接着自定义提前提醒的日期:

<202012-25 Sat -2d>

这将会覆盖掉默认的14天,而变更为提前2天提醒。

计划安排

我们需要区分deadline与schedule。deadline为任务结束的时间,而schedule则为任务开始的时间。

    *** TODO Call Trillian for a date on New Years Eve.
        SCHEDULED: <2004-12-25 Sat>

倘若任务延期两天开始,则要:

<2004-12-25 Sat -2d>

事项将会延期两天从agenda显示,但并不会更改日期。

插入deadline与schedule

下面的快捷键将会帮助我们。

同时org-schedule与org-deadline支持设置相对时间。+1d设置下一天,-1w设置减一周。

重复的任务

对于重复的任务,除了日周月年这四个时间单位之外,还有小时h(hour)这个单位。

    ** TODO Pay the rent
       DEADLINE: <2020-11-01 Tue +1m>

还有更加灵活的设定重复任务的方法。

    ** TODO Call Father
       DEADLINE: <2008-02-10 Sun ++1w>
       Marking this DONE shifts the date by at least one week, but also
       by as many weeks as it takes to get this date into the future.
       However, it stays on a Sunday, even if you called and marked it
       done on Saturday.

    ** TODO Empty kitchen trash
       DEADLINE: <2008-02-08 Fri 20:00 ++1d>
       Marking this DONE shifts the date by at least one day, and also
       by as many days as it takes to get the timestamp into the future.
       Since there is a time in the timestamp, the next deadline in the
       future will be on today's date if you complete the task before
       20:00.

    ** TODO Check the batteries in the smoke detectors
       DEADLINE: <2005-11-01 Tue .+1m>
       Marking this DONE will shift the date to one month after today.


以上就是org-mode中规划时间管理的四个方面。

比印象笔记强大的emacs-org中的时间规划管理

展开阅读全文

页面更新:2024-02-29

标签:豪横   时间   表达式   时间段   条目   间隔   日历   印象   强大   事项   提示   日期   单位   事件   格式

1 2 3 4 5

上滑加载更多 ↓
推荐阅读:
友情链接:
更多:

本站资料均由网友自行发布提供,仅用于学习交流。如有版权问题,请与我联系,QQ:4156828  

© CopyRight 2020-2024 All Rights Reserved. Powered By 71396.com 闽ICP备11008920号-4
闽公网安备35020302034903号

Top