[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] Re: suggestion: automatically recording entry creation date
From: |
Bernt Hansen |
Subject: |
[Orgmode] Re: suggestion: automatically recording entry creation date |
Date: |
Sat, 31 Oct 2009 00:57:50 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
Ilya Shlyakhter <address@hidden> writes:
> A frequently-needed task is to find recently created entries. Right
> now I do this by manually pasting a date into each entry,
> and using the timeline agenda.
> Maybe, there are better ways? E.g. have the option to automatically
> record a property, "Creation-date", when an entry is created.
> There would be much clutter if every entry had a :PROPERTIES: line.
> But maybe there could be an option to hide the :PROPERTIES:
> lines completely, unless it contained some user-defined properties.
>
> Or, creation date could be stored as a text property, to avoid
> clutter, for long-running emacs sessions. But it would be lost when
> the file is closed.
> Maybe at file-closing time it could be converted to a normal property
> in the :PROPERTIES: drawer.
>
> Or maybe there are other options?
I have a hook that adds creation date to a task as follows
(defun bh/insert-inactive-timestamp ()
(interactive)
(save-excursion
(insert "\n")
(org-cycle)
(org-insert-time-stamp nil t t nil nil nil)))
(add-hook 'org-insert-heading-hook 'bh/insert-inactive-timestamp)
which makes new entries look like this when hitting 'S-RET New Entry'
* TODO New entry
[2009-10-31 Sat 00:56]
This is an inactive timestamp which you can display on the agenda with [
or ].
HTH,
Bernt