Skip to content

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

Open

Description

@alankilborn

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.

Activity

  1. Ekopalypse commented on Dec 27, 2024

    @Ekopalypse
    Contributor

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

  2. alankilborn commented on Dec 27, 2024

    @alankilborn
    Author

    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

  3. Ekopalypse commented on Dec 27, 2024

    @Ekopalypse
    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.

  4. alankilborn commented on Dec 27, 2024

    @alankilborn
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions