From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jose Robins Subject: Re: Feature Request: property for the time part of a timestamp. Date: Sun, 27 Jul 2008 08:19:48 -0700 Message-ID: <488C9214.1000201@yahoo.com> 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> <97E77730-C9B7-4BEC-B2F1-2FD1CAAA1864@uva.nl> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0343749967==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KN82L-0002I1-PW for emacs-orgmode@gnu.org; Sun, 27 Jul 2008 11:19:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KN82K-0002Hp-RP for emacs-orgmode@gnu.org; Sun, 27 Jul 2008 11:19:53 -0400 Received: from [199.232.76.173] (port=57696 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KN82K-0002Hm-Mk for emacs-orgmode@gnu.org; Sun, 27 Jul 2008 11:19:52 -0400 Received: from n6.bullet.mud.yahoo.com ([216.252.100.57]:22294) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KN82I-00046X-Np for emacs-orgmode@gnu.org; Sun, 27 Jul 2008 11:19:52 -0400 In-Reply-To: <97E77730-C9B7-4BEC-B2F1-2FD1CAAA1864@uva.nl> 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: Carsten Dominik Cc: org-mode This is a multi-part message in MIME format. --===============0343749967== Content-Type: multipart/alternative; boundary="------------010207020400050803060608" This is a multi-part message in MIME format. --------------010207020400050803060608 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi Carsten, Works beautifully! Thanks!!!! Jose Carsten Dominik wrote: > 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 >>> > > ------------------------------------------------------------------------ > > _______________________________________________ > 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 > --------------010207020400050803060608 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi Carsten,
Works beautifully! Thanks!!!!

Jose

Carsten Dominik wrote:
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


_______________________________________________ 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
--------------010207020400050803060608-- --===============0343749967== 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 --===============0343749967==--