scrooloose / vim-slumlord

Inline previews for Plantuml sequence diagrams. OMG!
Do What The F*ck You Want To Public License
455 stars 35 forks source link

Is it possible to use other types of UML diagram? #8

Open AbdullahDahmash opened 6 years ago

scrooloose commented 6 years ago

Last time I checked this, plantuml couldn't not produce other diagrams in ascii output. This could have changed in the intervening year, which would be awesome, but I haven't investigated

AbdullahDahmash commented 6 years ago

I test it on https://www.planttext.com/ with their sample of the code. For example, class diagram:

@startuml

title Classes - Class Diagram

class Dwelling {
  +Int Windows
  +void Lock()
}

class Apartment
class House
class Commune

@enduml

Then I chose txt

,------------.             
|Dwelling    |  ,---------.
|------------|  |Apartment|
|+Int Windows|  |---------|
|------------|--|---------|
|+void Lock()|  `---------'
`------------'             
       |                   
       |                   
   ,-----.   ,-------.     
   |House|   |Commune|     
   |-----|---|-------|     
   |-----|   |-------|     
   `-----'   `-------'     

But some other diagrams cause problems

GLaDOS-418 commented 6 years ago

is there an alternative vim-plugin for activity diagram?