Re: [Orgmode] Clean Org Clock with step

2009-08-03 Thread Carsten Dominik


On Jul 23, 2009, at 12:10 AM, meingbg wrote:

When using the :step day option in the clocktable, every day gets  
it's own table. This is a great option! It can however easily be a  
lot of tables, even if there's not too much information. Say for  
example there are only items in two out of thirty tables.


Is there an option to show only non-empty tables? If not, would it  
be a good idea to add such an option?


This is a good idea, but hard to implement.  To justify the effort,
you'd need to get a lot more support from others.

The easy thing I could do it to provide a hook, and you write a
function for that hook to do the cleaning up.

- Carsten



//M.G.
___
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




___
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


Re: [Orgmode] Clean Org Clock with step

2009-07-25 Thread Bastien
meingbg mein...@gmail.com writes:

 Just looking at the output, maybe this could be implemented as a regexp 
 replace
 on the entire block performed after putting together the tables? Just thinking
 it might save you some headache, if you don't think it's too ugly of a hack.

Well, it *is* to ugly of a hack, but here it is:

(defun my-org-remove-empty-daily-clock-report ()
  Remove empty daily clock reports
  (interactive)
  (while (re-search-forward ^Daily report:.*$ nil t)
(let ((beg0 (match-beginning 0))
  (beg1 (1+ (match-end 0)))
  (end (save-excursion 
 (re-search-forward ^$\\|^#\\+END.* nil t)
 (match-beginning 0
  (when (re-search-forward Total time.*0:00 end t)
(delete-region beg0 end)
(delete-char -1)

It will definitely not make its way thru Org, we need a mechanism that
prevents the display of empty report instead.

 And while I'm at it - my employer requires me to report not only what I'm 
 doing
 and how long it takes, but also when I'm doing it. I assume most people
 wouldn't benefit from a feature like this, and that there are many other 
 things
 on the wish list with higher priority, so I'm just asking if someone could
 point out an API guide or something like that, it would be wonderful.

That makes sense...

-- 
 Bastien


___
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


Re: [Orgmode] Clean Org Clock with step

2009-07-25 Thread Bastien
meingbg mein...@gmail.com writes:

 And while I'm at it - my employer requires me to report not only what I'm 
 doing
 and how long it takes, but also when I'm doing it. I assume most people
 wouldn't benefit from a feature like this, and that there are many other 
 things
 on the wish list with higher priority, so I'm just asking if someone could
 point out an API guide or something like that, it would be wonderful.

I've implemented this.  

You can use an option like :timestamp t in the clock report and
a timestamp will be inserted.  It looks for SCHEDULED, TIMESTAMP,
DEADLINE and TIMESTAMP_IA -- in this order.

Thanks for this idea!

-- 
 Bastien


___
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


Re: [Orgmode] Clean Org Clock with step

2009-07-24 Thread meingbg
Thank you, this one would save my eyes a bit!

Just looking at the output, maybe this could be implemented as a regexp
replace on the entire block performed after putting together the tables?
Just thinking it might save you some headache, if you don't think it's too
ugly of a hack.

And while I'm at it - my employer requires me to report not only what I'm
doing and how long it takes, but also when I'm doing it. I assume most
people wouldn't benefit from a feature like this, and that there are many
other things on the wish list with higher priority, so I'm just asking if
someone could point out an API guide or something like that, it would be
wonderful.

Thanks again!

//meingbg

On Thu, Jul 23, 2009 at 6:30 PM, Bastien bastiengue...@googlemail.comwrote:

 meingbg mein...@gmail.com writes:

  When using the :step day option in the clocktable, every day gets it's
 own
  table. This is a great option! It can however easily be a lot of tables,
 even
  if there's not too much information. Say for example there are only items
 in
  two out of thirty tables.
 
  Is there an option to show only non-empty tables? If not, would it be a
 good
  idea to add such an option?

 Yes, I think it would be a good idea.

 I've been looking into the code for this, but this is not trivial.
 I let Carsten sort this out :)

 --
  Bastien

___
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


Re: [Orgmode] Clean Org Clock with step

2009-07-23 Thread Bastien
meingbg mein...@gmail.com writes:

 When using the :step day option in the clocktable, every day gets it's own
 table. This is a great option! It can however easily be a lot of tables, even
 if there's not too much information. Say for example there are only items in
 two out of thirty tables.

 Is there an option to show only non-empty tables? If not, would it be a good
 idea to add such an option?

Yes, I think it would be a good idea.

I've been looking into the code for this, but this is not trivial.
I let Carsten sort this out :)

-- 
 Bastien


___
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


[Orgmode] Clean Org Clock with step

2009-07-22 Thread meingbg
When using the :step day option in the clocktable, every day gets it's own
table. This is a great option! It can however easily be a lot of tables,
even if there's not too much information. Say for example there are only
items in two out of thirty tables.

Is there an option to show only non-empty tables? If not, would it be a good
idea to add such an option?

//M.G.
___
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