all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Matt Lundin <mdl@imapmail.org>
To: Thomas Leitner <t_leitner@gmx.at>
Cc: emacs-orgmode@gnu.org
Subject: Re: Multiple column views for one file
Date: Thu, 31 Dec 2009 12:39:03 -0500	[thread overview]
Message-ID: <87fx6rujpk.fsf@fastmail.fm> (raw)
In-Reply-To: <20091231153124.63c14ad0@noeato> (Thomas Leitner's message of "Thu, 31 Dec 2009 15:31:24 +0100")

Thomas Leitner <t_leitner@gmx.at> writes:

> I don't know if org-mode supports having multiple column views for one
> file currently but I did not find a way to do the following.
>
> What I have is a journal file in org-mode in which I record, for
> example, films I have seen, books I have read and kilometres I have
> run. All of these entries have properties based on their type, for
> example, films have the properties Genre, Year and Director. Now I
> would like to get a sparse tree for all entries tagged with `film` and
> use a special column view for the films. However, when I define the
> #+COLUMNS variable at the top, this procedure only works for films, and
> not for books or other entry types which have different properties.
>
> Therefore it would be nice to be able to define several column views
> and the possibility to switch between them. It is currently possible to
> disable column view by pressing `q` when the cursor is on a head line
> in column view. It should probably be no problem to add another hotkey
> like `s` for switching to a different column view. The different column
> views could be defined like this:
>
> #+COLUMNS: films %70ITEM(Details) %TAGS(Context) %Genre %Year %Director
> #+COLUMNS: books %70ITEM(Details) %TAGS(Context) %Author %Year %Pages
>
> It seems that org-mode currently ignores the column view names ("films"
> and "books") so this would be backwards compatible.
>
> I'm still at the beginning of learning Elisp, so I'm not able to
> implement this myself and would like to know if others find this
> proposal useful and if it could be implemented?  

AFAIK, it is not possible to switch between multiple column overlays for
the same subtree. One immediate solution, however, would be to keep all
your film entries in a subtree and to define a local column view for the
subtree. E.g.,

--8<---------------cut here---------------start------------->8---
* Films
  :PROPERTIES:
  :COLUMNS: %70ITEM(Details) %TAGS(Context) %Genre %Year %Director
  :END:
** Citizen Kane
--8<---------------cut here---------------end--------------->8---

The same method could be used for books, running, etc.

Another 

Best,
Matt

  reply	other threads:[~2009-12-31 17:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-31 14:31 Multiple column views for one file Thomas Leitner
2009-12-31 17:39 ` Matt Lundin [this message]
2010-01-01 15:57   ` Thomas Leitner
2010-01-05 13:06 ` Carsten Dominik
2010-01-05 18:52   ` Thomas Leitner

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fx6rujpk.fsf@fastmail.fm \
    --to=mdl@imapmail.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=t_leitner@gmx.at \
    /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 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.