tone-row / flowchart-fun

Easily generate flowcharts and diagrams from text ⿻
https://flowchart.fun/
MIT License
3.15k stars 229 forks source link

Saving/exporting/importing/tabs/bookmarks? #57

Closed VictorioBerra closed 3 years ago

VictorioBerra commented 3 years ago

Some features that would be super useful:

rob-gordon commented 3 years ago

entire chart save in query string for easy bookmarking?

This is the solution I've had my eye on for a while. Just haven't had time to implement. The others are cool ideas as well.

Thanks for the feedback!

rob-gordon commented 3 years ago

@dionsaputra Going to keep this Issue open because there is another feature I want to remember to add 👍

dionsaputra commented 3 years ago

@rob-gordon thankyou for merged my previous PR. I was realized that it does not necessary to save complex json from cytoscape to generate the graph back. The syntax in text-editor is sufficient to do it, I have open another PR (#61) to export & import using the text in editor

rob-gordon commented 3 years ago

@VictorioBerra wanted to mention you can now store separate charts at separate url's. See this for an example.

I'm leaving this issue open because I plan on implementing the query string idea soon as well, although more for read-only sharing purposes.

VictorioBerra commented 3 years ago

@rob-gordon thanks! How do I save my URL?

rob-gordon commented 3 years ago

@rob-gordon thanks! How do I save my URL?

I might add a small navigation to move between charts in the future but for now you'll need to bookmark it / remember it.

VictorioBerra commented 3 years ago

Ohh, I meant when you hit the page, does it generate a moniker style url? https://www.npmjs.com/package/moniker

In the twitter gif, it wasn't clear how the URL is created.

rob-gordon commented 3 years ago

Ah I see. Sorry it's not clear. You choose the url! (Just by typing it in)

rob-gordon commented 3 years ago

@VictorioBerra Added a small Share button as well which opens a link to a read-only version of the chart, stored in the url, like you mentioned.

I'm going to go ahead and close this issue. Thank you for all the suggestions!