emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Noah Slater <nslater@tumbolia.org>
To: Bastien <bzg@gnu.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: Problem with org-clock-display
Date: Thu, 17 Apr 2014 12:56:11 +0200	[thread overview]
Message-ID: <CA+Y+444vsy72dW9pAPg7KVPSDeoLW_s=uyeOYnDoouwCfGscMg@mail.gmail.com> (raw)
In-Reply-To: <874n1s74bm.fsf@bzg.ath.cx>

[-- Attachment #1: Type: text/plain, Size: 3062 bytes --]

Thanks for this!

I've seen your comments on the time cookie thread. But I will pull the
org-clock-display comments here.

So, I have your changes locally, and I have a few comments.

A folded node looks like this:

* Node........................................ 02:10 ...

I was wondering if the "........................................" bit can
be hidden. Is there a font face to customise for this? I find it
distracting, especially with a big list of folded nodes.

The only problem then is: how do I match the times up with the nodes. I
guess this is the problem I was trying to solve with the clock cookies.

One option would be to highlight the time with a new face when the point is
on a node. Not sure about this though.

If the above is possible, then would it be possible to move that "..."
(after the clock total) to the left-hand side, so that it looks like this:

* Node...                                      02:10

i.e. What it normally looks like. Only with a "02:10" on the right hand
side.

The only other thing I'd want to change is the alignment of the times.

So right now, we have:

2d 18:10
7:30
11:32

(For instance.)

It would be great if these could be aligned so that:

- The ":" ran down the middle (single column)
- The hours were zero padded, so it was "07" and not "7"
- There was some padding for days

i.e. If there are no days, you add the space necessary so that the clock
time aligns with other nodes that have days.

Not sure how to calculate this. Perhaps it's possible to calculate the max
clock value before display, and pad everything to the width of that.

One radical alternative to all of the above:

Remove the "..................." stuff. Don't align the times. Just stick
them right after the node text, like a cookie.

As I say: I am more than happy to actually work on the patches necessary to
make these changes


On 17 April 2014 10:22, Bastien <bzg@gnu.org> wrote:

> Hi Noah,
>
> Noah Slater <nslater@tumbolia.org> writes:
>
> > Note:
> >
> > - Times are indented like the nodes, meaning they don't line up. (I
> > presume this is intentional, but I find it annoying. Is there a way
> > to turn it off?)
>
> Fixed.
>
> > - Everything is highlighted with yellow. Is this intentional? Can I
> > turn it off?
>
> M-x customize-face RET org-clock-display RET
>
> I changed from yellow to gray.
>
> > - Why are some of the times blue and some white. Can I turn this off?
>
> Because the face inherited from the headline face.
> I changed it by specified a foreground.
>
> > - Why are some of the "..." bits visible (in blue) and invisible (in
> > white for the subnodes) and can I turn these off, or hide them
> > consistently?
> >
> > - Would there be any way to move the black "..." bit meaning "this
> > node can be expanded" to the very left, where it usually is, and then
> > hide the rest?
>
> The "..." folding indicator is always on the right, not sure what you
> mean.
>
> > - Why can't I edit node names when this is active?
>
> Because the display is temporary and uses overlays.
>
> --
>  Bastien
>

[-- Attachment #2: Type: text/html, Size: 4436 bytes --]

  reply	other threads:[~2014-04-17 10:56 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-07 15:55 Problem with org-clock-display Noah Slater
2014-04-17  8:22 ` Bastien
2014-04-17 10:56   ` Noah Slater [this message]
2014-04-17 11:12     ` Bastien
2014-04-17 11:37       ` Noah Slater
2014-04-17 11:43         ` Bastien
2014-04-17 11:53           ` Noah Slater
2014-04-17 12:28             ` Bastien
2014-04-18 13:51   ` Sebastien Vauban
2014-04-18 14:41     ` Bastien
2014-04-18 15:03       ` Sebastien Vauban
2014-04-18 15:57         ` Noah Slater
2014-04-19  5:18         ` Bastien
2014-04-20  8:48           ` Noah Slater
2014-04-20  9:02             ` Bastien
2014-04-20  9:18               ` Noah Slater
2014-04-20  9:24                 ` Bastien
2014-04-20 10:45                   ` Sebastien Vauban
2014-04-20 12:30                     ` Bastien
2014-04-20 12:58                       ` Noah Slater
2014-04-20 13:12                         ` Bastien

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='CA+Y+444vsy72dW9pAPg7KVPSDeoLW_s=uyeOYnDoouwCfGscMg@mail.gmail.com' \
    --to=nslater@tumbolia.org \
    --cc=bzg@gnu.org \
    --cc=emacs-orgmode@gnu.org \
    /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).