emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Multiple column views for one file
@ 2009-12-31 14:31 Thomas Leitner
  2009-12-31 17:39 ` Matt Lundin
  2010-01-05 13:06 ` Carsten Dominik
  0 siblings, 2 replies; 5+ messages in thread
From: Thomas Leitner @ 2009-12-31 14:31 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

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?  

Best regards,
  Thomas

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Multiple column views for one file
  2009-12-31 14:31 Multiple column views for one file Thomas Leitner
@ 2009-12-31 17:39 ` Matt Lundin
  2010-01-01 15:57   ` Thomas Leitner
  2010-01-05 13:06 ` Carsten Dominik
  1 sibling, 1 reply; 5+ messages in thread
From: Matt Lundin @ 2009-12-31 17:39 UTC (permalink / raw)
  To: Thomas Leitner; +Cc: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Multiple column views for one file
  2009-12-31 17:39 ` Matt Lundin
@ 2010-01-01 15:57   ` Thomas Leitner
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas Leitner @ 2010-01-01 15:57 UTC (permalink / raw)
  To: emacs-orgmode

On Thu, 31 Dec 2009 12:39:03 -0500, Matt Lundin wrote:
> 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.

Thanks for the answer. However, I know of this solution and it won't
work for me because my journal has time stamped entries and the entries
are ordered by time -- here is a small excerpt:

* 2009
** December 2009
*** <2009-12-26 Sat> Board game session                    :friends:
*** <2009-12-30 Wed> Avatar                                :film:

    :PROPERTIES:
    :Imdb:     [[imdb:0499549]]
    :Director: James Cameron
    :Year:     2009
    :Genre:    Action, Adventure, Sci-Fi
    :Country:  USA, UK
    :END:

*** <2009-12-31 Thu> Pragmatic Thinking and Learning       :book:

    :PROPERTIES:
    :Author:   Andy Hunt
    :Pages:    288
    :END:

-- Thomas

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Multiple column views for one file
  2009-12-31 14:31 Multiple column views for one file Thomas Leitner
  2009-12-31 17:39 ` Matt Lundin
@ 2010-01-05 13:06 ` Carsten Dominik
  2010-01-05 18:52   ` Thomas Leitner
  1 sibling, 1 reply; 5+ messages in thread
From: Carsten Dominik @ 2010-01-05 13:06 UTC (permalink / raw)
  To: Thomas Leitner; +Cc: emacs-orgmode

Hi Thomas,

On Dec 31, 2009, at 3:31 PM, Thomas Leitner wrote:

> Hi,
>
> 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

Not a bad idea, but pretty troublesome to implement, because
column view allows you to change the columns format which
then makes it harder to determine where to make the changes.

For now, you can just put several lines into the buffer and
change the order - but I do realize that this is not the most
convenient solution.

I am not implementing this - unless we find more people
who can bring forward a good use case for this.

- Carsten

>
> 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?
>
> Best regards,
>  Thomas
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Multiple column views for one file
  2010-01-05 13:06 ` Carsten Dominik
@ 2010-01-05 18:52   ` Thomas Leitner
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas Leitner @ 2010-01-05 18:52 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

On Tue, 5 Jan 2010 14:06:08 +0100, Carsten Dominik wrote:
> Not a bad idea, but pretty troublesome to implement, because
> column view allows you to change the columns format which
> then makes it harder to determine where to make the changes.
> 
> For now, you can just put several lines into the buffer and
> change the order - but I do realize that this is not the most
> convenient solution.
> 
> I am not implementing this - unless we find more people
> who can bring forward a good use case for this.

I completely understand. Thanks for the answer nonetheless - will go
with your suggestion.

-- Thomas

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-01-05 18:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-31 14:31 Multiple column views for one file Thomas Leitner
2009-12-31 17:39 ` Matt Lundin
2010-01-01 15:57   ` Thomas Leitner
2010-01-05 13:06 ` Carsten Dominik
2010-01-05 18:52   ` Thomas Leitner

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).