[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Call code block via link?
From: |
Ihor Radchenko |
Subject: |
Re: Call code block via link? |
Date: |
Sat, 10 Sep 2022 14:09:33 +0800 |
Felix Dorner <felix.dorner@gmail.com> writes:
> I have a silenced codeblock, that I postprocess to push the result (a
> password) onto the kill-ring, and then returns "Password copied" (showing
> in the status line). This works very nicely. I'm now looking for the cherry
> on the cake: I'd like to render the #+CALL as a link, e.g. something like,
> [Copy the secret thing]. Clicking/following the link would execute the call
> and my password ready to paste elsewhere. Feasible?
You can use inline babel call. See
https://orgmode.org/manual/Evaluating-Code-Blocks.html#Evaluating-Code-Blocks
If you want link specifically, see
https://github.com/yantar92/emacs-config/blob/master/config.org#src-block-links
--
Ihor Radchenko,
Org mode contributor,
Learn more about Org mode at https://orgmode.org/.
Support Org development at https://liberapay.com/org-mode,
or support my work at https://liberapay.com/yantar92