From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Automatically tag an item if direct child of a specific list Date: Thu, 30 Jul 2009 17:36:59 -0400 Message-ID: <87r5vxzwck.fsf@gollum.intra.norang.ca> References: <1e5bcefd0907301422q76a1a3eem1bd8bf7ffa4b4fd4@mail.gmail.com> 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 1MWdJD-0004dh-34 for emacs-orgmode@gnu.org; Thu, 30 Jul 2009 17:37:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWdJ8-0004dK-Nq for emacs-orgmode@gnu.org; Thu, 30 Jul 2009 17:37:05 -0400 Received: from [199.232.76.173] (port=60237 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWdJ8-0004dH-Gy for emacs-orgmode@gnu.org; Thu, 30 Jul 2009 17:37:02 -0400 Received: from mho-01-ewr.mailhop.org ([204.13.248.71]:54045) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MWdJ8-0005EM-5j for emacs-orgmode@gnu.org; Thu, 30 Jul 2009 17:37:02 -0400 In-Reply-To: <1e5bcefd0907301422q76a1a3eem1bd8bf7ffa4b4fd4@mail.gmail.com> (Marcelo de Moraes Serpa's message of "Thu\, 30 Jul 2009 16\:22\:06 -0500") 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: Marcelo de Moraes Serpa Cc: emacs-orgmode@gnu.org Marcelo de Moraes Serpa writes: > Hello list -- here goes a quick crazy question: > > Is there a way to extend org in a way that, whenever I write/add a new > item as a direct child of a Projects list, it will tag this item as > :PROJECT: automatically ? This could happen when I press enter or if I > enter the item through another command (instead of writing it directly > in the buffer -- like when refiling). Tags are normally inherited - so if you tag the parent task with :PROJECT: then ALL tasks under that will inherit the :PROJECT: tag. There's no need to tag everything under it with the :PROJECT: tag. Alternatively if you keep all of your projects in a separate projects.org file you can add a FILETAGS entry that puts the :PROJECT: tag on every entry in that file. This way your child task is part of a project or not based on where it is currently. You're free to refile it somewhere else (that is not a project) and it loses it's project tag. HTH, Bernt