[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] A custom agenda view for archivable non-project tasks?
From: |
Matt Lundin |
Subject: |
Re: [O] A custom agenda view for archivable non-project tasks? |
Date: |
Mon, 21 May 2012 18:28:21 -0500 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux) |
Laurynas Biveinis <address@hidden> writes:
> I am trying to implement the following but I am not really getting
> anywhere. I want to have a block in a custom agenda that lists all
> "archivable" tasks, where "archivable" means in any of "done" states
> and not in a project. In my system projects are subtrees that have
> 'project' tag associated with them. This tag is non-inheritable and
> I'd rather keep it that way.
>
> So I would like to have a way to list all items in a done state where
> there is no 'project' tag on it nor in any of its (indirect) parents.
Does the following work?
--8<---------------cut here---------------start------------->8---
(org-add-agenda-custom-command
'("x" "Archivable"
((tags "-project/DONE"
((org-use-tag-inheritance '("project")))))))
--8<---------------cut here---------------end--------------->8---
The local org-use-tag-inheritance binding should override your other
tag inheritance settings for this search only.
Best,
Matt