From: Bernt Hansen <bernt@norang.ca>
To: Ilya Shlyakhter <ilya_shl@alum.mit.edu>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: suggestion: automatically recording entry creation date
Date: Sat, 31 Oct 2009 00:57:50 -0400 [thread overview]
Message-ID: <87eiok88j5.fsf@gollum.intra.norang.ca> (raw)
In-Reply-To: <4b11f87e0910301913i75b7f899jd236c6a77ac869fe@mail.gmail.com> (Ilya Shlyakhter's message of "Fri\, 30 Oct 2009 22\:13\:51 -0400")
Ilya Shlyakhter <ilya_shl@alum.mit.edu> 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
next prev parent reply other threads:[~2009-10-31 4:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-31 2:13 suggestion: automatically recording entry creation date Ilya Shlyakhter
2009-10-31 4:57 ` Bernt Hansen [this message]
2009-11-03 0:01 ` Adam Spiers
2009-11-03 12:24 ` Tim O'Callaghan
2009-11-04 12:59 ` Adam Spiers
2009-11-20 20:21 ` Paul Holcomb
2009-11-21 20:01 ` Jason Dunsmore
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=87eiok88j5.fsf@gollum.intra.norang.ca \
--to=bernt@norang.ca \
--cc=emacs-orgmode@gnu.org \
--cc=ilya_shl@alum.mit.edu \
/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).