From mboxrd@z Thu Jan 1 00:00:00 1970 From: Noah Slater Subject: Re: Problem with org-clock-display Date: Thu, 17 Apr 2014 12:56:11 +0200 Message-ID: References: <874n1s74bm.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf305b13de9002ea04f73ae103 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56476) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WajzM-0007ip-V9 for emacs-orgmode@gnu.org; Thu, 17 Apr 2014 06:56:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WajzI-0001em-82 for emacs-orgmode@gnu.org; Thu, 17 Apr 2014 06:56:16 -0400 Received: from mail-yh0-x229.google.com ([2607:f8b0:4002:c01::229]:54765) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WajzI-0001ea-2u for emacs-orgmode@gnu.org; Thu, 17 Apr 2014 06:56:12 -0400 Received: by mail-yh0-f41.google.com with SMTP id i57so190333yha.0 for ; Thu, 17 Apr 2014 03:56:11 -0700 (PDT) In-Reply-To: <874n1s74bm.fsf@bzg.ath.cx> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: emacs-orgmode@gnu.org --20cf305b13de9002ea04f73ae103 Content-Type: text/plain; charset=ISO-8859-1 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 wrote: > Hi Noah, > > Noah Slater 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 > --20cf305b13de9002ea04f73ae103 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Thanks for this!

I've seen your com= ments on the time cookie thread. But I will pull the org-clock-display comm= ents 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 f= ind it distracting, especially with a big list of folded nodes.

The only problem then is: how do I match the times up w= ith the nodes. I guess this is the problem I was trying to solve with the c= lock cookies.

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

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... =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A002:10

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

The only other th= ing 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 &= quot;7"
- There was some padding for days

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

<= div>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.<= /div>

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.o= rg> wrote:
Hi Noah,

Noah Slater <nslater@tumbolia.or= g> 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?<= br>
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 invis= ible (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 sur= e what you
mean.

> - Why can't I edit node names when this is active?

Because the display is temporary and uses overlays.

--
=A0Bastien

--20cf305b13de9002ea04f73ae103--