如何使议程视图显示明天或提前几天截止的任务?
How to make agenda view show tasks deadlined tomorrow or another number of days ahead?
我想让我的组织议程视图显示今天、明天和未来特定天数截止日期的任务的单独块。我尝试了以下代码:
(setq org-agenda-custom-commands '(
("d" "deadlined tasks"(
(tags-todo "+TODO={NEXT}+DEADLINE>=\"<Today>\" " (
(org-agenda-sorting-strategy '(scheduled-down))
(org-agenda-overriding-header "Deadline today")
))
(tags-todo "+TODO={NEXT}+DEADLINE>=\"<Today>\"+1 " (
(org-agenda-sorting-strategy '(scheduled-down))
(org-agenda-overriding-header "Deadline tomorrow")
))
(tags-todo "+TODO={NEXT}+DEADLINE>=\"<Today>\"+2 " (
(org-agenda-sorting-strategy '(scheduled-down))
(org-agenda-overriding-header "Deadline in two days")
))
))
我的代码有什么问题?如何过滤掉提前 n 天截止的任务?
你可以试试org-super-agenda.
使用org-super-agenda,您只需设置:
(let ((org-super-agenda-groups
'(;; Each group has an implicit boolean OR operator between its selectors.
(:name "Deadline Future"
:deadline future)))))
org-super-ageda
的更多用法可以查看examples.
:deadline
Group items that have a deadline. Argument can be t (to match items with any deadline), nil (to match items that have no deadline), past (to match items with a deadline in the past), today (to match items whose deadline is today), or future (to match items with a deadline in the future). Argument may also be given like before DATE or after DATE where DATE is a date string that org-time-string-to-absolute can process.
我想让我的组织议程视图显示今天、明天和未来特定天数截止日期的任务的单独块。我尝试了以下代码:
(setq org-agenda-custom-commands '(
("d" "deadlined tasks"(
(tags-todo "+TODO={NEXT}+DEADLINE>=\"<Today>\" " (
(org-agenda-sorting-strategy '(scheduled-down))
(org-agenda-overriding-header "Deadline today")
))
(tags-todo "+TODO={NEXT}+DEADLINE>=\"<Today>\"+1 " (
(org-agenda-sorting-strategy '(scheduled-down))
(org-agenda-overriding-header "Deadline tomorrow")
))
(tags-todo "+TODO={NEXT}+DEADLINE>=\"<Today>\"+2 " (
(org-agenda-sorting-strategy '(scheduled-down))
(org-agenda-overriding-header "Deadline in two days")
))
))
我的代码有什么问题?如何过滤掉提前 n 天截止的任务?
你可以试试org-super-agenda.
使用org-super-agenda,您只需设置:
(let ((org-super-agenda-groups
'(;; Each group has an implicit boolean OR operator between its selectors.
(:name "Deadline Future"
:deadline future)))))
org-super-ageda
的更多用法可以查看examples.
:deadline
Group items that have a deadline. Argument can be t (to match items with any deadline), nil (to match items that have no deadline), past (to match items with a deadline in the past), today (to match items whose deadline is today), or future (to match items with a deadline in the future). Argument may also be given like before DATE or after DATE where DATE is a date string that org-time-string-to-absolute can process.