* Local COLUMNS and columnview block
@ 2018-11-17 8:56 Lele Gaifax
2018-11-17 9:08 ` Lele Gaifax
0 siblings, 1 reply; 4+ messages in thread
From: Lele Gaifax @ 2018-11-17 8:56 UTC (permalink / raw)
To: emacs-orgmode
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.
lele@metapensiero.it | -- Fortunato Depero, 1929.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Local COLUMNS and columnview block
2018-11-17 8:56 Local COLUMNS and columnview block Lele Gaifax
@ 2018-11-17 9:08 ` Lele Gaifax
2018-11-17 21:16 ` Nicolas Goaziou
0 siblings, 1 reply; 4+ messages in thread
From: Lele Gaifax @ 2018-11-17 9:08 UTC (permalink / raw)
To: emacs-orgmode
Sorry, hit C-c C-c in the wrong buffer...
Lele Gaifax <lele@metapensiero.it> 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.
lele@metapensiero.it | -- Fortunato Depero, 1929.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Local COLUMNS and columnview block
2018-11-17 9:08 ` Lele Gaifax
@ 2018-11-17 21:16 ` Nicolas Goaziou
2018-11-18 10:34 ` Lele Gaifax
0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Goaziou @ 2018-11-17 21:16 UTC (permalink / raw)
To: Lele Gaifax; +Cc: emacs-orgmode
Hello,
Lele Gaifax <lele@metapensiero.it> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Local COLUMNS and columnview block
2018-11-17 21:16 ` Nicolas Goaziou
@ 2018-11-18 10:34 ` Lele Gaifax
0 siblings, 0 replies; 4+ messages in thread
From: Lele Gaifax @ 2018-11-18 10:34 UTC (permalink / raw)
To: emacs-orgmode
Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
> Lele Gaifax <lele@metapensiero.it> 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.
lele@metapensiero.it | -- Fortunato Depero, 1929.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-11-18 10:34 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-17 8:56 Local COLUMNS and columnview block Lele Gaifax
2018-11-17 9:08 ` Lele Gaifax
2018-11-17 21:16 ` Nicolas Goaziou
2018-11-18 10:34 ` Lele Gaifax
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.