ArthurSonzogni / Diagon

Interactive ASCII art diagram generators. :star2:
https://arthursonzogni.com/Diagon/
MIT License
1.47k stars 56 forks source link

Feature wish for website: Being able to link to snippts via URL #76

Open bluenote10 opened 1 month ago

bluenote10 commented 1 month ago

First of all: Thank you very much for creating and maintaining this nice little piece of software!

One thing that would be really great: As far as I can see, it is currently not possible to link (and persist) snippets written on the website. This would be very useful because it would allow storing a link locally, and then later come back to the "source" of the snippet and perform modifications.

The simplest possible implementation would be to "store" the snippet as a query parameter to the URL itself, e.g. in base64 encoding. There may be length limitations, but it could already cover basic usage.

Linking some more prior art, which seem to solve the issue by writing to GitHub gists and adding a reference to them in the URL: