emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Custom time stamps in column view
@ 2019-12-01 19:57 Fraga, Eric
  2019-12-07 13:44 ` Fraga, Eric
  0 siblings, 1 reply; 2+ messages in thread
From: Fraga, Eric @ 2019-12-01 19:57 UTC (permalink / raw)
  To: Emacs Org mode mailing list

Hello all,

I use column view quite a lot.  Very useful, especially for editing
properties.  I also use it for task management, having moved to Marcin
Swieczkowski's approach [1].  For managing my tasks, the column view I
have defined includes scheduled and deadline dates.  I would like to be
able to use a custom time stamp display.  That works for normal view but
not in the column view.

I guess I'm making a feature request: to be able to use custom time
display in column views.  Would this be possible?  (or, knowing me, it
might already be possible so would somebody tell me how?)

Thanks,
eric


Footnotes:
[1]  https://media.emacsconf.org/2019/09.html

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.2.6-572-gbe7e88

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

* Re: Custom time stamps in column view
  2019-12-01 19:57 Custom time stamps in column view Fraga, Eric
@ 2019-12-07 13:44 ` Fraga, Eric
  0 siblings, 0 replies; 2+ messages in thread
From: Fraga, Eric @ 2019-12-07 13:44 UTC (permalink / raw)
  To: Emacs Org mode mailing list

On Sunday,  1 Dec 2019 at 19:57, Fraga, Eric wrote:
> I guess I'm making a feature request: to be able to use custom time
> display in column views.  Would this be possible?  (or, knowing me, it
> might already be possible so would somebody tell me how?)

I found some time today to explore and have managed to answer my own
question.  Unsurprisingly, org has what I need!

Using the answer given to a related question on StackExchange [1], I
came up with this simple function:

#+begin_src emacs-lisp
  (defun esf/todo-column-display-filter (column-title value)
    (when (and value (not (string= value ""))
               (or (string= column-title "SCHEDULED")
                   (string= column-title "DEADLINE")))
      (format-time-string "%e %b %A" (org-time-string-to-time value))))
  (setq-local org-columns-modify-value-for-display-function
              #'esf/todo-column-display-filter)
#+end_src

Makes my column view much easier to read for seeing my todo list!

Thank you,
eric

Footnotes:
[1]  https://emacs.stackexchange.com/questions/54027/org-column-view-with-date-calculations

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.3-34-g2eee3c

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

end of thread, other threads:[~2019-12-07 16:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-01 19:57 Custom time stamps in column view Fraga, Eric
2019-12-07 13:44 ` Fraga, Eric

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