asciidoctor-intellij-plugin icon indicating copy to clipboard operation
asciidoctor-intellij-plugin copied to clipboard

RfE: Extract type specific includes from embedded source

Open ascheman opened this issue 1 year ago • 0 comments

Why the new feature should be added

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.

How the new feature should work

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?

ascheman avatar Oct 29 '23 13:10 ascheman