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

can't paste multi-line code #113

Closed
Ken-B opened this issue Feb 21, 2018 · 3 comments
Closed

can't paste multi-line code #113

Ken-B opened this issue Feb 21, 2018 · 3 comments

Comments

@Ken-B
Copy link

Ken-B commented Feb 21, 2018

First of all, thank you for this great package!

This is just a minor issue, but I thought to ask anyway, as I run into this regularly lately.

Is there a way to copy past multi-line code without auto-closing the brackets?

E.g.

x = 2 * (3 
    +5)

will copy past into

julia> x = 2 * (3 )
6

julia>     +5)

Best regards,
Ken

@KristofferC
Copy link
Owner

KristofferC commented Feb 21, 2018

This is Windows I take it? The problem with copy-pasting on Windows is that it is literally like manually typing the keys really quickly. And when the ( is pressed, the auto bracket matcher happily inserts a ) for you. The only way to solve this on Windows is to disable the bracket matcher with enable_autocomplete_brackets(false). On more modern terminals, there are some escape characters in the beginning and the end when something is copy pasted which can be detected.

@Ken-B
Copy link
Author

Ken-B commented Feb 21, 2018

Indeed, it's on windows (PuTTY). Just checked and on mac I don't get this behaviour.
Thanks for the explanation and workaround!
Feel free to close if you don't think it's feasible or worthwhile to fix.

@KristofferC
Copy link
Owner

This is now disabled by default on windows.

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