* Partial tags match in custom agenda?
@ 2010-01-14 11:02 Paul Mead
2010-01-14 14:23 ` Martin Pohlack
0 siblings, 1 reply; 3+ messages in thread
From: Paul Mead @ 2010-01-14 11:02 UTC (permalink / raw)
To: emacs-orgmode
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.
Thanks
Paul
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Partial tags match in custom agenda?
2010-01-14 11:02 Partial tags match in custom agenda? Paul Mead
@ 2010-01-14 14:23 ` Martin Pohlack
2010-01-14 16:58 ` Paul Mead
0 siblings, 1 reply; 3+ messages in thread
From: Martin Pohlack @ 2010-01-14 14:23 UTC (permalink / raw)
To: Paul Mead; +Cc: emacs-orgmode
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Partial tags match in custom agenda?
2010-01-14 14:23 ` Martin Pohlack
@ 2010-01-14 16:58 ` Paul Mead
0 siblings, 0 replies; 3+ messages in thread
From: Paul Mead @ 2010-01-14 16:58 UTC (permalink / raw)
To: Martin Pohlack; +Cc: emacs-orgmode
Martin Pohlack <mp26@os.inf.tu-dresden.de> writes:
> Hi Paul,
>
> 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
Thanks Martin, this has been very useful - I didn't know about the
regexp thing, I'm sure I'm going to use it elsewhere!
Paul
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-01-14 16:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-14 11:02 Partial tags match in custom agenda? Paul Mead
2010-01-14 14:23 ` Martin Pohlack
2010-01-14 16:58 ` Paul Mead
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).