From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Displaying day-resources (or a secondary time-line) Date: Wed, 12 May 2010 16:52:20 +0200 Message-ID: References: <87vdays499.fsf@gmx.ch> 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=55935 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OCDIY-0006q6-Et for emacs-orgmode@gnu.org; Wed, 12 May 2010 10:52:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OCDIP-0004KE-HT for emacs-orgmode@gnu.org; Wed, 12 May 2010 10:52:34 -0400 Received: from mail-ew0-f216.google.com ([209.85.219.216]:39028) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OCDIP-0004K3-3D for emacs-orgmode@gnu.org; Wed, 12 May 2010 10:52:25 -0400 Received: by ewy8 with SMTP id 8so72788ewy.8 for ; Wed, 12 May 2010 07:52:23 -0700 (PDT) In-Reply-To: <87vdays499.fsf@gmx.ch> 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: Sven Bretfeld Cc: emacs-org Hi Sven, On May 8, 2010, at 7:16 PM, Sven Bretfeld wrote: > Hi all > > I'm looking for a way to display "dates" in the Agenda View which are > not appointments but, in GTD-speak, belong to the "availability of > resources". > > That's a little too abstract. A concrete example. Say, your > secretary is > on duty only Mondays and Wednesdays from 8:00 to 12:00 and Fridays > from > 8:00 to 10:00. This is a resource that enables or disables you to do > certain things. So you want to see these dates in your Day Agenda > View, > but not mixed with your own appointments. You'd rather have this > information at the end of the Day Agenda, maybe in a different color > and/or separated by a line, like this: > > Montag 10 Mai 2010 W19 > Office: 10:00-12:00 Meeting with the Boss > Lunch: 12:00-13:00 Meet Jens in the Pub > Teaching: 14:00-16:00 Lecture > Project_X: 16:00-18:00 Preparation Meeting > Leisure: 20:15 Cinema > ------------------------------------- /from here in a different > color/ > Office: 8:00-12:00 Secretary is present > Family: 14:00-20:00 Mary will not be at home > On_Holiday: Ina > > The last entry, which says that Ina is on holiday today, can > principally > be solved as: > > ** Holidays > :PROPERTIES: > :CATEGORY: On_Holiday > :END: > %%(diary-block 05 05 2010 14 05 2010) Ina You can also use diary sexp entries to also do the others, by checking for weekdays. See the examples in the FAQ http://orgmode.org/worg/org-faq.php#diary-sexp-in-org-files For example (untested) ** Secretary present 8:00-12:00 <%%(and (member (calendar-day-of-week date) '(1 3)))> As for sorting, I guess the easiest would be use a special tag and then a custom sorting strategy function in org-agenda-cmp-user-defined to sort these to the end of the agenda display. HTH - Carsten