[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to get the content of a code block by its name?
From: |
Kyle Meyer |
Subject: |
Re: How to get the content of a code block by its name? |
Date: |
Thu, 11 Feb 2021 23:50:52 -0500 |
Rodrigo Morales writes:
> * The question
>
> Let's suppose I have this simple code block in a buffer (let's say
> =A=)
>
> #+NAME: five-numbers
> #+begin_src bash
> echo foo
> seq 1 5
> echo bar
> #+end_src
>
> How can I get the content of the code block with name =five-numbers=
> as an string from any point in buffer =A=?
This came up somewhat recently, and there were a couple of suggestions:
https://orgmode.org/list/CA+pajW+jViTPE2cwTZ=tHVZyHjrT000-BB6JK2ntE4P9UFBmpQ@mail.gmail.com/T/#u