在 Emacs 组织模式中,我知道我可以调用议程“匹配” View (使用 C-a m
),然后使用以下搜索字符串查找截止日期设置为今天的所有 TODO 项目:
DEADLINE="<today>"
但是,我想在我的 TODO 列表中找到所有没有设置任何截止日期的项目。我已经搜索过,但似乎找不到答案;以下似乎也不起作用:
DEADLINE=""
如何搜索所有未指定 DEADLINE 的 TODO?
(这同样适用于查找尚未安排的项目,但我猜解决方案将是相同的。)
最佳答案
您可以使用
-DEADLINE={.+}
和
-SCHEDULED={.+}
它搜索没有包含任何内容的 DEADLINE/SCHEDULED 标签的项目——即没有设置预定日期或截止日期。 curl 用于标识正则表达式(在这种情况下匹配比空字符串更长的任何内容)。
例如,我使用以下内容:
(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
关于search - Emacs 组织模式 : How to find all TODOs that don't have a deadline specified,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17003338/