From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Feature Request: property for the time part of a timestamp. Date: Sun, 27 Jul 2008 08:06:42 -0700 Message-ID: <97E77730-C9B7-4BEC-B2F1-2FD1CAAA1864@uva.nl> References: <48876314.6020407@yahoo.com> <93BF31DE-A6F5-4F7D-B1AE-988129A08664@uva.nl> <4889C810.2070307@yahoo.com> <4146786C-2617-4BAB-A92F-6A22C79A44BF@uva.nl> <488C723E.70601@yahoo.com> Mime-Version: 1.0 (Apple Message framework v926) Content-Type: multipart/mixed; boundary="===============1680560924==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KN7ph-0003Zb-0t for emacs-orgmode@gnu.org; Sun, 27 Jul 2008 11:06:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KN7pf-0003Z6-Ta for emacs-orgmode@gnu.org; Sun, 27 Jul 2008 11:06:48 -0400 Received: from [199.232.76.173] (port=43772 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KN7pf-0003Z2-NC for emacs-orgmode@gnu.org; Sun, 27 Jul 2008 11:06:47 -0400 Received: from korteweg.uva.nl ([146.50.98.70]:46401) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KN7pe-0002Gx-SQ for emacs-orgmode@gnu.org; Sun, 27 Jul 2008 11:06:47 -0400 In-Reply-To: <488C723E.70601@yahoo.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Jose Robins Cc: org-mode --===============1680560924== Content-Type: multipart/alternative; boundary=Apple-Mail-21-493317853 --Apple-Mail-21-493317853 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Hi Robin, the function must return the string that you'd like to have inserted as the value in the column. For example, to get the time, use something like (untested) (defun my-org-column-cleaner (title value) (cond ((equal title "TIME") (if (and value (>= (length value) 20)) (substring value 15 20) nil ; there was no value, or it was a short string )) (t nil))) (setq org-columns-modify-value-for-display-function 'my-org-column- cleaner) HTH - Carsten On Jul 27, 2008, at 6:03 AM, Jose Robins wrote: > Hi Carsten, > Thank you so much. Here is a dumb question. What is the return value > datatype and the value for the function? Right now I'm running > edebug to trace what is going on there to figure this out.... > > Thanks, > Jose > > Carsten Dominik wrote: >> >> If you get the latest git version, take a look at the variable >> `org-columns-modify-value-for-display-function'. >> >> HTH >> >> - Carsten >> >> On Jul 25, 2008, at 5:33 AM, Jose Robins wrote: >> >>> >>> >>> Carsten Dominik wrote: >>>> >>>> Hi Robin, >>>> >>>> On Jul 23, 2008, at 9:57 AM, Jose Robins wrote: >>>> >>>>> I've been extensively using column mode in the agenda buffer to >>>>> plan my day/week. I have columns set up for scheduled and >>>>> deadline. However, I was wondering if it'd be possible to expose >>>>> just the "time" part of the scheduled timestamp as a property so >>>>> that I could have a column for the time part of the timestamp >>>>> (without the date). This would allow one to look @ the daily >>>>> agenda and schedule time for tasks with just that column without >>>>> bothering about the date (after all I'm already in today's >>>>> agenda; so there is no need to see the date). >>>> >>>> This would in principle be possible of course, basically a filter >>>> when displaying the column. >>> Hi Carsten, >>> Would this filter be something that would be done on the source >>> end? If so, would you consider adding it? :) >>> >>> The GoogleTech talk has inspired me to start hacking into the >>> source code a bit and contributing back. As a baby step, I'm >>> thinking about modifying the column view to display custom date >>> formats for the date column. Any pointers on getting me going on >>> this? >>> >>> Thanks mucho, >>> Jose >>> >>>> But >>>> >>>>> >>>>> >>>>> Also if it'd be possible to sort the column view based on that >>>>> column's contents it'd be great. That way, all the tasks will be >>>>> sorted based on the time of the day that the task has been >>>>> scheduled for. I guess I'm trying to use the column view similar >>>>> to the time grid. >>>> >>>> This does not make sense becaue column view still uses the >>>> outline structure of your file. Why don't you just use the >>>> agenda or a timeline view for this? >>>> >>>> - Carsten >>>> >>>>> >>>>> >>>>> Not sure if others' sort of planning methodology would benefit >>>>> from this or not. I'm open to other ideas that folks may feel >>>>> is more efficient for achieving this as well. >>>>> >>>>> Thanks, >>>>> Jose >>>>> _______________________________________________ >>>>> Emacs-orgmode mailing list >>>>> Remember: use `Reply All' to send replies to the list. >>>>> Emacs-orgmode@gnu.org >>>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >>>> >>>> _______________________________________________ >>>> Emacs-orgmode mailing list >>>> Remember: use `Reply All' to send replies to the list. >>>> Emacs-orgmode@gnu.org >>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >>>> >> >> >> _______________________________________________ >> Emacs-orgmode mailing list >> Remember: use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >> --Apple-Mail-21-493317853 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Robin, the function must = return the string that you'd like to have inserted as the value in the = column.  For example, to get the time, use something like = (untested)

