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

Return in single line should submit #48

Open
pesterhazy opened this issue Dec 4, 2017 · 4 comments
Open

Return in single line should submit #48

pesterhazy opened this issue Dec 4, 2017 · 4 comments

Comments

@pesterhazy
Copy link
Collaborator

If you're in a single line and press Return, that should submit the form irrespective of cursor position - unless it's incomplete.

@cgrand
Copy link
Member

cgrand commented Dec 4, 2017

Why? So I need to make a form incomplete to be able to add a newline? (if parsomething ever gets in unravel, then you will have complete forms 99% of the time). Also: ^J doesn't work for me for run, it inserts \n as usual, does it work for you?

@pesterhazy
Copy link
Collaborator Author

So I need to make a form incomplete to be able to add a newline?

How do you mean? My reasoning was (^ represents the cursor):

  • I type (-> (range) (filter odd?)^)
  • "Wait, that should be thread last"
  • (->>^ (range) (filter odd?))
  • Now I press return (like I would in Clojure or lumo)

I'd expect that to submit the form rather than insert a newline

@pesterhazy
Copy link
Collaborator Author

*submit the line

@cgrand
Copy link
Member

cgrand commented Dec 4, 2017

Then how do you insert a newline? If you assume that the only way to insert a newline is to have an unbalanced input then it's not going to play well with parfix (or parinfer when/if we try it).

What about "double return"? (a quick double stroke on the return key)

Ctrl+Return is not bad but we can't get it (is it just a problem with readline.js?). Enter used to be a solution when numerical keypads were the norm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants