jvantuyl / sublime_diagram_plugin

A Plug-In for Sublime Text 2 / 3 To Render Diagrams In Your Source Code
Other
436 stars 116 forks source link

Request: Option to display preview in sidebar during typing #61

Open arenaq opened 6 years ago

arenaq commented 6 years ago

Would it be possible to do something like that? Or at least update a file automatically so that user can put it on 2nd monitor.

IntelliJ has a plugin that can do this and I have to say it is quite useful.

evandrocoan commented 6 years ago

Like this (https://github.com/qjebbs/vscode-plantuml#preview-and-export-demos)?

arenaq commented 6 years ago

Yes, exactly like that. Shouldn't be hard to implement, right?

evandrocoan commented 6 years ago

@arenaq, I just implemented this on my fork. You need to run the command

  1. PlantUmlDiagrams: Continually Generate Diagram

This will continually generate the diagram, but it will not set the 2 column automatically, you need to create 2 panels and drag the opened image to the other panel manually:

image

arenaq commented 6 years ago

@evandrocoan so it is just viewing of file and re-generating the file on every change? that does not seem to be very nice to a HDD, would be nice to do this in memory only

evandrocoan commented 6 years ago

I do not have problems with that. As it is, it just works. I am not sure whether you can open an image with Sublime Text using in memory only image.