replete-repl / replete-ios

ClojureScript REPL iOS app
Eclipse Public License 1.0
396 stars 25 forks source link

Keyboard shorcut for Eval #16

Closed hiram-madelaine closed 9 years ago

hiram-madelaine commented 9 years ago

In order to test Replete I use a wireless keyboard. Is it possible to add a shortcut to eval the form ? cmd + enter

mfikes commented 9 years ago

That sounds cool. I've never delved into that part of the iOS SDK, but yeah, that would make things much easier.

hiram-madelaine commented 9 years ago

Great ! It would make sense to have access to the history with cmd+Up to be very efficient at testing.

mfikes commented 9 years ago

Added #18

hiram-madelaine commented 9 years ago

Thank you Mike ! If you need help, I would be pleased to learn Swift.

mfikes commented 9 years ago

@hiram-madelaine Absolutely! (I don't know Swift.) If you want to see if a keyboard shortcut can be hooked in, happy to take a PR!

hiram-madelaine commented 9 years ago

@mfikes I begin to learn the basics in order to feel compfortable with Swift. After that I will look into the keyboard part.

mfikes commented 9 years ago

@hiram-madelaine Awesome!

kanaka commented 9 years ago

For some point in the future, you might consider trying to read the form any time enter is pressed. If read results in a mismatched paren, bracket or curly error, then continue editing on the next line, otherwise, eval the form. I think that's a typical way that multiline entry is supported automatically in many REPLs. Just a thought.

mfikes commented 9 years ago

@kanaka yep. Your description might match Cursive, actually.

mfikes commented 9 years ago

@kanaka Yes, you are "right" IMHO with your suggestion. #27 entered. Thanks!