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

allow executing scripts without saving #473

Closed
catfact opened this issue Jul 18, 2018 · 2 comments
Closed

allow executing scripts without saving #473

catfact opened this issue Jul 18, 2018 · 2 comments

Comments

@catfact
Copy link
Collaborator

@catfact catfact commented Jul 18, 2018

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
Copy link
Member

@ngwese ngwese commented Jul 19, 2018

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
Copy link
Member

@tehn tehn commented Apr 7, 2019

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

@tehn tehn closed this Apr 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants