script-lab-2017 icon indicating copy to clipboard operation
script-lab-2017 copied to clipboard

Provide the option to import a snippet into another snippet using the Libraries tab

Open jakobpn opened this issue 8 years ago • 1 comments

This would enable splitting up a larger snippet into smaller chunks and also the ability to reuse code across snippets.

Expected Behavior

Current Behavior

Possible Solution

Steps to Reproduce (for bugs)

Context

Your Environment

  • Version used:
  • Browser Name and version:
  • Operating System and version (desktop or mobile):

Useful logs

  • [ ] Fiddler traces
  • [ ] Console errors
  • [ ] Screenshots
  • [ ] Clip or GIFs

jakobpn avatar Oct 02 '17 00:10 jakobpn

I agree it would be a cool feature, and it could be useful for a variety of stuff (including dialog API). What is less clear to me is how you'd share such snippet (gist/clipboard), or what happens when you duplicate the snippet. The referencing can get hard to manage. If we really want multiple chunks, I wonder if perhaps we can support multiple script/html/css "files" within the same snippet.

We can chat more about it in person.

Zlatkovsky avatar Oct 02 '17 03:10 Zlatkovsky