qjebbs / vscode-plantuml

Rich PlantUML support for Visual Studio Code.
MIT License
1.09k stars 155 forks source link

Add support for opening and saving embedded code [Feature Request/Idea] #434

Open chipbite opened 3 years ago

chipbite commented 3 years ago

Feature Request / Idea:

Add support for: Opening and saving plantuml code embedded in image files

Background: PlantUML supports creating image files (e g png's/svg's) with the plantuml diagram code embedded in the image file. However, there is (AFAIK) no good workflow for working with the plantuml diagrams in this way, from an editor and preview perspective. Compare this to drawio, which also supports storing the diagram code (in that case, drawio XML) in the image file, but where the editor can open said image file and allow it to be edited and saved/updated - there is a workflow. This idea proposes that the plantuml vs code extension could support and enable such a workflow for vs code, by supporting opening the plantuml diagram code from the image file where it is embedded and saving it back when updated.


So

Thanks for a great plugin!

fuhrmanator commented 3 years ago

With PNG and SVG the source is already embedded, in case you need more info:

PNG: https://plantuml.com/command-line#ce21470ab49d1d19 SVG: https://forum.plantuml.net/5797/please-add-the-diagram-source-code-svg-file-like-done-for-files?show=5799#a5799

chipbite commented 3 years ago

Hi @fuhrmanator - thanks for your reply and reading my idea.
Given your reply I realize that the idea must have been easy to misunderstand, so I have updated the description of the idea to try and avoid others being confused.

Can you help me, is the idea more clear now?

fuhrmanator commented 3 years ago

It's clear to me. I'm pretty busy with other projects right now, but I will be happy to help out eventually.