emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Sven Bretfeld <sven.bretfeld@gmx.ch>
Cc: emacs-org <emacs-orgmode@gnu.org>
Subject: Re: Displaying day-resources (or a secondary time-line)
Date: Wed, 12 May 2010 16:52:20 +0200	[thread overview]
Message-ID: <D8C90D51-C11B-49BA-891B-39D9D2781F8C@gmail.com> (raw)
In-Reply-To: <87vdays499.fsf@gmx.ch>

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

  parent reply	other threads:[~2010-05-12 14:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-08 17:16 Displaying day-resources (or a secondary time-line) Sven Bretfeld
2010-05-11 21:23 ` Sven Bretfeld
2010-05-11 23:11   ` Daniel Martins
2010-05-12 14:52 ` Carsten Dominik [this message]
2010-05-17 23:01   ` Sven Bretfeld
2010-05-18  5:59     ` Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=D8C90D51-C11B-49BA-891B-39D9D2781F8C@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=sven.bretfeld@gmx.ch \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).