Ilya Shlyakhter <[email protected]> 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
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-orgmode