[英]Emacs Org-Mode: How to find all TODOs that don't have a deadline specified
在Emacs組織模式中,我知道我可以調用議程“匹配”視圖(使用Ca m
),然后使用以下搜索字符串查找截止日期設置為今天的所有TODO項目:
DEADLINE="<today>"
不過,我想找到我的TODO列表中的所有項目沒有任何最后期限設定在所有。 我搜索過但似乎無法找到答案; 以下似乎也不起作用:
DEADLINE=""
如何搜索未指定DEADLINE的所有TODO?
(同樣也適用於查找尚未安排的項目,但我猜測解決方案將是相同的。)
您可以使用
-DEADLINE = {。} +
和
-SCHEDULED = {。} +
它搜索沒有DEADLINE / SCHEDULED標記的項目,其中包含任何內容 - 即,沒有設置計划或截止日期。 curlies用於標識正則表達式(在這種情況下匹配任何比空字符串更長的表達式)。
例如,我使用以下內容:
(setq org-agenda-custom-commands
`(;; match those tagged with :inbox:, are not scheduled, are not DONE.
("ii" "[i]nbox tagged unscheduled tasks" tags "+inbox-SCHEDULED={.+}/!+TODO|+STARTED|+WAITING")))
參考: http : //orgmode.org/manual/Matching-tags-and-properties.html
另一種方法是使用org-agenda-skip-entry
。 我跳過已安排的任務或截止日期或時間戳以及包含單詞/標簽“desparche”的任務。
("X" "Not scheduled"
( (todo "TODO"
(
(org-agenda-skip-function '(org-agenda-skip-entry-if 'scheduled 'deadline 'timestamp 'regexp "desparche" ))
)
)
)
)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.