Skip to content

repl: don't blink the opening paren after typing a closing paren #4761

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

Merged
merged 1 commit into from
Jul 4, 2018

Conversation

smarter
Copy link
Member

@smarter smarter commented Jul 4, 2018

No description provided.

@smarter smarter requested a review from allanrenucci July 4, 2018 15:40
.variable(SECONDARY_PROMPT_PATTERN, "%M") // A short word explaining what is "missing",
// this is supplied from the EOFError.getMissing() method
.variable(LIST_MAX, 400) // Ask user when number of completions exceed this limit (default is 100).
.variable(BLINK_MATCHING_PAREN, 0) // Don't blink the opening paren after typing a closing paren.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at the implementation, it should be a Long

@Blaisorblade
Copy link
Contributor

Why? Just tried this out, looks potentially useful to me.

@smarter
Copy link
Member Author

smarter commented Jul 4, 2018

I find it distracting, it's also a change from the existing behavior. We may want to expose the JLine configuration variables in a configuration file somewhere to let people customize whatever they want.

@smarter smarter merged commit 94d8e94 into scala:master Jul 4, 2018
@smarter
Copy link
Member Author

smarter commented Jul 4, 2018

A better solution I think would be to do what text editors usually do and highlight both parens when the cursor is on one of the paren, we should be able to do that based on the information we have after parsing.

@Blaisorblade Blaisorblade deleted the repl-no-blink branch July 5, 2018 00:10
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

Successfully merging this pull request may close these issues.

3 participants