From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>
Received: from mp10.migadu.com ([2001:41d0:2:bcc0::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by ms9.migadu.com with LMTPS
	id 6KfQOiPjXGRTDQAASxT56A
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Thu, 11 May 2023 14:44:20 +0200
Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp10.migadu.com with LMTPS
	id ILzfOSPjXGSszgAAG6o9tA
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Thu, 11 May 2023 14:44:19 +0200
Received: from lists.gnu.org (lists.gnu.org [209.51.188.17])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by aspmx1.migadu.com (Postfix) with ESMTPS id ABBDFA57B
	for <larch@yhetil.org>; Thu, 11 May 2023 14:44:19 +0200 (CEST)
Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <emacs-orgmode-bounces@gnu.org>)
	id 1px5dc-0007lf-4Y; Thu, 11 May 2023 08:43:16 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <tim.visher@gmail.com>)
 id 1px5da-0007gA-5w
 for emacs-orgmode@gnu.org; Thu, 11 May 2023 08:43:14 -0400
Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <tim.visher@gmail.com>)
 id 1px5dY-0001cF-Db
 for emacs-orgmode@gnu.org; Thu, 11 May 2023 08:43:13 -0400
Received: by mail-lf1-x12e.google.com with SMTP id
 2adb3069b0e04-4f13cd0c4b3so1615381e87.0
 for <emacs-orgmode@gnu.org>; Thu, 11 May 2023 05:43:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1683808990; x=1686400990;
 h=to:subject:message-id:date:from:in-reply-to:references:mime-version
 :from:to:cc:subject:date:message-id:reply-to;
 bh=pdPJq8fK1bWYFrbJ/zJl8TNvefjDF9L6UKpyjAIUpaM=;
 b=cH+JA7C93HYoCETKL8PSqGJZ+hEVEtI56l/tvpOjucz5dUBl7wOw4Jz+hclM3kzjIG
 2IERgqTBzLTw1UThmvL4J/WrDMiF2y6OP/M3EwLe2mr/YMXC9L1PbhUU1iv5KkNHoZN/
 4aXmFw1mEghR2kIXuxKM07fuS5yGa22K4amPt7Kt4Nxy+WA0+ocNfs8p7leK/JuKcU8y
 2+wkZj/TW8WJPPAk0zD3EDm0YmxEjFilqrLyvvnIKPQp6wrGgaqKKn6sXbWdt97dSP56
 bsXrh0/JlwNPm1A9E5EIN0zuk1aGSzH46YqsPO34c1XiaqIcD1Q3gZtV0csvHYSmaPIa
 MShQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1683808990; x=1686400990;
 h=to:subject:message-id:date:from:in-reply-to:references:mime-version
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=pdPJq8fK1bWYFrbJ/zJl8TNvefjDF9L6UKpyjAIUpaM=;
 b=NsLLBfj7uKlE3L1awLAQUUVThcGi6ZssI2nquQ0Hl2f8/JfG59vR9kPR3mvygfn4KW
 wWV0fOv+NohsNlJ8cHf7Q8lXrT/jzd18eDX+9gaUpD1mVuNITbrAZ+UqZ9/k9lULyLLU
 oR3IUN4ovfsJWz3lmGA+R2spS6dIbKD06uLzopPdY0mMuh5PDK4gvCUOecLqMyZi+VLH
 VCf/YCxNbLakI5vf7qhpnT6PySQj+4fOgZsodDoADZce1+jrUYUWEean2MBWjr/NchoP
 neAe9uGMTXOwq2MhE/cggMT3z1hl3VlouXvJ1e4rN28uvxVgFXmxz3JnxSwe09U3SUha
 Shqg==
X-Gm-Message-State: AC+VfDyjH9beFeThOBwCl3IM7aiApaIdhYTFJ5ThheZgNALOsazT25Gj
 doT7TzggpQ+vXInBbqbM19+Bdbp3sEYioYOcbNSVW+hfdfNDCw==
X-Google-Smtp-Source: ACHHUZ5ZPdWG4Ho/0ff96OPAtSNe/a+mBEkXuc4Bc1lsYdX2mT00cce6QVLR6ALLDh65jugbLsGiMxc/2Tfj5JR13FY=
X-Received: by 2002:a05:6512:7a:b0:4e9:c792:c950 with SMTP id
 i26-20020a056512007a00b004e9c792c950mr5215799lfo.1.1683808989618; Thu, 11 May
 2023 05:43:09 -0700 (PDT)
