monome / norns

norns is many sound instruments.
http://monome.org
GNU General Public License v3.0
633 stars 147 forks source link

allow executing scripts without saving #473

Closed catfact closed 5 years ago

catfact commented 6 years ago

maybe this is more properly a maiden issue but would also need support in norns/lua.

clicking "run" from maiden actually saves the editor contents to disk and executes norns.script.load with the filename.

it seems like unexpected behavior, especially since a "save" button also exists.

norns/script.lua should probably have a way to accept a chunk of lua code in lieu of a filename, which seems like an easy change.

ngwese commented 6 years ago

i agree this would be more in line with traditional behavior. implementing this could either be done by sending lua code from maiden to matron or entirely accomplished in maiden by simply writing to a temporary file and having matron load that.

tehn commented 5 years ago

this works in maiden now. hotkey ctl/cmd-8 executes selected text