emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-capture vs. org-agenda-capture
@ 2012-12-11 15:23 Rene
  2012-12-12 14:40 ` Bastien
  0 siblings, 1 reply; 5+ messages in thread
From: Rene @ 2012-12-11 15:23 UTC (permalink / raw)
  To: emacs-orgmode

When calling org-capture ('C-c c'), you get the current inactive timestamp with
date and time [2012-12-11 Tue 16:18] whenever you specify '%U' in your capture
template.

On the other hand, when calling org-agenda-capture ('k' from the agenda), your
timestamps always indicates a null time [2012-12-11 Tue 00:00].

Is there a way I can force org-agenda-capture to indicate the current time?

--
Rene

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: org-capture vs. org-agenda-capture
  2012-12-11 15:23 org-capture vs. org-agenda-capture Rene
@ 2012-12-12 14:40 ` Bastien
  2012-12-12 21:24   ` Rene
  0 siblings, 1 reply; 5+ messages in thread
From: Bastien @ 2012-12-12 14:40 UTC (permalink / raw)
  To: Rene; +Cc: emacs-orgmode

Hi Rene,

Rene <jlr_0@yahoo.com> writes:

> On the other hand, when calling org-agenda-capture ('k' from the agenda), your
> timestamps always indicates a null time [2012-12-11 Tue 00:00].
>
> Is there a way I can force org-agenda-capture to indicate the current
> time?

From latest git, you can use `C-1 k' to use the time of the current line
or the current time.

Thanks for triggering this change!

-- 
 Bastien

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: org-capture vs. org-agenda-capture
  2012-12-12 14:40 ` Bastien
@ 2012-12-12 21:24   ` Rene
  2012-12-12 23:24     ` Bastien
  0 siblings, 1 reply; 5+ messages in thread
From: Rene @ 2012-12-12 21:24 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: org-capture vs. org-agenda-capture
  2012-12-12 21:24   ` Rene
@ 2012-12-12 23:24     ` Bastien
  2012-12-13 13:13       ` Rene
  0 siblings, 1 reply; 5+ messages in thread
From: Bastien @ 2012-12-12 23:24 UTC (permalink / raw)
  To: Rene; +Cc: emacs-orgmode

Dear Rene,

Rene <jlr_0@yahoo.com> writes:

> 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.

Depends.  From the agenda, you can use either org-capture directly, or
org-agenda-capture.  org-capture will convert %U using current time, not
the time of the agenda line -- unless `org-capture-use-agenda-date' is t.

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

If you want the date the cursor is on, I think 00:00 as a default time 
makes sense, mixing the current time and the date line would be confusing
IMHO.

> 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.

I guess M-x org-capture is enough here.

Best,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: org-capture vs. org-agenda-capture
  2012-12-12 23:24     ` Bastien
@ 2012-12-13 13:13       ` Rene
  0 siblings, 0 replies; 5+ messages in thread
From: Rene @ 2012-12-13 13:13 UTC (permalink / raw)
  To: emacs-orgmode

Bastien <bzg <at> altern.org> writes:

> I guess M-x org-capture is enough here.

No big deal.

I'll just make use of 

    %(org-insert-time-stamp nil t t nil nil nil)

instead of

    %U

--
Rene

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-12-13 13:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-11 15:23 org-capture vs. org-agenda-capture Rene
2012-12-12 14:40 ` Bastien
2012-12-12 21:24   ` Rene
2012-12-12 23:24     ` Bastien
2012-12-13 13:13       ` Rene

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).