emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Deadline count down in working days
@ 2008-03-27 11:52 Rick Moynihan
  2008-03-28  8:11 ` Rainer Stengele
  2008-03-28 14:43 ` Carsten Dominik
  0 siblings, 2 replies; 3+ messages in thread
From: Rick Moynihan @ 2008-03-27 11:52 UTC (permalink / raw)
  To: emacs-orgmode

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!

R.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Deadline count down in working days
  2008-03-27 11:52 Deadline count down in working days Rick Moynihan
@ 2008-03-28  8:11 ` Rainer Stengele
  2008-03-28 14:43 ` Carsten Dominik
  1 sibling, 0 replies; 3+ messages in thread
From: Rainer Stengele @ 2008-03-28  8:11 UTC (permalink / raw)
  Cc: emacs-orgmode

Hi all again,

I also would like to see the work days at work and the "real" number of days at home ...
Maybe define a property which may be set in each agenda file as needed?

+1


rainer

Rick Moynihan schrieb:
> 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!
> 
> R.
> 
> 
> 
> 
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Deadline count down in working days
  2008-03-27 11:52 Deadline count down in working days Rick Moynihan
  2008-03-28  8:11 ` Rainer Stengele
@ 2008-03-28 14:43 ` Carsten Dominik
  1 sibling, 0 replies; 3+ messages in thread
From: Carsten Dominik @ 2008-03-28 14:43 UTC (permalink / raw)
  To: Rick Moynihan; +Cc: emacs-orgmode


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-03-28 14:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-27 11:52 Deadline count down in working days Rick Moynihan
2008-03-28  8:11 ` Rainer Stengele
2008-03-28 14:43 ` Carsten Dominik

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).