asciidoctor / asciidoctor-diagram

:left_right_arrow: Asciidoctor diagram extension, with support for AsciiToSVG, BlockDiag (BlockDiag, SeqDiag, ActDiag, NwDiag), Ditaa, Erd, GraphViz, Mermaid, Msc, PlantUML, Shaape, SvgBob, Syntrax, UMLet, Vega, Vega-Lite and WaveDrom.
http://asciidoctor.org
MIT License
445 stars 109 forks source link

RfE: Extract type specific includes from embedded source. #446

Closed ascheman closed 1 year ago

ascheman commented 1 year ago

As a power user of the plugin I would like to get a respective file extension (and title) when extracting embedded source code, in particular PlantUML.

When extracting an include from a source block it currently looks like this:

image

I'd rather like to get a type specific file name (e.g., puml for PlantUML blocks):

image

If a file name was given in the block head, it would furthermore be great, if the filename could be used as proposal for the include file. In the case above the filename was example, so the proposed name should be example.puml finally.

image

In an Antora context it would also be great, if the generated file would be moved to the respective Antora partials directory, e.g., examples. As discussed via personal communication, I am not yet sure whether puml files should be moved to the images partials directory?

ahus1 commented 1 year ago

I suppose this issue should be moved to the GitHub repo of the AsciiDoc IntelliJ plugin.

ascheman commented 1 year ago

Of course, sorry, have been very busy with GH today and obviously opened the wrong repo without double checking.

ascheman commented 1 year ago

Reopened as https://github.com/asciidoctor/asciidoctor-intellij-plugin/issues/1458