monome / maiden

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

eval evaluates current line if nothing selected + Ctl-Enter evals #211

Closed schollz closed 3 years ago

schollz commented 3 years ago

this PR pulls in an idea from SuperCollider: that Ctl+Enter will evaluate the current line or the current selection. to do this I made two changes:

why? this PR makes maiden easier to use as a live coding environment. I've started using maiden as a live-coding environment but currently I'm doing this with vim with special bindings+utilities to send lines to maiden. however, I thought if I were to make this available to other people it would be great to have the "send current line" functionality available in maiden, which is much easier to use than vim.

of course, feel free to completely ignore this PR for any reason :)

ngwese commented 3 years ago

cool. thx for the PR