[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Partial tags match in custom agenda?
From: |
Martin Pohlack |
Subject: |
Re: [Orgmode] Partial tags match in custom agenda? |
Date: |
Thu, 14 Jan 2010 15:23:22 +0100 |
User-agent: |
Thunderbird 2.0.0.23 (X11/20090817) |
Hi Paul,
Paul Mead wrote:
> Hi
>
> I have a convention in my org file which uses @name as a gtd-type
> 'agenda' item, so if an action is related to Liz, I tag it with @liz for
> example.
>
> Is there any way of matching that '@' in setting up a custom agenda
> view? I'd like if possible to have a block agenda view which lists all
> of my @liz, @bob, @joe - type items in one view, rather than having to
> maintain a list of all the possible names in the block agenda setup.
You can do regexp matching on tags. My agenda tags all start with ag_
(for people), agM_ (meetings) or agC_ (calls).
This snippet from my org-agenda-custom-commands shows how to use this:
(tags "{^ag[MC]_.*}-maybe-TODO=\"\"-SCHEDULED>\"<today>\""
((org-agenda-overriding-header "Agendas (regular):")
(org-agenda-sorting-strategy
'(tag-up))
(org-agenda-skip-function
'(org-agenda-skip-subtree-if 'regexp "^\\*+
\\(DONE\\|CANC\\|CONT\\|PROJ\\|MAYBE\\) "))))
(tags "{^ag_.*}-maybe-TODO=\"\"-SCHEDULED>\"<today>\""
((org-agenda-overriding-header "Agendas (non-regular):")
(org-agenda-sorting-strategy
'(tag-up))
(org-agenda-skip-function
'(org-agenda-skip-subtree-if 'regexp "^\\*+
\\(DONE\\|CANC\\|CONT\\|PROJ\\|MAYBE\\) "))))
Cheers,
Martin