emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Org Mode <emacs-orgmode@gnu.org>
Cc: Rainer Stengele <rainer.stengele@diplan.de>
Subject: New clocktable code
Date: Tue, 2 Nov 2010 09:40:24 +0100	[thread overview]
Message-ID: <D0F126E3-5DB0-4337-86F1-D8133898C626@gmail.com> (raw)

Hi everyone,

I have just pushed a rewrite of the clocktable code.

It has more options now, and most importantly the code is
*much* cleaner.  In particular, data collection and formatting
are now clearly separated.  Anyone who would like to hack now
actually has a chance to do so in a correct way (well, Adam
Elliot succeeded anyway with the old code when he implemented
tags filtering, but that was a strike of genius....)

Here are the new properties:

      :narrow      An integer to limit the width of the headline  
column in
                   the org table.  Does not work together with `:link'.
                   If you write it like `50!', then the headline will be
                   be shortened literally, so that this will also work
                   in export and with `:link'.
      :indent      Indent each headline field according to its level.
                   This is done by a funny string like \____, but it
                   looks OK and works in export.
      :tcolumns    Number of columns to be used for times.  If this is  
smaller
                   than `:maxlevel', lower levels will be lumped into  
one column.
                   For best result, combine this with :intent t
      :level       Should a level number column be included?
      :compact     Abbreviation for `:level nil :indent t :narrow  
40! :tcolumns 1'
                   All are overwritten except if there is an explicit  
`:narrow'
      :formatter   A function to format clock data and insert it into  
the buffer.
                   Use this to make your own formatting all together.

There is a new variable `org-clock-table-defaults' where you can
specify defaults for all clocktable properties.

Since this is a rewrite, it would be very useful if a few people who
have been using clock tables in the past try this code and check if
they get the same results.

Thanks to Rainer Stengele for pushing me far enough to
finally tackle this mess and rewrite it.

- Carsten

             reply	other threads:[~2010-11-02 13:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-02  8:40 Carsten Dominik [this message]
2010-11-02 19:35 ` New clocktable code Ilya Shlyakhter
2010-11-02 22:11   ` Carsten Dominik
2010-11-03 16:29     ` Ilya Shlyakhter

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=D0F126E3-5DB0-4337-86F1-D8133898C626@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=rainer.stengele@diplan.de \
    /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).