emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Local COLUMNS and columnview block


From: Lele Gaifax
Subject: [O] Local COLUMNS and columnview block
Date: Sat, 17 Nov 2018 09:56:25 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

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.
address@hidden  |                 -- Fortunato Depero, 1929.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]