You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Thanks! That sounds great!

    Are you able to implement it? It seems like you've got two options...

    • Add a plugin (https://github.com/espruino/EspruinoWebI­DE/blob/master/js/plugins/_examplePlugin­.js) that displays a new 'watch file' button. Once the file is selected you update the editor contents (Espruino.Core.Code.set...) and callEspruino.Core.Code.getEspruinoCode(Espru­ino.Core.CodeWriter.writeToEspruino);` to write the data.
    • Actually modify the existing 'open' button to use the new API. It could have a drop-down like the upload button does at the moment to choose whether to watch the file for changes or not.

    The benefit of the 'open' modification is we could actually get save working nicely too (without a popup each time) which would be a really nice addition

About

Avatar for Gordon @Gordon started