From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Spiers Subject: Re: property searches for #+CATEGORY Date: Wed, 7 Nov 2007 13:34:04 +0000 Message-ID: <20071107133404.GL13544@atlantic.linksys.moosehall> References: <20071107111730.GH13544@atlantic.linksys.moosehall> <3d6808890711070523u50bd8bbp963960978171e132@mail.gmail.com> Reply-To: Adam Spiers Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ipl2o-0007gZ-5X for emacs-orgmode@gnu.org; Wed, 07 Nov 2007 08:34:10 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ipl2n-0007gG-FB for emacs-orgmode@gnu.org; Wed, 07 Nov 2007 08:34:09 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ipl2n-0007gB-85 for emacs-orgmode@gnu.org; Wed, 07 Nov 2007 08:34:09 -0500 Received: from mail.beimborn.com ([70.84.38.100]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ipl2m-0000lt-TB for emacs-orgmode@gnu.org; Wed, 07 Nov 2007 08:34:09 -0500 Received: from mail.beimborn.com (localhost.localdomain [127.0.0.1]) by mail.beimborn.com (8.12.11.20060308/8.12.8) with ESMTP id lA7DY739022849 for ; Wed, 7 Nov 2007 07:34:07 -0600 Received: from localhost (localhost [[UNIX: localhost]]) by mail.beimborn.com (8.12.11.20060308/8.12.11/Submit) id lA7DY7XF022844 for emacs-orgmode@gnu.org; Wed, 7 Nov 2007 13:34:07 GMT Content-Disposition: inline In-Reply-To: <3d6808890711070523u50bd8bbp963960978171e132@mail.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: org-mode mailing list On Wed, Nov 07, 2007 at 02:23:12PM +0100, Tim O'Callaghan wrote: > On 07/11/2007, Adam Spiers wrote: > > I have several personal .org files, and several work-related ones too. > > In each personal file, I have a line: > > > > #+CATEGORY: personal > > > > and in each work-related file, I have a line: > > > > #+CATEGORY: work > > > > I would like to be able to bind agenda custom commands to do tag > > searches which are narrowed to one of these categories, e.g. "show me > > all personal priority #A tasks". Such a search needs to span *all* > > agenda files, therefore the standard per-buffer narrowing provided by > > the '<' binding in the *Agenda Commands* buffer is insufficient. > > > > Would it make sense to include CATEGORY as a special property? After > > all, pretty much all other per-task meta-data ("TODO", "PRIORITY" > > etc.) are already available via the property interface, and this way, > > I could easily achieve what I need with tag searches such as > > > > CATEGORY="personal"+PRIORITY="A" > > > > Thanks! > > It would seem to me that this is exactly what tags does. > You could move everything down a level and use tag inheritance: > * personal stuff :personal: > * work stuff :work: I could, but this would mean that each file would have a single top-level entry, and the entire contents would be indented an extra level, which I fear is a rather unattractive solution!