emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] Deadline count down in working days


From: Carsten Dominik
Subject: Re: [Orgmode] Deadline count down in working days
Date: Fri, 28 Mar 2008 15:43:59 +0100


On Mar 27, 2008, at 12:52 PM, Rick Moynihan wrote:

Hi all,

I realise this functionality is probably in org already, but I can't seem to find it mentioned anywhere (though perhaps I'm not looking very hard).

Currently when I look at my agenda I see this:

gtd:   In              5 d.:  TODO [#A] A particular work related task

The 5d countdown includes weekends however. Is it possible to get org to exclude weekends from these countdowns, so I know how many working days I have?

As I use org for both, personal and work related stuff what might be nice is if org could calculate work tasks in working-days and personal tasks in week-days for the agenda view e.g:

Thursday  27 March 2008
gtd: In 2 wd.: TODO [#A] A particular work related task :WORK: gtd: In 4 d. : TODO [#A] Arrange holiday insurance :PERSONAL:

Where both tasks would be due on the same day (Monday 31 March 2008). Here I've changed the suffix for the work task to wd to indicated working-days and left the d suffix to indicate days.

Thanks again!

Hmmm, I personally do not like this idea too much, I would find it confusing. And it is not easy to implement, because you might want to remove holidays as well etc.

So what I will do is give you a hook to customize this yourself:

(setq org-agenda-deadline-leaders '("Deadline: " my-org-deadline- leader))

where my-org-deadline-leader is a function that will return the correct
string that you would like to have as a leader. For inspiration and example,
here is on that gives the time in weeks or month if it is too long.


(defun org-deadline-leader (diff date)
  (cond
   ((> (abs diff) 61) (format "In %3d m.: " (/ diff 30.6)))
   ((> (abs diff) 21) (format "In %3d w.: " (/ diff 7.0)))
   (t (format "In %3d d.: " diff))))



This is in the git repo now.

- Carsten





reply via email to

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