hrgdavor / jscadui

MIT License
30 stars 9 forks source link

feature for sharing url #95

Closed hrgdavor closed 4 months ago

hrgdavor commented 8 months ago

implement share url function to export current script as gzipped data url

inital lame version adds a menu item to export image

copies the url to clipboard, and writes url to console

todo

Hermann-SW commented 8 months ago

Sounds good. You might want to evaluate whether copying into address bar is more intuitive for you. You can see what I mean by clicking on "Share" button on GraphvizFiddle and watch address bar: https://stamm-wilbrandt.de/GraphvizFiddle/ It copies current .dot file from editor window into URL, so that it can be shared or stored (urlencoded).

hrgdavor commented 8 months ago

That is one possible option, I am now thinking for save button and ctrl+s shortcut to have multichoice

This is WIP, and I have not decided on final details

Hermann-SW commented 8 months ago

I forgot one plus point of "save to address bar" — you can easily create a bookmark from that URL.