solana-playground icon indicating copy to clipboard operation
solana-playground copied to clipboard

[Feature Request] Code snippet sharing

Open mryalamanchi opened this issue 2 years ago • 3 comments

Just riffing with the idea of code snippet sharing on SolPg.

  • Share code snippets with a shortened URL, makes sharing small PoCs easier for devs.
  • Have an option to import the code from a git repo like GitHub (May cause an issue with Anchor.toml, Cargo.toml file imports)
  • Have an option to export the files from SolPg into a compressed package.

mryalamanchi avatar May 04 '22 08:05 mryalamanchi

I understand that this feature is a complex one to do single-handedly, kindly suggest where you may need help if you were to build this out!

Devs should be happy to contribute!

mryalamanchi avatar May 04 '22 08:05 mryalamanchi

Yes, all of these features are needed for better experience.

Share code snippets with a shortened URL, makes sharing small PoCs easier for devs.

Added this recently, haven't announced yet but you can use the feature currently. Example. There is a share button in explorer page.

I understand that this feature is a complex one to do single-handedly, kindly suggest where you may need help if you were to build this out!

I appreciate any help and you can work on this if you'd like, but this features are probably too difficult for new people to implement. I will be opening some easier issues for people to implement if they want to contribute.

acheroncrypto avatar May 04 '22 13:05 acheroncrypto

I totally missed the share feature. It works!

mryalamanchi avatar May 04 '22 20:05 mryalamanchi

Share code snippets with a shortened URL, makes sharing small PoCs easier for devs. Have an option to import the code from a git repo like GitHub (May cause an issue with Anchor.toml, Cargo.toml file imports) Have an option to export the files from SolPg into a compressed package.

Closing this as all 3 of these requests have been implemented.

acheroncrypto avatar Sep 02 '22 12:09 acheroncrypto