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

Allow pasting multiple lines in the Python Console #9776

Closed
leonardder opened this issue Jun 19, 2019 · 2 comments

Comments

@leonardder
Copy link
Collaborator

commented Jun 19, 2019

Is your feature request related to a problem? Please describe.

It is currently impossible to paste more than one line in the python console. It would be handy if this could be possible, as it will make copying and testing code from the console easier.

Describe the solution you'd like

I think we should make the input control multi line as well, however it should of course keep the navigable history feature.

@JulienCochuyt

This comment has been minimized.

Copy link
Contributor

commented Jun 20, 2019

On my own Python console tweaking addon, I kept the field single line but added support to paste multiple lines like in a regular Python console.
I could prepare a PR out of it if you like.

Btw, other tweaks I use that one might find handy:

  • Preserve the underscore variable that stores the result of the last execution, while keeping the global gettext untouched.
  • Key bindings in the output pane to jump to next/previous result.
@leonardder

This comment has been minimized.

Copy link
Collaborator Author

commented Jun 21, 2019

JulienCochuyt added a commit to accessolutions/nvda that referenced this issue Jun 21, 2019

JulienCochuyt added a commit to accessolutions/nvda that referenced this issue Jun 21, 2019

@nvaccessAuto nvaccessAuto added this to the 2019.3 milestone Jul 1, 2019

feerrenrut added a commit that referenced this issue Jul 1, 2019

Allow pasting multiple lines in the Python Console (PR #9781)
In the Python Console, the input field now supports pasting multiple lines from the clipboard.

Fixes #9776
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.