* ox-hugo-like "DWIM" cope for other exporters?
@ 2018-09-27 20:09 Matt Price
0 siblings, 0 replies; 4+ messages in thread
From: Matt Price @ 2018-09-27 20:09 UTC (permalink / raw)
To: Org Mode
[-- Attachment #1: Type: text/plain, Size: 1133 bytes --]
Kaushal's ox-hugo includes a "Do what I mean" scope which is different
from other exporters I've seen. It goes up the heading tree looking for a
heading with the "export_file_name" property set, and exports from there,
or if it doesn't find one, from the whole file. The code is here:
https://github.com/kaushalmodi/ox-hugo/blob/2be4bc02629bee8848f868fdfc35d9904a82d53a/ox-hugo.el#L3581
I find this feature incredibly useful, and I've copied the function to work
with ox-reveal as well. For both of these export formats, I tend to write
iteratively, checking the appearance of the rendered document as I go.
Though it's not particularly difficult to move traverse the org-document
before calling the export dispatcher and choosing the subtree scope, it
takes some mental effort and tends to distract me from writing. Kaushal's
code really helps me with that slight relief of mental burden.
I've just been sitting here wondering if this scope would be worth
introducing at a more basic level, so that it could be available to a wider
set of exporters. Have other people been making use of it? What do you
think?
Thanks,
Matt
[-- Attachment #2: Type: text/html, Size: 1498 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* ox-hugo-like "DWIM" cope for other exporters?
@ 2018-09-30 0:21 Thomas S. Dye
2018-10-02 17:44 ` Kaushal Modi
0 siblings, 1 reply; 4+ messages in thread
From: Thomas S. Dye @ 2018-09-30 0:21 UTC (permalink / raw)
To: moptop99; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 154 bytes --]
Aloha Matt,
I've often wished LaTeX export had this capability. I'd certainly be
happy if this were a feature of all the exporters.
All the best,
Tom
[-- Attachment #2: Type: text/html, Size: 253 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ox-hugo-like "DWIM" cope for other exporters?
2018-09-30 0:21 ox-hugo-like "DWIM" cope for other exporters? Thomas S. Dye
@ 2018-10-02 17:44 ` Kaushal Modi
2018-10-02 19:40 ` Nicolas Goaziou
0 siblings, 1 reply; 4+ messages in thread
From: Kaushal Modi @ 2018-10-02 17:44 UTC (permalink / raw)
To: tsdye.com; +Cc: emacs-org list
[-- Attachment #1: Type: text/plain, Size: 611 bytes --]
On Sat, Sep 29, 2018 at 8:23 PM Thomas S. Dye <tsdye.com@gmail.com> wrote:
> Aloha Matt,
>
> I've often wished LaTeX export had this capability. I'd certainly be
> happy if this were a feature of all the exporters.
>
Hello Tom, Matt,
I can work on a DWIM scope that's generic. For ox-hugo, the criteria for
the start of export scope is simple: EXPORT_FILE_NAME must not be "". I
believe this should apply to other exporter backends too. (I needed, that
criteria can be made configurable too).
@Nicolas: If this another scope can be baked into the existing exporters in
Org source, I can get working on it.
[-- Attachment #2: Type: text/html, Size: 1022 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ox-hugo-like "DWIM" cope for other exporters?
2018-10-02 17:44 ` Kaushal Modi
@ 2018-10-02 19:40 ` Nicolas Goaziou
0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Goaziou @ 2018-10-02 19:40 UTC (permalink / raw)
To: Kaushal Modi; +Cc: tsdye.com, emacs-org list
Hello,
Kaushal Modi <kaushal.modi@gmail.com> writes:
> @Nicolas: If this another scope can be baked into the existing exporters in
> Org source, I can get working on it.
Sure, go ahead. Don't forget the tests :)
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-10-02 19:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-30 0:21 ox-hugo-like "DWIM" cope for other exporters? Thomas S. Dye
2018-10-02 17:44 ` Kaushal Modi
2018-10-02 19:40 ` Nicolas Goaziou
-- strict thread matches above, loose matches on Subject: below --
2018-09-27 20:09 Matt Price
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).