emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@uva.nl>
To: Jose Robins <jorobins@yahoo.com>
Cc: org-mode <emacs-orgmode@gnu.org>
Subject: Re: Feature Request: property for the time part of	a	timestamp.
Date: Sun, 27 Jul 2008 08:06:42 -0700	[thread overview]
Message-ID: <97E77730-C9B7-4BEC-B2F1-2FD1CAAA1864@uva.nl> (raw)
In-Reply-To: <488C723E.70601@yahoo.com>


[-- Attachment #1.1: Type: text/plain, Size: 3820 bytes --]

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


[-- Attachment #1.2: Type: text/html, Size: 6242 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
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

  reply	other threads:[~2008-07-27 15:06 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-23 16:57 Feature Request: property for the time part of a timestamp Jose Robins
2008-07-23 17:16 ` Carsten Dominik
2008-07-23 18:10   ` Jose Robins
2008-07-25 12:33   ` Jose Robins
2008-07-25 14:24     ` Carsten Dominik
2008-07-26  0:07     ` Carsten Dominik
2008-07-27 13:03       ` Jose Robins
2008-07-27 15:06         ` Carsten Dominik [this message]
2008-07-27 15:19           ` Jose Robins

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=97E77730-C9B7-4BEC-B2F1-2FD1CAAA1864@uva.nl \
    --to=dominik@uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=jorobins@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).