peele / plantuml-preview

Atom package.
MIT License
23 stars 13 forks source link

Make generated images temporary #3

Closed mbodmer closed 9 years ago

mbodmer commented 9 years ago

Hi, thanks for this great plugin.

It would be nice if plantuml-preview would not generate the image files into the same directory where the source file is located.

The generated files should be temporary instead. This would not "contaminate" the source directory with generated files.

Keep up the good work.

regards, Marc

peele commented 9 years ago

Thank you. I see a few options and some clarification would help:

I appreciate your feedback. Specifying an output directory would be the simplest option.

Edit 2015/08/15 Another alternative is the OS temporary directory. Not sure how pipe handles multipage diagrams and I view that as a key feature.

peele commented 9 years ago

Output to OS temporary directory added to version 0.6.0. The global setting defaults to false. Setting to true will set the initial behavior for all previews. Setting can be controlled for each preview, does not affect the global setting.

mbodmer commented 9 years ago

Sorry to not give feedback sooner. What you did looks reasonable, thank you.