From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Visher Subject: Automatic Capture of Heading Creation Time In Certain Files? Date: Fri, 13 Mar 2020 09:25:14 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000075ecb005a0bc68c7" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:45791) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jCkK1-00005V-LB for emacs-orgmode@gnu.org; Fri, 13 Mar 2020 09:25:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jCkK0-0003Yo-Jf for emacs-orgmode@gnu.org; Fri, 13 Mar 2020 09:25:53 -0400 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:41503) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jCkK0-0003VF-DF for emacs-orgmode@gnu.org; Fri, 13 Mar 2020 09:25:52 -0400 Received: by mail-wr1-x42a.google.com with SMTP id s14so12092744wrt.8 for ; Fri, 13 Mar 2020 06:25:52 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sender: "Emacs-orgmode" To: Emacs Org Mode mailing list --00000000000075ecb005a0bc68c7 Content-Type: text/plain; charset="UTF-8" Ohai, I would like to automatically have the results of a double prefixed call to `org-time-stamp-inactive` inserted as the body of new TODO entries. I suspect I can do this with Capture templates but every time I read that manual section it seems to have a lot more than I want. I'm also reasonably sure I could write a simple function and override bindings such that all of the default behaviors of TODO insertion happened _plus_ newline-and-indent, newline-and-indent, double prefix org-time-stamp-inactive, previous-line, previous-line. Am I missing something here or barking up the wrong tree in either direction? Thanks in advance! -- In Christ, Timmy V. https://blog.twonegatives.com https://five.sentenc.es --00000000000075ecb005a0bc68c7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Ohai,

I would like to automatically hav= e the results of a double prefixed call to `org-time-stamp-inactive` insert= ed as the body of new TODO entries. I suspect I can do this with Capture te= mplates but every time I read that manual section it seems to have a lot mo= re than I want. I'm also reasonably sure I could write a simple functio= n and override bindings such that all of the default behaviors of TODO inse= rtion happened _plus_ newline-and-indent, newline-and-indent, double prefix= org-time-stamp-inactive, previous-line, previous-line.

Am I missing something here or barking up the wrong tree in either di= rection?

Thanks in advance!

--

In Ch= rist,

Timmy V.

http= s://blog.twonegatives.com
https:= //five.sentenc.es
--00000000000075ecb005a0bc68c7-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: wry@mm.st Subject: Re: Automatic Capture of Heading Creation Time In Certain Files? Date: Sun, 15 Mar 2020 23:38:06 -0400 Message-ID: <20200316033806.p7wppqgpve7ijomf@wrycode> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:38790) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jDga6-0006Af-P5 for emacs-orgmode@gnu.org; Sun, 15 Mar 2020 23:38:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jDga5-0000MM-L5 for emacs-orgmode@gnu.org; Sun, 15 Mar 2020 23:38:22 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:42951) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jDga4-0008MM-19 for emacs-orgmode@gnu.org; Sun, 15 Mar 2020 23:38:21 -0400 Content-Disposition: inline In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sender: "Emacs-orgmode" To: Tim Visher Cc: Emacs Org Mode mailing list >I would like to automatically have the results of a double prefixed call to >`org-time-stamp-inactive` inserted as the body of new TODO entries. Have you tried including %U in your template? See "Template expansion" in the Org Mode documentation: ("t" "Full task capture" entry (file+headline "~/org/tasks.org" "INBOX") "* TODO %?\n%iAdded: %U") >https://five.sentenc.es Heads up, the ssl on https://five.sentenc.es/ is broken. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Visher Subject: Re: Automatic Capture of Heading Creation Time In Certain Files? Date: Mon, 16 Mar 2020 09:53:54 -0400 Message-ID: References: <20200316033806.p7wppqgpve7ijomf@wrycode> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000007ffb5705a0f928f2" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:58890) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jDqCP-0003hu-Qc for emacs-orgmode@gnu.org; Mon, 16 Mar 2020 09:54:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jDqCO-0007Y6-F3 for emacs-orgmode@gnu.org; Mon, 16 Mar 2020 09:54:33 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:36914) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jDqCO-00079p-6A for emacs-orgmode@gnu.org; Mon, 16 Mar 2020 09:54:32 -0400 Received: by mail-wr1-x42d.google.com with SMTP id 6so21332810wre.4 for ; Mon, 16 Mar 2020 06:54:31 -0700 (PDT) In-Reply-To: <20200316033806.p7wppqgpve7ijomf@wrycode> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sender: "Emacs-orgmode" To: wry@mm.st Cc: Emacs Org Mode mailing list --0000000000007ffb5705a0f928f2 Content-Type: text/plain; charset="UTF-8" On Sun, Mar 15, 2020 at 11:38 PM wrote: > >I would like to automatically have the results of a double prefixed call > to > >`org-time-stamp-inactive` inserted as the body of new TODO entries. > > Have you tried including %U in your template? See "Template expansion" > in the Org Mode documentation: > > ("t" "Full task capture" entry (file+headline "~/org/tasks.org" > "INBOX") "* TODO %?\n%iAdded: %U") > I have not although maybe this will be the impetus for me finally trying to figure out the capture system. At least I know it's intended for this use case. I also imagine some form of advice around heading insertion could work. > >https://five.sentenc.es > > Heads up, the ssl on https://five.sentenc.es/ is broken. > Thank you. I've corrected it to `http` since I don't think there's any reason to browse it using SSL. --0000000000007ffb5705a0f928f2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sun, Mar 15, 2020 at 11:38 PM <wry@mm.st> wrote:
>I would li= ke to automatically have the results of a double prefixed call to
>`org-time-stamp-inactive` inserted as the body of new TODO entries.

Have you tried including %U in your template? See "Template expansion&= quot;
in the Org Mode documentation:

("t" "Full task capture" entry (file+headline "~/o= rg/tasks.= org"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"INBOX") "* TODO %?\n%iAdd= ed: %U")

I have not although maybe= this will be the impetus for me finally trying to figure out the capture s= ystem. At least I know it's intended for this use case. I also imagine= =C2=A0some form of advice around heading insertion could work.
= =C2=A0
>https://five.sentenc.es

Heads up, the ssl on https://five.sentenc.es/ is broken.

Thank you. I've corrected it to `http` since I don= 't think there's any reason to browse it using SSL.=C2=A0
--0000000000007ffb5705a0f928f2--