ox-ipynb icon indicating copy to clipboard operation
ox-ipynb copied to clipboard

Export scope not respected

Open ligon opened this issue 6 years ago • 3 comments

The export dispatcher allows one to export either the entire buffer or a subtree by setting "Export scope".

ox-ipynb doesn't seem to respect this, and instead just exports the entire buffer?

One work-flow for me involves putting all my lecture notes into a single file, with a top-level headline for each lecture. It would be very convenient to be able to set the relevant scope from the dispatch buffer.

Thanks for considering!

ligon avatar Jan 27 '19 16:01 ligon

I don't know if it is possible to do this. What you can do is manually narrow to the subtree you want to export, and then export it. ox-ipynb isn't a regular kind of exporter, so it doesn't support some things the usual ones do.

jkitchin avatar Jan 27 '19 23:01 jkitchin

So I wonder why it isn't possible to simply use the specified export scope to decide whether to narrow to the current subtree or not first? I think this is the way that ox.el suggests.

Not to be an ingrate--this is a really nice tool!

ligon avatar Jan 28 '19 06:01 ligon

If you can figure out and make sure it works, pull requests are welcome.

jkitchin avatar Jan 28 '19 12:01 jkitchin