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

Pasting multiple lines at once with typeahead #816

Open
asmeurer opened this issue Jan 9, 2019 · 1 comment
Open

Pasting multiple lines at once with typeahead #816

asmeurer opened this issue Jan 9, 2019 · 1 comment

Comments

@asmeurer
Copy link
Contributor

asmeurer commented Jan 9, 2019

The bracketed paste to paste a bunch of lines to a single prompt doesn't seem to work properly when using typeahead. For example, copy the following lines

a
b
c

then run the following.

import time
from prompt_toolkit import prompt

time.sleep(1)

while True:
    prompt('> ')

If you paste the lines after the > prompt appears, they all paste into one prompt:

> a
b
c
>

But if you paste them before the prompt appears, they each get their own prompt:

> a
> b
> c
>
@eight04
Copy link

eight04 commented Aug 25, 2024

This looks similar to #1894

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