all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ista Zahn <istazahn@gmail.com>
To: emacs-orgmode Mailinglist <emacs-orgmode@gnu.org>
Subject: Export each top level heading to separate file
Date: Sat, 4 Jan 2014 17:29:02 -0500	[thread overview]
Message-ID: <CA+vqiLGq-V0LN9T_1GpmLiPWg6vf42Mn74M2=D848TwYLW7q7g@mail.gmail.com> (raw)

Hi all,

I'm looking for a way to export each top-level heading to a separate
markdown file. Ideally I would like to have the exported files named
according to the heading. For example I would like this org file

-----------------------------------
* Section one
Section one text
* Section two
** Section two a
Section two text
* Section three
Section three text
-----------------------------------

To generate three files:

--- Section one.md ---
Section one text

-----------------------------------

--- Section two.md---
## Section two a

Section two text

-----------------------------------

--- Section three.md -
# Section three

Section three text

-----------------------------------

I suspect that the publishing framework might support this, but I've
thus far avoided it because it looks pretty complicated to set up.
Before I dive in I'd like to know if the publishing framework is the
correct place to look for this functionality or if there is an easier
way to do it.

Thanks,
Ista

             reply	other threads:[~2014-01-04 22:29 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-04 22:29 Ista Zahn [this message]
2014-01-04 22:45 ` Export each top level heading to separate file Charles Millar
2014-01-04 23:41   ` Alan L Tyree
2014-01-05  0:36     ` Ista Zahn
2014-01-05  2:44       ` Alan L Tyree
2014-01-05 13:40       ` John Kitchin
2014-01-05 19:49         ` Ista Zahn
2014-01-05 21:56           ` John Kitchin
2014-01-06  0:55             ` Ista Zahn
2014-01-05 18:34     ` Charles Millar
  -- strict thread matches above, loose matches on Subject: below --
2014-01-06  1:51 Marvin Doyley

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='CA+vqiLGq-V0LN9T_1GpmLiPWg6vf42Mn74M2=D848TwYLW7q7g@mail.gmail.com' \
    --to=istazahn@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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.