emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Lele Gaifax <lele@metapensiero.it>
To: emacs-orgmode@gnu.org
Subject: Local COLUMNS and columnview block
Date: Sat, 17 Nov 2018 09:56:25 +0100	[thread overview]
Message-ID: <875zwwkrpi.fsf@metapensiero.it> (raw)

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.

             reply	other threads:[~2018-11-17  8:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-17  8:56 Lele Gaifax [this message]
2018-11-17  9:08 ` Local COLUMNS and columnview block Lele Gaifax
2018-11-17 21:16   ` Nicolas Goaziou
2018-11-18 10:34     ` Lele Gaifax

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=875zwwkrpi.fsf@metapensiero.it \
    --to=lele@metapensiero.it \
    --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).