all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@gmail.com>
To: Felix Dorner <felix.dorner@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Call code block via link?
Date: Sat, 10 Sep 2022 14:09:33 +0800	[thread overview]
Message-ID: <875yhvzroi.fsf@localhost> (raw)
In-Reply-To: <CALG+_hB2D20ceWgz=RtYvfBVKudRE6R2RuMHfPgKK9WkUvNXZQ@mail.gmail.com>

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


  reply	other threads:[~2022-09-10  6:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-10  5:15 Call code block via link? Felix Dorner
2022-09-10  6:09 ` Ihor Radchenko [this message]
2022-09-19  9:59 ` Fraga, Eric
2022-10-05  3:28   ` Felix Dorner
2022-10-05  5:13     ` 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

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

  git send-email \
    --in-reply-to=875yhvzroi.fsf@localhost \
    --to=yantar92@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=felix.dorner@gmail.com \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.