From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id WF5dAFb5e2aLQwAAe85BDQ:P1 (envelope-from ) for ; Wed, 26 Jun 2024 11:19:50 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id WF5dAFb5e2aLQwAAe85BDQ (envelope-from ) for ; Wed, 26 Jun 2024 13:19:50 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lukascbossert.de header.s=strato-dkim-0002 header.b=KwyT+s9l; dkim=fail ("headers eddsa verify failed") header.d=lukascbossert.de header.s=strato-dkim-0003 header.b=pPzjF5aX; arc=reject ("signature check failed: fail, {[1] = sig:strato.com:reject}"); dmarc=none; 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=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1719400789; 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: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature:autocrypt:autocrypt; bh=nbEUAnn3D/570JlfFo4MVszsGg1kYnO+A5jvNwAZKOE=; b=rCck4NxCRl/ch6V5VbT/4H/GgNVwC0v1kgX5oxjNGNeqNAgvekucl+TpdMrTZah6FM3Yyp BeZyiMIkt+BvI+XBldhutan0c7JrHg4UCV6E2bj2r+3wBLdEmebzntIM5HpL/sbgiXHlVr tw5Q7AvO0Ud5uzu/IJAV9KsWN4+G/M/cxZzb75m4OBFM419WuiKbytJzGHTZ2je2/DUNtA Pj+jlXx9o1LJZgAJS+GR5L1S773hP+31mJFt95HSaF/YpGEhkLfzXRiE52NH+rZfxS98xr XtTtqHRn+0CH275NYVTTm5TeCVDi8+iLFbBg+0OSdgYlis2Ms+v3f76PLibo6g== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1719400789; a=rsa-sha256; cv=fail; b=tzaa5onqfUCwlQ0VQ2ngDO3W9N2ulQccTVmtbkvM04zWzNse6w/aPcN3Gn3lTLc8RIoYFh r+a5JbsuGeoogjoC8/aHiy+Mk+kBdO+mBbBnb0bfZ4Bzhl9CdNdg6C0Ij6kbBhVqcYgOcJ so00HT4o7QXZDer938toz6O64slcKbMpz5FOs3ynkho94xguF9D5cQ4ItxxdfSC1o1AkU/ 78b8ci16DCRy/px0PMWz/p3DnTvmat3K90/c6DioAfj8OBYXPkjNZFZRXxPkH6cWeXuk3e j0NjvrCv/T9FXDq9UXG18DBIWQHIPF9BydQNgXrkFFM1uHjoxBq6f6yjYqUO9Q== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lukascbossert.de header.s=strato-dkim-0002 header.b=KwyT+s9l; dkim=fail ("headers eddsa verify failed") header.d=lukascbossert.de header.s=strato-dkim-0003 header.b=pPzjF5aX; arc=reject ("signature check failed: fail, {[1] = sig:strato.com:reject}"); dmarc=none; 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" 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 C8DF362117 for ; Wed, 26 Jun 2024 13:19:49 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sMQfK-0002Gi-0B; Wed, 26 Jun 2024 07:18:18 -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 ) id 1sMB1T-0000Ut-Kr for emacs-orgmode@gnu.org; Tue, 25 Jun 2024 14:36:17 -0400 Received: from mo4-p00-ob.smtp.rzone.de ([85.215.255.21]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sMB0m-0005rB-NV for emacs-orgmode@gnu.org; Tue, 25 Jun 2024 14:35:52 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1719340286; cv=none; d=strato.com; s=strato-dkim-0002; b=Ll/M0lrzWwAXW7dVgsgy1gGRjeLaosGk6jOLylwLVGwlmz+QVsH0IOtNWMpLhn2AF4 W9Tzodj+z2DMV1U08H6XHT96Ta8ZtNV4UO25x3AoVlSgr14iPMsO+buYcZvIV4tpKi91 0N6QMzbWwotwIVIaIZfR35rCsAfVCU8lSGh/lARGLWlVv/wV2ZGIXtsPIHBHEHxN/ZGw uByTDQHJjMd8/h+ntmAz894otPfusWSVfT7Bpt22+oPx5CO7AAvzMd1FZb4TVIOehdSP oKEpkA92lUoEdFKqlLCVYwmF3KC028b0H6QI4Dyq6oZVAGdAg5DWd6Rv6W7Ij6VwDe7f gvCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1719340286; s=strato-dkim-0002; d=strato.com; h=Subject:From:To:Date:Message-ID:Cc:Date:From:Subject:Sender; bh=nbEUAnn3D/570JlfFo4MVszsGg1kYnO+A5jvNwAZKOE=; b=QC/mxudZ+HOQ3Xz6MeGKXutUQmqAEqhFMQw3b9WUmG+oVLqiRahVev4sgzLWXn8LcG ksS+jT+mhBOJ/jjLYHeszaICEuuDivUmLgVbGURr6i8nPljw8lt2ivFFQdoqTGuWZL/x BDTkuqwZ3fhXdV2zsoIv1975/U8OiOLPDJQhGZG2MpNDuie/JIe5APBcZIwO5pQBBwzI cJGaZnk3dmi8ycKcqXmyxXOIwMz/O5TkDGwFRmCPK8GPiL0V2NdUGQHSsxTJO/FipXEg wWYbAjOhT+wrpbdogsGzjl/Z15caiKFIjFSFKLknJ7t1lAAiEsVvV25pXrNfWkwqy0fD B23w== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1719340286; s=strato-dkim-0002; d=lukascbossert.de; h=Subject:From:To:Date:Message-ID:Cc:Date:From:Subject:Sender; bh=nbEUAnn3D/570JlfFo4MVszsGg1kYnO+A5jvNwAZKOE=; b=KwyT+s9lCxG3plapAgQ7NoH/UxnLhhywDa2+XrD3jLhaGuoNKfDwgXc+xi9ttaCa08 OZ409aUhsnPPmrFTN9vVSAkeHnpLG9lRw4JyR8yiiJng0RAi1Gao6/YOuXwpjGyhy5r6 tVVCLHHWCS3RXFQWUomL1X0/VRsmVni2bK1YJGoVhsHc56KbMyvU7g/mhVNF9ARl8Dm/ FDHEw7+xMZkC/o0Mgx/tx8xVEh4+I6P5VGMlRVLY+5KNahvjUlbZ+3zHIPaCFLYZWT49 krG/Z/9c502YygtdnMXRb6kaSSmccer1Uk7caaoJBzoWBe1OkLaiGmyEiMoWtouxK/rb vGLg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1719340286; s=strato-dkim-0003; d=lukascbossert.de; h=Subject:From:To:Date:Message-ID:Cc:Date:From:Subject:Sender; bh=nbEUAnn3D/570JlfFo4MVszsGg1kYnO+A5jvNwAZKOE=; b=pPzjF5aXIPBV/Ow7clZI6wFY82mzL83KqZ2CK5BSg2JaWNVrouJWAy9pkQOEErLlp+ dWm3nNeu6Ittcg/kD8Dg== X-RZG-AUTH: ":IW0NeWCkbvRyjlU+jfhDFHqFha4lDEu2vAO5y7uIxm2SCN4GFKpcyjLrcX98ZZ7EqDqL69PMoGg=" Received: from [192.168.2.168] by smtp.strato.de (RZmta 50.5.0 DYNA|AUTH) with ESMTPSA id e049b605PIVPCcz (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate) for ; Tue, 25 Jun 2024 20:31:25 +0200 (CEST) Message-ID: <35eaf49a-19a3-494c-a5df-0fefc4201d41@lukascbossert.de> Date: Tue, 25 Jun 2024 20:31:22 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: emacs-orgmode@gnu.org From: "Lukas C. Bossert" Content-Language: en-US Subject: How to get the right link using org-capture from the second level Autocrypt: addr=mail@lukascbossert.de; keydata= xsDNBGRb6R8BDACvQ8gIYJUOX70gnh6dqlOflXa8hvg/sCIANZeF+jBJaEOm8CWQ6Ztno9e7 yN+Sh5g55Uf45HpAha3y4T1IIqNL9DXzUUu2onTZS1o2v4VBMHl5HT1rZ5Jc+4VWaBvAalAl J+eux1cDlimcAS81H4XCOe2pW577QzJAwIFdBTpuxpi9WjenHrUUelxydSNowY98CE1savMJ IqWXYKhLJahHx5TQ4uzVFFq6Vxuw+z99ynCRvsrxsz9Tm961DhWL7fgakWuAzkR3O4vuLvdN 5HvB7r+mZBOnKVFeYcFY7gWmsuGj9MV6JkXLWuGZN4Q5PAJAtdl0L3dFTQzjyv5YXFd+AlE0 +igSbFEZxguFuJT7FgvL7euaDGs8WQyyBwrqLGh0Me7ZiNfHzYrpZtrvQino1vliz5UAMyox Tz8V7mn3slckdp3YDeMHeK8E1x7YXi/tBlqoRfKX04k48rfQzzFDDgjio13gDRNB/NVsvHKP MBMAalidA25G3lvE+MzRfzUAEQEAAc0oTHVrYXMgQy4gQm9zc2VydCA8bWFpbEBsdWthc2Ni b3NzZXJ0LmRlPsLBDQQTAQgANxYhBBOITrMT+NWS9IN7clxVovjSkn2JBQJkW+kgBQkDwmcA AhsDBAsJCAcFFQgJCgsFFgIDAQAACgkQ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AJhYhBBOITrMT+NWS9IN7clxVovjSkn2JBQJkW+khBQkDwmcA AhsMAAoJEFxVovjSkn2JQ3ML+gPy+UL5idmelbB5khKDOblfrsrPjk9p9HY3SHZsVB2mId/j vIJu2iVbalGAlZHRnNvPSZXZ8eAx+XvCiQULMfA65YUc0sIuLKKhkzmnNcS8IMQKEiLiN1CC 25Me8WUAwRZv4dst/j/fqLI8ddC3tyUlfBZHKWK8kxEYXcwfyI5NHA4K9565EijdsLBbWj4p EwYYWwr3U18oBx2h1UcF73owIMS9R+i7K4b8XihrCHktVSsz1/W2y1wEbkIMiVcey2CM1Mbv Ve9NB8NNby1O2tH4wt/Ahr3MMDsJ9yV0SZpGLuG+K+RsOBHkQQ07HyzY8Hm1RN22q1VMkXCB +Kbh9KY+GKsyQUr3oLBmu2y+vGVKXOXFVIZ7aambsZkFhQ9R9SUjFVWCRP2HFEuKZSoUfDaZ vRtdskGSsEmT5rDZCRHcmbhn7SU5k45ThAtpCfgPOPl/LFNAC2dmLrZSIQZh1sl8uuYYl5sj gg/v9HcNBk9UyQGegWdMvzp3bjGhNTVKpw== Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: none client-ip=85.215.255.21; envelope-from=mail@lukascbossert.de; helo=mo4-p00-ob.smtp.rzone.de X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, T_SPF_HELO_TEMPERROR=0.01, T_SPF_TEMPERROR=0.01, URI_HEX=0.1 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 26 Jun 2024 07:18:14 -0400 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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 X-Migadu-Spam-Score: -1.36 X-Spam-Score: -1.36 X-Migadu-Queue-Id: C8DF362117 X-Migadu-Scanner: mx11.migadu.com X-TUID: 4nlJDxcs3RBw Dear list, In my org-roam setup, I want to document information about individuals. To do this, I created an org file named `20230501233516-persons.org`, which contains two top-level headings: `* Overview` and `* Persons`. Under the `* Persons` heading, I intend to list all individuals. I've created a template that allows me to add people from any other file using e.g. `C-c n r i`. This template also facilitates the creation of new person entries on the fly, and ideally, it should add a link to the person entry in the file I am currently working in. While the template functions as expected in creating new person entries, the link generated points to the ID of the `20230501233516-persons.org` file rather than the newly created person entry. How can I adjust my template so that it correctly links to the new person's entry instead of the ID of the `20230501233516-persons.org` file? Here is my template: ``` (setq org-roam-capture-templates '(("p" "person" entry "** %^{Name|${title}} :PROPERTIES: :ID: %(org-id-uuid) :AFFILIATION: %^{AFFILIATION} :ROLE: %^{ROLE} :PROJECT: %^{PROJECT} :CAPTURED: %U :END:\n%?" :target (file+olp "20230501233516-persons.org" ("Persons")) :unnarrowed 1 ) )) ``` My system: ``` system MacOS 14.5 Darwin 23.5.0 arm64 mac emacs 29.1 EMACSDIR=~/.config/emacs/ EMACS=/opt/homebrew/Cellar/emacs-mac/emacs-29.1-mac-10.0/Emacs.app/Contents/MacOS/Emacs doom 3.0.0-pre PROFILE=_@0 HEAD -> master a99c6b90 2024-06-23 17:15:51 -0400 ~/.config/doom/ Org mode version 9.8 (9.8-??-39272e216 ``` Thanks, Lukas (Note: I also asked this question on https://emacs.stackexchange.com/questions/81591/how-to-get-the-right-link-using-org-capture-from-the-second-level)