Re: How to get the content of a code block by its name?

2021-02-12 Thread Rodrigo Morales
Kyle Meyer writes: > This came up somewhat recently, and there were a couple of suggestions: > https://orgmode.org/list/CA+pajW+jViTPE2cwTZ=thvzyhjrt000-bb6jk2nte4p9ufb...@mail.gmail.com/T/#u Thanks for the information! That was really helpful. I retrieved some information from that post and w

Re: How to get the content of a code block by its name?

2021-02-11 Thread Kyle Meyer
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 fro

How to get the content of a code block by its name?

2021-02-11 Thread Rodrigo Morales
* 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=? * Additional informa