简体   繁体   English

Emacs组织模式议程所有者过滤

[英]Emacs org-mode agenda filter by owner

Is it possible to filter agenda in emacs based on Owner property? 是否可以根据Owner属性过滤emacs中的议程?

Currently I use tags to set owner of TODO items. 目前,我使用标签来设置TODO项目的所有者。 This way I can filter agenda by tags like this: 这样,我可以按如下标记过滤议程:

(setq org-agenda-custom-commands
  `(("o" "tasks for oleg"
     ((org-agenda-list)
      (org-agenda-filter-apply ,(list "+oleg")))
     ((org-agenda-remove-tags t)))
    ("k" "tasks for karl"
     ((org-agenda-list)
      (org-agenda-filter-apply ,(list "+karl")))
     ((org-agenda-remove-tags t)))
    ))

It's not convenient to use tags to mark the owner but I see no other way to filter TODO items by Owner. 使用标记标记所有者并不方便,但我看不到其他任何方法可以通过所有者过滤TODO项目。

This worked for me in my .emacs: 这在我的.emacs中为我工作:

(setq org-agenda-custom-commands
   (quote (("s" "tasks for Seth" tags "+OWNER=\"seth\"" nil))))

My properties are upper-case though so you'd need to use +Owner= methinks. 我的属性是大写的,因此您需要使用+Owner= methinks。

You could also invoke your own custom search by doing: 您还可以通过执行以下操作来调用自己的自定义搜索:

C-c a m +Owner="foobar"

(assuming you have Cc a bound to org-agenda. (假设您的抄送绑定到了org-agenda.

I'm running org-mode 6.27a. 我正在运行组织模式6.27a。 For what it's worth, I wasn't quite sure how to do this at first but the worg page about custom commands was very helpful. 对于它的价值,我一开始不确定如何执行此操作,但是有关自定义命令worg页面非常有帮助。

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

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