From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Pohlack Subject: Re: Partial tags match in custom agenda? Date: Thu, 14 Jan 2010 15:23:22 +0100 Message-ID: <4B4F28DA.9030208@os.inf.tu-dresden.de> References: <87vdf5ymo9.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NVQbm-0005fu-2J for emacs-orgmode@gnu.org; Thu, 14 Jan 2010 09:23:34 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NVQbg-0005dp-VY for emacs-orgmode@gnu.org; Thu, 14 Jan 2010 09:23:33 -0500 Received: from [199.232.76.173] (port=44419 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NVQbg-0005dc-Pp for emacs-orgmode@gnu.org; Thu, 14 Jan 2010 09:23:28 -0500 Received: from os.inf.tu-dresden.de ([141.76.48.99]:56189) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NVQbg-0003bL-6d for emacs-orgmode@gnu.org; Thu, 14 Jan 2010 09:23:28 -0500 In-Reply-To: <87vdf5ymo9.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Paul Mead Cc: emacs-orgmode@gnu.org 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>\"\"" ((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>\"\"" ((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