emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nathaniel W Griswold <nate@manicmind.earth>
To: emacs-orgmode@gnu.org
Subject: Re: Org-capture %K "Link to the currently clocked task" link with id?
Date: Wed, 19 May 2021 12:29:26 -0500	[thread overview]
Message-ID: <DEE402DC-9D43-45C4-88AB-264EAC270F44@manicmind.earth> (raw)
In-Reply-To: <EF459D47-FCA4-4A18-AFC7-3E62159F186C@manicmind.earth>

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:<UUID>` link instead of a `file:/path/to/file` link.

Nate

> On May 19, 2021, at 8:26 AM, Nathaniel W Griswold <nate@manicmind.earth> wrote:
> 
> 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.
> 
> `org-capture-fill-template` looks like this:
> 
> ...
> 	 (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)
> 		""))
> ... 
> 
> So i guess it's hardcoded to just make a bracket link.
> 
> 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?
> 
> Thank you
> 
> Nate



  reply	other threads:[~2021-05-19 17:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-19 13:26 Nathaniel W Griswold
2021-05-19 17:29 ` Nathaniel W Griswold [this message]
2021-05-24 12:25   ` Nathaniel W Griswold
2021-05-29  8:10     ` Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DEE402DC-9D43-45C4-88AB-264EAC270F44@manicmind.earth \
    --to=nate@manicmind.earth \
    --cc=emacs-orgmode@gnu.org \
    --subject='Re: Org-capture %K "Link to the currently clocked task" link with id?' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this 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).