Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Make project JSON more friendly for software version control #21

Closed
udif opened this issue Sep 30, 2020 · 2 comments
Closed

Comments

@udif
Copy link

udif commented Sep 30, 2020

At the moment, the script is saved as a single string with embedded newlines.
In order to make diffing different versions easier, could you please store the multiline script as a string array?
inspired by: https://stackoverflow.com/a/7744658
e.g. instead of :

    "code": "// a\n// b\n// c\n",

It would be stored as :

    "code": [
            "// a",
            "// b",
            "// c"
    ],

You could still support reading single string scripts, but write it out as a string array.

@zalo
Copy link
Owner

zalo commented Sep 30, 2020

This is a great idea! Will definitely investigate 👍

@zalo
Copy link
Owner

zalo commented Oct 2, 2020

Alrighty; it's implemented and merged.

Pre-multiline serialized projects will automatically be converted to multiline projects upon re-saving 👍

Thank you for the suggestion!

@zalo zalo closed this as completed Oct 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants