From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: suggestion: automatically recording entry creation date Date: Sat, 31 Oct 2009 00:57:50 -0400 Message-ID: <87eiok88j5.fsf@gollum.intra.norang.ca> References: <4b11f87e0910301913i75b7f899jd236c6a77ac869fe@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N462I-0004vA-IC for emacs-orgmode@gnu.org; Sat, 31 Oct 2009 00:57:58 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N462F-0004uq-SN for emacs-orgmode@gnu.org; Sat, 31 Oct 2009 00:57:58 -0400 Received: from [199.232.76.173] (port=56990 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N462F-0004un-Nk for emacs-orgmode@gnu.org; Sat, 31 Oct 2009 00:57:55 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:49627) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N462F-0002Ag-BF for emacs-orgmode@gnu.org; Sat, 31 Oct 2009 00:57:55 -0400 In-Reply-To: <4b11f87e0910301913i75b7f899jd236c6a77ac869fe@mail.gmail.com> (Ilya Shlyakhter's message of "Fri\, 30 Oct 2009 22\:13\:51 -0400") 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: Ilya Shlyakhter Cc: emacs-orgmode Ilya Shlyakhter 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