typora / typora-issues

Bugs, suggestions or free discussions about the minimal markdown editor — Typora
https://typora.io
1.53k stars 58 forks source link

FlowChart and SequenceChart #12

Closed surpmillet closed 8 years ago

surpmillet commented 8 years ago

have you ever thought about to add FlowChart and SequenceChart in your roadmap?

abnerlee commented 8 years ago

In recent update plans, no.

I think drag/drop is most easy and fast way to create charts. Current markdown syntax for FlowChart/SequenceChart is too geek. However, if I integrate FlowChart/SequenceChart in typora's way, in other words, providing easy-to-use user interface for creating/modifying charts, it will be too much work.

Besides, I'm not sure how many users would write FlowChart/SequenceChart in markdown.

mshijie commented 8 years ago

+1 for this Feature.

augustblizzard commented 8 years ago

+1 me too

vassudanagunta commented 8 years ago

I agree that adding FlowChart/SequenceChart go against Typora's mission of being "a truly minimal markdown editor". But if you decide to do it, take a look at WebSequenceDiagrams. It uses a very simple plain text syntax that is the Markdown of sequence diagrams! Amazingly simple and intuitive. Almost natural language.

They even support embedding if it makes more sense than replicating the functionality natively within Typora. Looks like there is an open source clone: JS Sequence Diagrams.

Some other plain text diagram tools I found:

I haven't found one for flow charts, but good chance one exists, or a tweak of yUML might be enough.

smallx commented 8 years ago

-1

LongshengDu commented 8 years ago

:+1: I think FlowChart feature would be great. Simple one like flowchart.js with Preview is enough.

coolgoose85 commented 8 years ago

+1 Also look at this https://marxi.co

Flow charts

st=>start: Start
e=>end
op=>operation: My Operation
cond=>condition: Yes or No?

st->op->cond
cond(yes)->e
cond(no)->op

Sequence diagrams

Alice->Bob: Hello Bob, how are you?
Note right of Bob: Bob thinks
Bob-->Alice: I am good thanks!
markchou commented 8 years ago

+1 for this Feature.

abnerlee commented 8 years ago

Supported in new version -> http://support.typora.io/Draw-Diagrams-With-Markdown/

AlexPasternak commented 8 years ago

@abnerlee, I'm just curious, why is support for these features opt-in via Preferences? Is it just to avoid extra processing? I.e., someone is unlikely to type in ​```flow by accident, so why not just always process and support this, vs. requiring someone to check the checkbox first in Preferences (which also requires a restart)?

abnerlee commented 8 years ago

flow, sequence and mermaid will be available as auto-complete candidate when user input "```". so user may still create charts (by accident) without knowing how to write a chart if these features are enabled by default.

AlexPasternak commented 8 years ago

Isn't that like arguing that Java should be opt-in via Preferences because someone could accidentally type in ```java without knowing how to code in Java? 😊 But OK.

pakirby1 commented 7 years ago

Unable to get diagrams to work:

I have this:

Title: Here is a title
A->B: Normal line
B-->C: Dashed line
C->>D: Open arrow
D-->>A: Dashed open arrow

Alice->Bob: Hello Bob, how are you?
Note right of Bob: Bob thinks
Bob-->Alice: I am good thanks!

and I get the following error:

[Sequence]Parse error on line 1:


-----------^
Expecting ',', 'LINE', 'DOTLINE', 'MESSAGE', got 'NL'
xlicz commented 6 years ago

+1, same error.

jleaders commented 5 years ago

This works and I don't know why. I also don't know why Window Cleaning is repeated

```sequence Title: Here is a title MultiIndustry->Window Cleaning: Multi MultiIndustry->Landscaping: MultiIndustry->Refrigerator Repair: ```

Spritan commented 4 years ago

I am having some problems with flow chart

st=>start: Start
op1=>operation: Sum=0
cond=>condition: More cards in Pile 1?
op2=>operation: pick a card X from pile 1
op3=>operation: Move X to pile 2
op4=>operation: Add CardX's Maths Score To Sum
e=>end

st->op1->cond
cond(no)->e
cond(yes)->op2->op3->op4->cond

my output image my desired output image