emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Arbitrary lisp functions in column-attributes
@ 2013-10-28 17:00 Mark Edgington
  2013-11-04 12:08 ` Bastien
  0 siblings, 1 reply; 11+ messages in thread
From: Mark Edgington @ 2013-10-28 17:00 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 871 bytes --]

Hello all,

I would really appreciate it if it were possible to specify an arbitrary
lisp function to process node-properties when creating a column view.  For
example, you can currently have something like:

* Top node for columns view
   :PROPERTIES:
   :COLUMNS: %25ITEM %TAGS %PRIORITY %TODO
   :END:


But I'd like to be able to do something like:

   :COLUMNS: %ITEM{fn:process_item} %TAGS %PRIORITY %TODO

which would pass the ITEM property's value as a single argument to the
process_item function.  The returned value/string of the function would be
what appears in the column view.

Of course it would be good if one could also use a lambda expression in
place of the function name.

Does this sound like something worth working on?  I would certainly have
various uses for such functionality, so I imagine it would be useful to
others as well.

Regards,

Mark

[-- Attachment #2: Type: text/html, Size: 1052 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: Arbitrary lisp functions in column-attributes
@ 2013-10-31 16:41 Mark Edgington
  2013-10-31 17:56 ` Aaron Ecay
  0 siblings, 1 reply; 11+ messages in thread
From: Mark Edgington @ 2013-10-31 16:41 UTC (permalink / raw)
  To: emacs-orgmode

Hello all,

Since the formatting on my earlier post was bad, I'm re-posting this
with a bit more information:

I would really appreciate it if it were possible to specify an
arbitrary lisp function to process node-properties when creating a
column view.  Currently it is possible to have something like:

* Top node for columns view
   :PROPERTIES:
   :COLUMNS: %25ITEM %TAGS %PRIORITY %TODO
   :END:


But I'd like to be able to do something like:

   :COLUMNS: %ITEM{fn:process_item}(My Column Heading Name) %TAGS
%PRIORITY %TODO

which would pass the ITEM property's value as a single argument to the
process_item function.  The returned value/string of the function
would be what appears in the column view.

Of course one should also be able to use a lambda expression in place
of the function name.

Does this sound like something worth working on?  I would certainly
have various uses for such functionality, so I imagine it would be
useful to others as well.

I understand that there is the org-collector module, but this isn't
quite sufficient. Although it permits arbitrary lisp expressions, it
doesn't allow one to customize what's printed for the column-headers,
like a normal columnview block would allow.

Regards,

Mark

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

end of thread, other threads:[~2013-11-06 12:25 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-28 17:00 Arbitrary lisp functions in column-attributes Mark Edgington
2013-11-04 12:08 ` Bastien
2013-11-04 17:56   ` Mark Edgington
2013-11-05 21:06     ` Bastien
2013-11-06  5:02       ` Mark Edgington
2013-11-06  8:20         ` Bastien
  -- strict thread matches above, loose matches on Subject: below --
2013-10-31 16:41 Mark Edgington
2013-10-31 17:56 ` Aaron Ecay
2013-11-01 19:47   ` Mark Edgington
2013-11-03 22:38     ` Aaron Ecay
2013-11-04  3:09       ` Mark Edgington

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