From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oNToAWFLpWCvGAAAgWs5BA (envelope-from ) for ; Wed, 19 May 2021 19:31:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id UA5UOWBLpWBpJwAAB5/wlQ (envelope-from ) for ; Wed, 19 May 2021 17:31:12 +0000 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 5209DC44C for ; Wed, 19 May 2021 19:31:12 +0200 (CEST) Received: from localhost ([::1]:50488 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ljQ2I-0005be-M4 for larch@yhetil.org; Wed, 19 May 2021 13:31:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53030) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljQ0i-0005a5-2m for emacs-orgmode@gnu.org; Wed, 19 May 2021 13:29:32 -0400 Received: from smtp.manicmind.earth ([107.20.249.12]:38200 helo=mail.manicmind.earth) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljQ0f-0004iE-Ff for emacs-orgmode@gnu.org; Wed, 19 May 2021 13:29:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=manicmind.earth; s=mail; t=1621445367; bh=te5LzcVkRi99Lr6NOPWdJt+IXOAecTZ6exf/4K+WIE0=; h=From:Subject:Date:References:To:In-Reply-To:From; b=SsxbqOV7LnSLQF+vMOhXobQ/BSUiNhGxW2RxCr8gM5MmpkvK5/x6HTQAQTVlNPV17 aWU0BH16UDIBL6tvfuIOYFNNKzmCK7erl+h1kvLMs8wiI0k8pdqf3Z88BJ4YzPFkX6 M+a1/vITHQ37spsXUBiQAqqBj/O2V7KaCtUqJEaXbrTLha4ZfBnwnb7tgjTmyheeAt +w64ygoJcJuZ/ZBk9R+qOwHz7XADtgiCu/ojoU0tj7h0zHDyYrH9BFRKpP24DEtQGs P8qnj3+ldOccAu+mmeIsvyp/oEayaC7pyTwyOukcCoQq7iS5FOwp1Z/Sa14DIR66g4 a6kTEFkYHnfRA== From: Nathaniel W Griswold Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.80.0.2.43\)) Subject: Re: Org-capture %K "Link to the currently clocked task" link with id? Date: Wed, 19 May 2021 12:29:26 -0500 References: To: emacs-orgmode@gnu.org In-Reply-To: Message-Id: Received-SPF: pass client-ip=107.20.249.12; envelope-from=nate@manicmind.earth; helo=mail.manicmind.earth 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1621445472; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=te5LzcVkRi99Lr6NOPWdJt+IXOAecTZ6exf/4K+WIE0=; b=fG58g36sVmSxxnpmc2kscUbVFcpDK6n62ihL2liKlqN8js9MQbINkWxVur4FoLf/5DavH6 TuSRaAgwyoEDAW8ph4cqaRPmkT2gU60oaW7u3CoLb2bxdOrTZpJQhsbCBM2pq82OK+rxl/ NZDmafVQZk5Y0567/NI8ke3s5ov1x9jXw9NHnPcJNLCw5TFJUoCIDbZHEsbNLPc9s7/YV3 9BBLed8EesiQHHmAXQufWgaVQm0NvqieIR50pnWDnE+/Sjx2yKsDmhPMBUE4oxXSy8blL4 MilvpRlwf7ctBFBdN9RmmmlGd9REG7ldAIbk+/16RtdTWgC4uFSNOn3hvtSSrg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621445472; a=rsa-sha256; cv=none; b=QuHMnjAzNuQJJV2IBLz+cZensoHg2BaehaSWEmSZBLAjSN6pEcuh9/1XRYNt7i3EFRS3em t9lZXEFddhpz0Kx6MFuv0+0E0jtna7NF4DsMAEyFF39TRjp87DUTrVkPvSzSs4S0RLqWYN rs1lgq/kD9c3N7VcIhS476Xx9bcN1QHdTwuNA9wE+anNLXFlcRvQIXYBsiV5xl70jbE3Oe fPm7FrOqIs2TImqAHCSo1lMF4mxbPJEZkgg3CNwhXgQEl/l7Gg3S7wZ+e0kSWlo8ZYVZ2+ ha/Rec0N9PYW/hP6Xcg4BvZwYtS3fxeelr3dCTnYomanzHDsmFgiokIU2Cai7w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=manicmind.earth header.s=mail header.b=SsxbqOV7; dmarc=pass (policy=none) header.from=manicmind.earth; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.64 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=manicmind.earth header.s=mail header.b=SsxbqOV7; dmarc=pass (policy=none) header.from=manicmind.earth; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 5209DC44C X-Spam-Score: -1.64 X-Migadu-Scanner: scn0.migadu.com X-TUID: SpDm5UB+OTZg Rereading my message, i realized it might not be clear what i mean here. I use (org-id-link-to-org-use-id t) because i like to be able to still = follow links after i archive stuff. I want that behavior here so i want = the link to an `id:` link instead of a `file:/path/to/file` link. Nate > On May 19, 2021, at 8:26 AM, Nathaniel W Griswold = wrote: >=20 > Looking at the source (org-capture.el), it appears org-capture doesn't = allow you to make a permalink for "Link to the currently clocked task", = or %K in your template. >=20 > `org-capture-fill-template` looks like this: >=20 > ... > (v-K (if (marker-buffer org-clock-marker) > (org-link-make-string > (format "%s::*%s" > (buffer-file-name (marker-buffer = org-clock-marker)) > v-k) > v-k) > "")) > ...=20 >=20 > So i guess it's hardcoded to just make a bracket link. >=20 > I guess i can hack something, but can you guys make a nice change to = the source so that i can have a permalink to my clocked in task? Or is = there something i'm missing and i can actually do it already? >=20 > Thank you >=20 > Nate