emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Org-capture %a expansion - create ID link
@ 2019-09-25 20:28 Nathan Neff
  0 siblings, 0 replies; only message in thread
From: Nathan Neff @ 2019-09-25 20:28 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1017 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1641 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-09-25 20:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-25 20:28 Org-capture %a expansion - create ID link Nathan Neff

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).