Re: [O] Local COLUMNS and columnview block

2018-11-18 Thread Lele Gaifax
Nicolas Goaziou  writes:

> Lele Gaifax  writes:
>
>> As said, a the local COLUMNS setting is honored by the transient columns 
>> view,
>> but it is ignored by org-clock-report and org-dbclock-update.
>>
>> Am I doing something wrong or isn't it possible?
>
> COLUMNS property, or keyword, are not related to clocktable and such.
>
> Moreover, in the "columnview" dynamic block, you use ":id global", which
> means calling `org-columns' on the whole buffer, using global COLUMNS
> keyword.

Thanks for confirming that.

> You can use :format property to use the appropriate columns:
>
> :format "%40ITEM(Item) %13Effort(Effort){:} %CLOCKSUM(Spent)"
>

Nice, that fits my need, and I completely missed the ":format" argument!

Thanks a lot,
ciao, lele.
-- 
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
l...@metapensiero.it  | -- Fortunato Depero, 1929.




Re: [O] Local COLUMNS and columnview block

2018-11-17 Thread Nicolas Goaziou
Hello,

Lele Gaifax  writes:

> As said, a the local COLUMNS setting is honored by the transient columns view,
> but it is ignored by org-clock-report and org-dbclock-update.
>
> Am I doing something wrong or isn't it possible?

COLUMNS property, or keyword, are not related to clocktable and such.

Moreover, in the "columnview" dynamic block, you use ":id global", which
means calling `org-columns' on the whole buffer, using global COLUMNS
keyword.

You can use :format property to use the appropriate columns:

:format "%40ITEM(Item) %13Effort(Effort){:} %CLOCKSUM(Spent)"

Regards,

-- 
Nicolas Goaziou



Re: [O] Local COLUMNS and columnview block

2018-11-17 Thread Lele Gaifax
Sorry, hit C-c C-c in the wrong buffer...

Lele Gaifax  writes:

> The local property in the "Work" node is honored by org-columns (C-c C-x
> C-c),

As said, a the local COLUMNS setting is honored by the transient columns view,
but it is ignored by org-clock-report and org-dbclock-update.

Am I doing something wrong or isn't it possible?

Thank you,
ciao, lele.
-- 
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
l...@metapensiero.it  | -- Fortunato Depero, 1929.




[O] Local COLUMNS and columnview block

2018-11-17 Thread Lele Gaifax
Hi all,

I tried to use a local definition of the COLUMNS property and have a "private"
(that is, not exported to PDF) view of the time spent on something, something
like this:

# -*- coding: utf-8 -*-
#+TITLE: Test local columns
#+COLUMNS: %40ITEM(Item) %13Effort(Effort){:}

#+BEGIN: columnview :id global :maxlevel 1 :skip-empty-rows t
| Item| Effort | Spent |
|-++---|
| Preliminary |   1:00 |   |
#+END:

* Preliminary
  :PROPERTIES:
  :Effort:   1:00
  :END:
  :LOGBOOK:
  CLOCK: [2018-11-16 fri 09:40]--[2018-11-16 fri 10:00] =>  0:20
  :END:

* Soon
  :PROPERTIES:
  :Effort:   1:00
  :END:
  :LOGBOOK:
  CLOCK: [2018-11-16 fri 11:00]--[2018-11-16 fri 12:00] =>  1:00
  :END:

  #+BEGIN: columnview :id local :indent t :skip-empty-rows t
  | Item | Effort |
  |--+|
  | Soon |   1:00 |
  #+END:

* COMMENT Work
  :PROPERTIES:
  :COLUMNS:  %40ITEM(Item) %13Effort(Effort){:} %CLOCKSUM(Spent)
  :END:

  #+BEGIN: clocktable :scope file :maxlevel 2

  #+END:

  #+BEGIN: columnview :id global :indent t :skip-empty-rows t
  | Item| Effort |
  |-+|
  | Preliminary |   1:00 |
  | Soon|   1:00 |
  #+END:

The local property in the "Work" node is honored by org-columns (C-c C-x C-c), 
-- 
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
l...@metapensiero.it  | -- Fortunato Depero, 1929.