[英]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.