MIME-Version: 1.0
References: <CAHa53uyEVg+45pyrBL=u+ih4KUyJhr5yUWGpM_nvU6h0D873Ew@mail.gmail.com>
In-Reply-To: <CAHa53uyEVg+45pyrBL=u+ih4KUyJhr5yUWGpM_nvU6h0D873Ew@mail.gmail.com>
From: Tim Visher <tim.visher@gmail.com>
Date: Thu, 11 May 2023 08:42:32 -0400
Message-ID: <CAHa53uxPpQAEzTGdX8J1JcNV=2ca+6srTarccE4S93u2Po1LXA@mail.gmail.com>
Subject: Re: Can `org-capture` templates be made to result in a sub-heading of
 the current heading?
To: Emacs Org Mode mailing list <emacs-orgmode@gnu.org>
Content-Type: multipart/alternative; boundary="000000000000b2271f05fb6a54ab"
Received-SPF: pass client-ip=2a00:1450:4864:20::12e;
 envelope-from=tim.visher@gmail.com; helo=mail-lf1-x12e.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-BeenThere: emacs-orgmode@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=subscribe>
Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org
Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org
X-Migadu-Flow: FLOW_IN
X-Migadu-Country: US
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1683809059; a=rsa-sha256; cv=none;
	b=iYcaAQj94sEgmCmY943ZdngkEhP8dhOslWjKKeU9duwlvxYYEZJLE5CrNH5OW3Mjr2949c
	hTO6uS0GKHzNcSsJhPUqnlLjhFqe5K3STXYo+wPkp11CPlrvqgyCmvoJEWSkkz7LD+mevk
	jp5l3lUghN0S36XnqEhoMtI4Umpv4k+mTo4jbNSE3mgmGmkhR6XH41Yzp8lL7Fgx7/VtLG
	DVK+x3j0Fe/N0WywjAceZce/5TRxv/Zz//fPDXZ6U8SlBl9IrTYVKO6Wz0RmevjRbD53ut
	HRFY5e1BNK/IUIizvQu9nb79QOUzG8w2X7gmkLFJl1KESjAEmuoya2qojpnrsw==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=pass header.d=gmail.com header.s=20221208 header.b=cH+JA7C9;
	dmarc=pass (policy=none) header.from=gmail.com;
	spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1683809059;
	h=from:from:sender:sender:reply-to:subject:subject:date:date:
	 message-id:message-id:to:to:cc:mime-version:mime-version:
	 content-type:content-type:in-reply-to:in-reply-to:
	 references:references:list-id:list-help:list-unsubscribe:
	 list-subscribe:list-post:dkim-signature;
	bh=pdPJq8fK1bWYFrbJ/zJl8TNvefjDF9L6UKpyjAIUpaM=;
	b=e91dxnAPfH4lwPuSAYia0r3Qa/JMfbLlVZDq61Zec0LOlalWeMSdOazhmBCK29Q685smXY
	nkv76Zi3Vp/1hFy4wypfQ0JEQyZZWqGzyp/xjj+z4ZX8oh4sqgl6GmnRep2X7jLl/k3/dL
	aQ3QwwvHgyZutqjsvk+amLc1XGVmlI+UOwqz/HZc6vcL0wcbc83zRJrGf+bCjNAwGUtoCA
	Bmxp3uo/ugEcfOEzAh6ZVcNQiuHSw/3RCFrcBBILA5q8QG8EMrkY/8mvUQR2ntLQKhf7Ew
	i0IedE40RD4hoy+/AoTbt6VJGCnD/OcPxLK5O+VtamH7H89O72N58vUJYxZUiA==
X-Migadu-Scanner: scn1.migadu.com
Authentication-Results: aspmx1.migadu.com;
	dkim=pass header.d=gmail.com header.s=20221208 header.b=cH+JA7C9;
	dmarc=pass (policy=none) header.from=gmail.com;
	spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"
X-Migadu-Spam-Score: -3.87
X-Spam-Score: -3.87
X-Migadu-Queue-Id: ABBDFA57B
X-TUID: 5LCHGn/pGeC/

