From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcel van der Boom Subject: Re: GTD - Natural Planning Model properties - add automatically Date: Thu, 18 Oct 2012 08:50:46 +0200 Message-ID: <20121018085046.5232e07b@hsdev.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56028) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOjxJ-0006KW-Fb for emacs-orgmode@gnu.org; Thu, 18 Oct 2012 02:51:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TOjxD-0006Sz-Kw for emacs-orgmode@gnu.org; Thu, 18 Oct 2012 02:51:45 -0400 Received: from hawking.hsdev.com ([213.125.12.142]:46693) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOjxD-0006RW-Ea for emacs-orgmode@gnu.org; Thu, 18 Oct 2012 02:51:39 -0400 In-Reply-To: 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 On zo 14-okt-2012 09:06 Chris Henderson wrote: >I would like the project to automatically inherit a >few properties like: Purpose, Outcome, Todo's and also date when the >project was added to the list. For the last bit I use org-expiry.el with a little glue. The idea I wanted to implement was that when a TODO/PROJECT item was created, a property with the current date should be inserted automatically. The main feature I was looking for was creating a list of incomplete items sorted or grouped by that date. org-expiry.el contains the function, 'org-expiry-insert-created', to insert a 'created' property. To have that work the way I wanted it I added an advice to two functions. One to 'org-insert-todo-heading' to have the created property inserted when creating an new todo heading. The other advices 'org-capture' to do the same when capturing new todo items. The snippet which does the above is here: https://gist.github.com/3910203 marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV -- http://www.hsdev.com We use bitcoin! -- http://bitcoin.org