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

[Feature] Be able to paste multiple lines at once at the >>> prompt #353

Open
alankilborn opened this issue Nov 13, 2024 · 4 comments
Open

Comments

@alankilborn
Copy link

Consider these lines of text in a Notepad++ tab:

a=3
b=4
c=5

I'd like to be able to select these lines, copy them via Ctrl+c, move input focus to the PythonScript console window's >>> prompt box, and paste via Ctrl+v, with the intention that when I press Enter after that, all three of these lines would be executed, one after the other.

Currently when I attempt to paste those lines, all that gets placed in the prompt box is a=3.

Behavior current to the 3.019 pre-release.

@Ekopalypse
Copy link
Contributor

And I assume that the prompt field should be empty afterwards and have the input focus?

@alankilborn
Copy link
Author

alankilborn commented Dec 27, 2024

And I assume that the prompt field should be empty afterwards and have the input focus?

Well, someone (Yaron10, I believe) came up with "interesting" behavior for what should appear in the prompt box and when, and it was adopted, but IMO it is fubared, so... I don't know how to answer your question. :-)

EDIT: But the >>> box should have input focus afterward

@Ekopalypse
Copy link
Contributor

But it is your feature request and from my point of view something completely different than writing something manually in the prompt box, so I think this can/should work according to your own criteria. From my point of view, I would use this kind of mechanism if I want to test something against constant values, but don't want to run the script over and over again, just the function that manipulates those values.

@alankilborn
Copy link
Author

It's a minor feature request, I guess. I probably made the request when I wanted to do exactly what the opening comment of this issue says.

In general, I think the >>> box input has bigger problems.
I cringe whenever I do something where the Python interpreter thinks I need to supply a second line to something.

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