--000000000000b2271f05fb6a54ab
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Wed, May 10, 2023 at 5:04=E2=80=AFPM Tim Visher <tim.visher@gmail.com> w=
rote:

> Can `org-capture` templates be made to result in a sub-heading of the
> current heading?
>
> So
>
> ```
> * This Week
> ** TODO A TODO Item
>
>    [2023-05-05 Fri 10:47]
>
>    A description <point's here>
> ```
>
> and I whack my capture keychord and get
>
> ```
> * This Week
> ** TODO A TODO Item
>
>    [2023-05-05 Fri 10:47]
>
>    A description
> *** [2023-05-10 Wed 17:02]
>
>     [2023-05-10 Wed 17:02]
>
>     <point's here>
> ```
>

It's worth noting that with a capture template like

```
("twj" "TODO Work TODO Journal" entry
 (file+headline "~/Documents/todo.org" "Inbox")
 "* %U

   %U

   %?")
```

If I do the usual `M-0 M-x org-capture` with point in the original spot it
behaves exactly as I want it to. My goal is to get it to behave that way
just by invoking the capture template.

--000000000000b2271f05fb6a54ab
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr">On Wed, May 10, 2023 at 5:04=E2=80=AFPM T=
im Visher &lt;<a href=3D"mailto:tim.visher@gmail.com">tim.visher@gmail.com<=
/a>&gt; wrote:<br></div><div class=3D"gmail_quote"><blockquote class=3D"gma=
il_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,2=
04,204);padding-left:1ex"><div dir=3D"ltr"><div>Can `org-capture` templates=
 be made to result in a sub-heading of the current heading?<br></div><div><=
br></div><div>So</div><div><br></div><div>```</div><div><font face=3D"monos=
pace">* This Week</font></div><div><font face=3D"monospace">** TODO A TODO =
Item</font></div><div><font face=3D"monospace"><br></font></div><div><font =
face=3D"monospace">=C2=A0 =C2=A0[2023-05-05 Fri 10:47]</font></div><div><fo=
nt face=3D"monospace"><br></font></div><div><font face=3D"monospace">=C2=A0=
 =C2=A0A description &lt;point&#39;s here&gt;</font></div><div>```</div><di=
v><br></div><div>and I whack my capture keychord and get</div><div><br></di=
v><div>```</div><div><div><font face=3D"monospace">* This Week</font></div>=
<div><font face=3D"monospace">** TODO A TODO Item</font></div><div><font fa=
ce=3D"monospace"><br></font></div><div><font face=3D"monospace">=C2=A0 =C2=
=A0[2023-05-05 Fri 10:47]</font></div><div><font face=3D"monospace"><br></f=
ont></div><div><font face=3D"monospace">=C2=A0 =C2=A0A description</font></=
div></div><div><font face=3D"monospace">***=C2=A0[2023-05-10 Wed 17:02]</fo=
nt></div><div><font face=3D"monospace"><br></font></div><div><font face=3D"=
monospace">=C2=A0 =C2=A0=C2=A0[2023-05-10 Wed 17:02]</font></div><div><font=
 face=3D"monospace"><br></font></div><div><font face=3D"monospace">=C2=A0 =
=C2=A0 &lt;point&#39;s here&gt;</font></div><div>```</div></div></blockquot=
e><div><br></div><div>It&#39;s worth noting that with a capture template li=
ke</div><div><br></div><div>```</div><div><font face=3D"monospace">(&quot;t=
wj&quot; &quot;TODO Work TODO Journal&quot; entry<br>=C2=A0(file+headline &=
quot;~/Documents/<a href=3D"http://todo.org">todo.org</a>&quot; &quot;Inbox=
&quot;)<br>=C2=A0&quot;* %U<br><br>=C2=A0 =C2=A0%U<br><br>=C2=A0 =C2=A0%?&q=
uot;)</font><br></div><div>```=C2=A0</div><div><br></div><div>If I do the u=
sual `M-0 M-x org-capture` with point in the original spot it behaves exact=
ly as I want it to. My goal is to get it to behave that way just by invokin=
g the capture template.</div></div></div>

--000000000000b2271f05fb6a54ab--