简体   繁体   English

组织模式中的自定义日程视图:结合日期和标签

[英]Custom Agenda View in Org Mode: Combining Dates and Tags

I would like to create a custom agenda in org mode that will show me all the TODO items with a particular tag that are either overdue or due today. 我想在org模式下创建一个自定义日程表,它会显示所有带有特定标签的TODO项目,这些标签要么已过期,要么已到期。

However, I can't find any search function that will allow me to combine the two. 但是,我找不到任何能让我将两者结合起来的搜索功能。 Am I missing something, or am I trying to use the tool incorrectly? 我错过了什么,还是我试图错误地使用该工具?

You can use org-agenda-filter-apply. 您可以使用org-agenda-filter-apply。 In addition, I found it useful to hide tags in the agenda for current day or week. 此外,我发现在当前或一周的议程中隐藏标签很有用。 As the result you have something like that. 结果你有类似的东西。

(setq org-agenda-custom-commands
      `(("o" "tasks with tag1"
         ((org-agenda-list)
          (org-agenda-filter-apply ,(list "+tag1")))
         ((org-agenda-remove-tags t)))
        ("d" "tasks with tag2"
         ((org-agenda-list)
          (org-agenda-filter-apply ,(list "+tag2")))
         ((org-agenda-remove-tags t)))
        ))

You show tasks with tag1 using Ctrl-ao and tasks with tag2 using Ctrl-ad 您可以使用Ctrl-ao使用tag1显示任务,使用Ctrl-ad显示带有tag2的任务

The org-agenda-list is meant to do this. org-agenda-list旨在实现这一目标。 You can invoke it with Cc aa . 你可以用Cc aa来调用它。 It displays the agenda for the week, which includes all tasks that are due in the week or are overdue. 它显示本周的议程,其中包括本周到期或逾期的所有任务。 You can narrow it down to see all tasks scheduled today, due today and all tasks overdue by pressing d Further, if you only wish to see tasks with a particular tag, you can do so by pressing / and choosing the tag you want to see. 你可以缩小它以查看今天到期的所有任务,今天到期以及按d所有任务都已过期。此外,如果您只希望查看具有特定标记的任务,可以按/并选择要查看的标记。

This way you'll get what you want. 这样你就可以得到你想要的东西。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM