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

Remember & Show Project filename #199

Open
gfwilliams opened this issue Dec 5, 2018 · 1 comment
Open

Remember & Show Project filename #199

gfwilliams opened this issue Dec 5, 2018 · 1 comment

Comments

@gfwilliams
Copy link
Member

It can get confusing when the IDE randomly appears with code that was saved on some other computer.

When loading/saving files it'd be nice if we could get the filename (not sure how possible this is on Chrome Web Apps vs web pages) and then save it in the IDE's settings along with the code itself.

The IDE could then show this so it'd be more obvious what code actually was.

(suggested by @IrregularShed)

@gfwilliams
Copy link
Member Author

Load/save code is here: https://github.com/espruino/EspruinoWebIDE/blob/gh-pages/js/core/file.js#L132

It looks unlikely that the online IDE will be able to get a filename for saved files, but it should be ok for the Chrome app (for as long as those last :/) or NW.js (which uses the same API)

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

1 participant