From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Loris Bennett" Subject: Re: Syntax for tags-todo in org-agenda-custom-commands Date: Fri, 08 Jul 2011 15:40:47 +0200 Message-ID: <87mxgo7uw0.fsf@slate.zedat.fu-berlin.de> References: <87zkkq5lpv.fsf@slate.zedat.fu-berlin.de> <87sjqh5gpy.fsf@gnu.org> <877h7t9i2z.fsf@slate.zedat.fu-berlin.de> <87d3hluenc.fsf@mean.albasani.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:50332) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QfBIn-0003vv-Go for emacs-orgmode@gnu.org; Fri, 08 Jul 2011 09:41:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QfBIl-0000rw-1n for emacs-orgmode@gnu.org; Fri, 08 Jul 2011 09:41:05 -0400 Received: from lo.gmane.org ([80.91.229.12]:51274) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QfBIk-0000rn-Mm for emacs-orgmode@gnu.org; Fri, 08 Jul 2011 09:41:03 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QfBIi-0007qy-76 for emacs-orgmode@gnu.org; Fri, 08 Jul 2011 15:41:00 +0200 Received: from slate.zedat.fu-berlin.de ([160.45.11.34]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Jul 2011 15:41:00 +0200 Received: from loris.bennett by slate.zedat.fu-berlin.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Jul 2011 15:41:00 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Memnon Anon writes: > "Loris Bennett" writes: > >>>> What should the correct syntax be and where is it described? >>> >>> Did you look in the manual? What is missing? >> >> I looked here >> >> http://orgmode.org/manual/Block-agenda.html#Block-agenda >> > > ,----[ C-h v org-agenda-custom-commands ] > | match What to search for: > | - a single keyword for TODO keyword searches > !!] - a tags match expression for tags searches [ !! > | - a word search expression for text searches. > | - a regular expression for occur searches > | For all other commands, this should be the empty string. > `---- > => > ,----[ (info "(org)Matching tags and properties") ] > | A search string can use Boolean operators `&' for AND and `|' for OR. > | `&' binds more strongly than `|'. > !!] Parentheses are currently not implemented. [!! > | > `---- > > ("Z" "Test home" > ((agenda "") > (tags-todo "+home+project|+home+task"))) > ("Y" "Test work" > ((agenda "") > (tags-todo "+office+project|+office+task"))) > > seems to work? > > Memnon > Thanks, I was just being a bit dopey. I had already woken up a bit and come up with (tags-todo "+office+CATEGORY=\"project\"|+office+CATEGORY=\"task\") I think maybe I need to start a new thread some time about generally approaches to using tags vs. categories. I am sure there must a few fairly standard idioms that people are using. Cheers Loris -- Dr. Loris Bennett (Mr.) ZEDAT, Freie Universität Berlin Email loris.bennett@fu-berlin.de