(defun my-org-column-cleaner (title = value)
   (cond
     ((equal = title "TIME")
      (if (and value (>=3D = (length value) 20))
         =  (substring value 15 20)
       =   nil ; there was no value, or it was a short = string
         = ))
      (t nil)))
(setq = org-columns-modify-value-for-display-function = 'my-org-column-cleaner)

HTH

<= div>- Carsten

On Jul 27, 2008, at 6:03 AM, Jose = Robins wrote:

Hi Carsten,
Thank you so = much. Here is a dumb question. What is the return value datatype and the = value for the function? Right now I'm running edebug to trace what is = going on there to figure this out....

Thanks,
Jose
=

Carsten Dominik wrote:
If = you get the latest git version,  take a look at the variable =
`org-columns-modify-value-for-display-function'.

=
HTH

- Carsten
=

On Jul 25, 2008, at 5:33 AM, Jose Robins = wrote:


=
Carsten Dominik wrote:
Hi = Robin,

On Jul 23, 2008, at 9:57 AM, = Jose Robins wrote:

=
I've = been extensively using column mode in the agenda buffer to plan my = day/week. I have columns set up for scheduled and deadline. However, I = was wondering if it'd be possible to expose just the "time" part of the = scheduled timestamp as a property so that I could have a column for the = time part of the timestamp (without the date). This would allow one to = look @ the daily agenda and schedule time for tasks with just that = column without bothering about the date (after all I'm already in = today's agenda; so there is no need to see the date). =

=
This would in principle be possible of course, basically a filter = when displaying the column.
=
Hi Carsten,
Would this filter be something that would = be done on the source end? If so, would you consider adding it? :)
=
The GoogleTech talk has inspired me to start hacking into the = source code a bit and contributing back. As a baby step, I'm thinking = about modifying the column view to display custom date formats for the = date column. Any pointers on getting me going on this?

= Thanks mucho,
Jose

=
But



Also if it'd = be possible to sort the column view based on that column's contents it'd = be great. That way, all the tasks will be sorted based on the time of = the day that the task has been scheduled for. I guess I'm trying to use = the column view similar to the time grid.
=

This does not make = sense becaue column view still uses the outline structure of your file. =  Why don't you just use the agenda or a timeline view for = this?

- Carsten
=

=
Not sure if others' sort of planning methodology would benefit = from this or not. I'm open to other ideas  that folks may feel is = more efficient for achieving this as well.

Thanks,
= Jose
= _______________________________________________
Emacs-orgmode = mailing list
Remember: use `Reply All' to send replies to the = list.
Emacs-orgmode@gnu.org
= http://lists.= gnu.org/mailman/listinfo/emacs-orgmode
=


_______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.= gnu.org/mailman/listinfo/emacs-orgmode

=

_______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.= gnu.org/mailman/listinfo/emacs-orgmode
=

= --Apple-Mail-21-493317853-- --===============1680560924== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1680560924==--