emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rene <jlr_0@yahoo.com>
To: emacs-orgmode@gnu.org
Subject: Re: org-capture vs. org-agenda-capture
Date: Wed, 12 Dec 2012 21:24:36 +0000 (UTC)	[thread overview]
Message-ID: <loom.20121212T215736-339@post.gmane.org> (raw)
In-Reply-To: 87d2yfnxjs.fsf@bzg.ath.cx

As a matter of fact, when called from the agenda `%U' doesn't expand as the
current timestamp but rather provides the date of the line your point is on.

Wouldn't it be more convenient to get the current timestamp anyway?

Suppose you would like to create a new appointment then
1. you view your agenda to see whether you're free on a particular date
2. you place the cursor on that date line
3. you invoke org-agenda-capture (hit `k' key) from there

then a template such as this one 

  ("a" "Appointment" entry (file+headline "~/gtd.org" "Inbox")
       "* APPT %?\n  %^T\n Added: %U")

would expand as

  * APPT Dentist
  <2012-12-25 Tue 18:00-19:00>
  Added: [2012-12-12 Wed 22:13]

which makes sense; instead of

  * APPT Dentist
  <2012-12-25 Tue 18:00-19:00>
  Added: [2012-12-25 Wed 00:00]

as it is today.

--
Rene

  reply	other threads:[~2012-12-12 21:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-11 15:23 org-capture vs. org-agenda-capture Rene
2012-12-12 14:40 ` Bastien
2012-12-12 21:24   ` Rene [this message]
2012-12-12 23:24     ` Bastien
2012-12-13 13:13       ` Rene

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=loom.20121212T215736-339@post.gmane.org \
    --to=jlr_0@yahoo.com \
    --cc=emacs-orgmode@gnu.org \
    /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).