From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Lazy project definitions Date: Mon, 17 May 2010 11:43:17 +0200 Message-ID: <2C475BA4-862D-434D-A123-8AADAF8A8EB2@gmail.com> References: <878w7jbl6m.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=33817 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ODwr6-0003Se-5x for emacs-orgmode@gnu.org; Mon, 17 May 2010 05:43:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ODwr4-0001wQ-Ho for emacs-orgmode@gnu.org; Mon, 17 May 2010 05:43:24 -0400 Received: from mail-wy0-f180.google.com ([74.125.82.180]:38758) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ODwr4-0001wI-Bs for emacs-orgmode@gnu.org; Mon, 17 May 2010 05:43:22 -0400 Received: by wyb32 with SMTP id 32so231478wyb.39 for ; Mon, 17 May 2010 02:43:19 -0700 (PDT) In-Reply-To: <878w7jbl6m.fsf@gollum.intra.norang.ca> 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: Bernt Hansen Cc: emacs-orgmode@gnu.org Hi Bernt, I guess you can use the regexp options, both in the stuck projects, and in a skipping condition for an agenda custom command. In the stuck project definition, adding "^\\*\\{3,\\}" as the 4th element should exclude anything that has level 3 or up in the subtree. for the agenda commands, (org-skip-subtree-if 'regexp "\\*\\{3,\\}") or so should take care of it, am I right? - Carsten On for 16, 2010, at 11:17 PM, Bernt Hansen wrote: > Hi, > > I've been using the definition that all LEVEL 2 tasks are projects > for a > long time. Recently I tried switching to explicitly marked projects > using a :project: tag (or PROJECT keyword) but I really dislike having > to manually mark projects in my task lists. > > A project for me is basically any LEVEL 2 task that has one or more > subtasks. > > I would like to define my org stuck projects as LEVEL=2/!-DONE- > CANCELLED > with an added skipping function that does not consider level 2 tasks > if > they have no children. I can't figure out how to make this work in > the > org-agenda-custom-commands using the skipping function but I think it > should be possible. > > My goal here is to add 2 custom agenda commands: > p - show me projects (level 2 tasks not completed with children) > o - show me other (non-project) tasks (level 2 tasks without > children) > > I don't want the 'o' - other tasks listed in my stuck projects view > since these are really one-task items and are not a project by my > simplistic definition above. > > I've been using everything as a project that is defined at LEVEL 2 for > ages and that works really well for me -- except I want to stop > spending > any time dealing with simple (non-project) tasks when looking for next > tasks and stuck projects. Sure I could manually mark my tasks as > projects but I don't think that should really be necessary for what I > want to do here... and if it could just say a LEVEL 2 task with > children > is a project it would work automagically for me without any additional > input. > > For simple non-project tasks I don't need to mark them as NEXT to make > them unstuck -- they aren't projects to begin with and I can have > a convenient way to view all of these simple non-project commands in > the > agenda using the 'o' custom command. > > Is there a way to this? > > Thanks, > Bernt > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten