本文介绍了Emacs组织模式议程按业主过滤的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以根据所有者属性过滤emacs中的日程表?

Is it possible to filter agenda in emacs based on Owner property?

目前,我使用标签设置TODO项目的所有者。这样我可以通过这样的标签过滤日程:

Currently I use tags to set owner of TODO items. 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)))
    ))

使用标签来标记所有者是不方便的,但是我看不到其他方法可以通过Owner过滤TODO项目。

It's not convenient to use tags to mark the owner but I see no other way to filter TODO items by Owner.

推荐答案

这在我的.emacs中对我有用:

This worked for me in my .emacs:

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

我的属性是大写,但您需要使用 + Owner = methinks。

My properties are upper-case though so you'd need to use +Owner= methinks.

您还可以通过以下方式调用自己的自定义搜索:

You could also invoke your own custom search by doing:

C-c a m +Owner="foobar"

(假设您有Cc绑定到组织议程

(assuming you have C-c a bound to org-agenda.

我正在运行组织模式6.27a。对于什么是值得的,我不太清楚如何首先执行此操作,但非常有帮助。

I'm running org-mode 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.

这篇关于Emacs组织模式议程按业主过滤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 11:38