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 · Fixed by #9781
Closed

Allow pasting multiple lines in the Python Console #9776

LeonarddeR opened this issue Jun 19, 2019 · 2 comments · Fixed by #9781
Milestone

Comments

@LeonarddeR
Copy link
Collaborator

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
Copy link
Collaborator

JulienCochuyt 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
Copy link
Collaborator Author

LeonarddeR commented Jun 21, 2019 via email

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 pushed a commit that referenced this issue Jul 1, 2019
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
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants