From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Suggestion: Weektree Date: Tue, 1 Oct 2013 10:43:26 -0500 Message-ID: References: <524A9FE4.1060104@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35226) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VR26m-00033w-KQ for emacs-orgmode@gnu.org; Tue, 01 Oct 2013 11:43:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VR26j-0007oe-31 for emacs-orgmode@gnu.org; Tue, 01 Oct 2013 11:43:32 -0400 Received: from mail-la0-x22d.google.com ([2a00:1450:4010:c03::22d]:63579) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VR26i-0007o1-Ow for emacs-orgmode@gnu.org; Tue, 01 Oct 2013 11:43:29 -0400 Received: by mail-la0-f45.google.com with SMTP id eh20so6080292lab.32 for ; Tue, 01 Oct 2013 08:43:26 -0700 (PDT) In-Reply-To: <524A9FE4.1060104@gmail.com> 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: Anders Johansson Cc: emacs-orgmode On Tue, Oct 1, 2013 at 5:11 AM, Anders Johansson wrote: > Greetings, > It's very nice to keep a journal in a datetree (using the capture mechanism) > but for my uses it would actually be even more useful to keep it in a > /weektree/. Something like this: > > * 2013 > ** W39 (September 23 - September 29) > *** 2013-09-23 Monday > **** note 1 > **** note 2 > *** 2013-09-24 Tuesday > *** 2013-09-25 Wednesday > ** W52 (December 23 - December 29) > *** 2013-09-25 Wednesday > **** Christmas, no work done. > * 2014 > ** W1 (December 30 - January 5) > *** 2013-09-31 Tuesday > **** New year's eve party! > > (with names of months and days localised as usual) > [snip] Not quite what you want, but I was looking for how to customize the datetree using a capture template a bit back and made some decent progress. You might want to check out those threads. All you should need to do is figure out how to convert a date range (wherever you are in the current week) to a week number and then supply the supplementary start/stop days for the week in parentheses. I think I did have issues capturing to a non-existing top level tree; as in I think I had to pre-populate my year-month headline, and *then* I could capture my individual days to it. Anyway, give these a reading: - http://osdir.com/ml/emacs-orgmode-gnu/2012-08/msg00396.html - http://lists.gnu.org/archive/html/emacs-orgmode/2012-08/msg01174.html Best regards, John