[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Displaying day-resources (or a secondary time-line)

From: Carsten Dominik
Subject: Re: [Orgmode] Displaying day-resources (or a secondary time-line)
Date: Wed, 12 May 2010 16:52:20 +0200

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

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
  :CATEGORY: On_Holiday
%%(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


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.


- Carsten

reply via email to

[Prev in Thread] Current Thread [Next in Thread]