esteinberg / plantuml4idea

Intellij IDEA plugin for PlantUML
Apache License 2.0
621 stars 112 forks source link

Feature request: Auto-save images #326

Open glen-edmonds opened 2 years ago

glen-edmonds commented 2 years ago

Feature request description Add a "Save Diagram automatically" option (next to the current a "Save Diagram" action) to the context menu of the generated image.

"Save Diagram" dialog should be displayed once to allow filename to be chosen. Thereafter, when the puml changes, a new diagram image is auto-generated and saved over the top of the existing digram.

Motivation Our team saves images next to the puml file in our repo. This is so people browsing the repo, including PRs, can see the visualised version of the puml.

krasa commented 2 years ago

There would have to be some way to persist such options. How about adding a comment to the file, like this:

@startuml
'idea.autosave ../foo.png