From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nathan Neff Subject: Org-capture %a expansion - create ID link Date: Wed, 25 Sep 2019 15:28:23 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000002e1c650593667ace" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:38105) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iDDsV-0001Et-Uv for emacs-orgmode@gnu.org; Wed, 25 Sep 2019 16:27:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iDDsU-0004G7-QB for emacs-orgmode@gnu.org; Wed, 25 Sep 2019 16:27:11 -0400 Received: from mail-io1-xd2f.google.com ([2607:f8b0:4864:20::d2f]:40779) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iDDsU-0004F9-Kw for emacs-orgmode@gnu.org; Wed, 25 Sep 2019 16:27:10 -0400 Received: by mail-io1-xd2f.google.com with SMTP id h144so332754iof.7 for ; Wed, 25 Sep 2019 13:27:10 -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.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode --0000000000002e1c650593667ace Content-Type: text/plain; charset="UTF-8" Hello all, I'm using capture templates with the %a expansion element [1] The documentation says: "Annotation, normally the link created with org-store-link." The expansion results in links like this: file:~/org-mode/inbox.org::*Heading This not really so good, because I routinely refile things in my inbox - which renders the link useless. Is there a way to force org-capture to generate a link with a globally unique ID? A brief look at the code https://code.orgmode.org/bzg/org-mode/src/master/lisp/org-capture.el#L631 seems to suggest that org-store-link is called with a nil argument - I don't know what that exactly does but I wonder if that's what is causing the generated link to behave differently than when org-store-link is called interactively? I would also like a globally unique ID generated for the currently clocked item (the %K expansion element), but hey, one thing at a time, right? :-) Any ideas? Thanks, --Nate [1] https://orgmode.org/manual/Template-expansion.html#Template-expansion --0000000000002e1c650593667ace Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello all,

I'm using = capture templates with the %a expansion element [1]

The documentation says: =C2=A0"Annotation, normally the link created= with org-store-link."

The expans= ion results in links like this:
file:~/org-mode/inbox.org::*Headi= ng

This not really so good, because I routinel= y refile things in my inbox - which
renders the link useless.

Is there a way to force org-capture to generate a lin= k with a globally unique ID?

A brief look at the codehttps://code.orgmode.org/bzg/org-mode/src/master/lisp/org-capt= ure.el#L631 seems to suggest
that org-store-link is called with a n= il argument - I don't know what that exactly does but I wonder if that&= #39;s what is causing the generated link to behave differently than when or= g-store-link is called interactively?

I would=C2= =A0also like a globally unique ID generated for the currently clocked item = (the %K expansion
element), but hey, one thing at a time, right? = :-)

Any ideas?

--0000000000002e1c650593667ace--