emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] date added into logbook?


From: Jonathan Leech-Pepin
Subject: Re: [O] date added into logbook?
Date: Tue, 29 May 2012 09:04:45 -0400

Hello,

I'm not sure that you can automatically include the note into a
:LOGBOOK: drawer, however if you're mostly/only working from capture
templates you could add a property for CREATED and have it
automatically fill with an inactive timestamp.

#+begin_src emacs-lisp
  ("x"
   "Example capture"
   entry
   (file+headline "~/org/todo.org" "Example")
   "* [headline info]\n:PROPERTIES:\n:CREATED: %U\n:END: [body]"
   :empty-lines 1)
#+end_src

It isn't quite the same as having it in the logbook, but it does
provide the information when you look for it.

Regards,

Jonathan

On Mon, May 28, 2012 at 6:51 PM, John Hendy <address@hidden> wrote:
> On Mon, May 28, 2012 at 4:58 PM, Michael C Gilbert <address@hidden> wrote:
>> On May 28, 2012, at 12:56 PM, John Hendy wrote:
>>
>>> On Mon, May 28, 2012 at 2:01 PM, Michael Gilbert <address@hidden> wrote:
>>>
>>>> I have a desire to better track the history of notes and tasks, as they 
>>>> get created, refiled, etc. This involves several elements, but one of them 
>>>> involves a piece that I've wanted for a while: a way to keep the data that 
>>>> is lost when I refile an item from my default date-tree file — the date 
>>>> the item was created/added.
>>>>
>>>> Perhaps there is some obvious (but mysterious to me) variable I can set 
>>>> for this, but I haven't found it. What I want is to be able to have a 
>>>> string similar to the others added to the logbook (like " - Refiled on 
>>>> [2012-05-28 Mon 11:33]"), but for the date/time the item first appeared.
>>>
>>> Bernt Hansen does this (I think this is what you're looking for). Can this 
>>> help?
>>> -- http://doc.norang.ca/org-mode.html#sec-15-21
>>
>>
>> Thank you! There it is, on the web, 80% of what I was looking for (of 
>> course). This certainly has the same intent. It does not add any metadata 
>> (such as a prefix " - Added on "), but the documentation for 
>> org-insert-time-stamp makes it obvious how to do that. What eludes me is how 
>> to make it obey the org-clock-into-drawer setting. I'm assuming it doesn't.
>>
>> — Michael
>>
>>
>
> Yes, I'm not sure about that either... I wonder if looking at the code
> for what makes todo state changes and properties log into :LOGBOOK:
> might help? I don't know any elisp to make sense of that. Perhaps
> Bernt will see this and illuminate us both?
>
> John
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]