emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to get the contents of an Org subtree?
@ 2023-07-25  4:58 Marcin Borkowski
  2023-07-25  5:19 ` Ihor Radchenko
  0 siblings, 1 reply; 3+ messages in thread
From: Marcin Borkowski @ 2023-07-25  4:58 UTC (permalink / raw)
  To: Org-Mode mailing list

Hi all,

I want to get the contents ("text") of a subtree.  Without the heading,
without the drawers - just the text.  For example, for this:

--8<---------------cut here---------------start------------->8---
** Title
:PROPERTIES:
:CUSTOM_ID: whatever
:END:
This is the text.
--8<---------------cut here---------------end--------------->8---

I need the string "This is the text.".

How to do that?

-- 
Marcin Borkowski
http://mbork.pl


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to get the contents of an Org subtree?
  2023-07-25  4:58 How to get the contents of an Org subtree? Marcin Borkowski
@ 2023-07-25  5:19 ` Ihor Radchenko
  2023-07-25 14:54   ` Marcin Borkowski
  0 siblings, 1 reply; 3+ messages in thread
From: Ihor Radchenko @ 2023-07-25  5:19 UTC (permalink / raw)
  To: Marcin Borkowski; +Cc: Org-Mode mailing list

Marcin Borkowski <mbork@mbork.pl> writes:

> I want to get the contents ("text") of a subtree.  Without the heading,
> without the drawers - just the text.

org-agenda-get-some-entry-text

-- 
Ihor Radchenko // yantar92,
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>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to get the contents of an Org subtree?
  2023-07-25  5:19 ` Ihor Radchenko
@ 2023-07-25 14:54   ` Marcin Borkowski
  0 siblings, 0 replies; 3+ messages in thread
From: Marcin Borkowski @ 2023-07-25 14:54 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: Org-Mode mailing list


On 2023-07-25, at 07:19, Ihor Radchenko <yantar92@posteo.net> wrote:

> Marcin Borkowski <mbork@mbork.pl> writes:
>
>> I want to get the contents ("text") of a subtree.  Without the heading,
>> without the drawers - just the text.
>
> org-agenda-get-some-entry-text

Thanks!  This was far from obvious, but works exactly as I needed!

Best,

-- 
Marcin Borkowski
http://mbork.pl


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-07-25 14:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-25  4:58 How to get the contents of an Org subtree? Marcin Borkowski
2023-07-25  5:19 ` Ihor Radchenko
2023-07-25 14:54   ` Marcin Borkowski

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