簡體   English   中英

標題中的組織模式任務日期 - 可能嗎?

[英]org-mode task date in header - possible?

我有一項任務,需要在第二天的截止日期前完成。 所以如果我在我的.org文件中寫這樣的東西:

** TODO Daily report
DEADLINE: <2012-07-27 Fri +1d> 
SCHEDULED: <2012-07-26 Thu +1d>

這會產生相當討厭的議程,每天有兩行,並帶有相同的文字“每日報道”:

Friday     27 July 2012
Work:       Scheduled:  TODO Daily report
Work:       Deadline:   TODO Daily report

我想要的是能夠在“每日報告”文本之后看到日期,其中添加了日期,該行對應於哪一天。 例如:

Friday     27 July 2012
Work:       Scheduled:  TODO Daily report for 27 July 2012
Work:       Deadline:   TODO Daily report for 26 July 2012

可能嗎?

您可以將以下內容添加到〜/ .emacs以避免冗余:

(setq org-agenda-skip-scheduled-if-deadline-is-shown t)

從此變量的文檔:

In the agenda of today, an entry can show up multiple times because
it is both scheduled and has a nearby deadline, and maybe a plain time
stamp as well.
When this variable is t, then only the deadline is shown and the fact that
the entry is scheduled today or was scheduled previously is not shown.
When this variable is nil, the entry will be shown several times.  When
the variable is the symbol `not-today', then skip scheduled previously,
but not scheduled today.

如果您希望保留計划行而不是截止日期行,則更新版本的org-mode還允許以下設置:

(setq org-agenda-skip-deadline-prewarning-if-scheduled t)

從文檔:

This will apply on all days where a prewarning for the deadline would
be shown, but not at the day when the entry is actually due.  On that day,
the deadline will be shown anyway.

不,這是不可能的。

我只想使用SCHEDULED ,沒有DEADLINE ,因為SCHEDULED隱含的意思是“今天就在一天”在這里,所以DEADLINE的cookie介紹你觀察到的冗余。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM