monome / maiden

web based editor and repl for norns
GNU General Public License v3.0
47 stars 33 forks source link

implicit script new should land in `dust/code/untitled.lua` #160

Closed ngwese closed 3 years ago

ngwese commented 5 years ago

the editor component (ace) holds the currently edited buffer state internally. when the ui changes such that the editor is no longer rendered (such as when switching to the project activity) or a new file is selected and the existing one hasn't been saved a new untitled.lua file is created in memory in order to retain any edits.

the naming/placement logic assumes the pre norns 2.0 "scripts" directory structure and creates a new file at the root of the dust tree and not under dust/code as it should.

partially fixed as of: 771e26f82632627928ef642f46a9696521c67495