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

Pasted path cuts off at space #352

Open
JackBailey opened this issue Feb 7, 2023 · 3 comments
Open

Pasted path cuts off at space #352

JackBailey opened this issue Feb 7, 2023 · 3 comments
Assignees
Labels
python Pull requests that update Python code upstream_issue This issue is caused by an upstream package

Comments

@JackBailey
Copy link

Which operating system and Python version are you using?

macOS 11.7.2
Python 3.11.1

Which version of this project are you using?

3.1.2

What did you do?

inquirer.Path(
    "inputFile",
    message="What csv file would you like to import?",
)

Pasted in: /Users/example/Downloads/Example Folder/File With Spaces.txt

What did you expect to see?

[?] What csv file would you like to import?: /Users/example/Downloads/Example Folder/File With Spaces.txt

What did you see instead?

[?] What csv file would you like to import?: /Users/example/Downloads/Example Folder/File With

Any workaround or setting I'm missing?

@Cube707 Cube707 self-assigned this Feb 11, 2023
@Cube707
Copy link
Collaborator

Cube707 commented Feb 11, 2023

@JackBailey

I can't reproduce this on Windows. Are you sure this isn't a issue with how your terminal passes along input or how MacOS pastes from the clipboard?

@Cube707 Cube707 added question Further information is requested python Pull requests that update Python code labels Feb 11, 2023
@gaidzla
Copy link

gaidzla commented Mar 3, 2023

I have the same issue using ubuntu. My str from clipboard is cut of after a certain characters.

I tried it with the standard input function from python, everything works like expected.

inquirer.text("clipboard")
input("clipboard")

# Clipboard
https://github.com/magmax/python-inquirer/issues/352

# Output
[?] clipboard: https://github.com/magmax/python-inquirer/issues/3
clipboardhttps://github.com/magmax/python-inquirer/issues/352

@Cube707
Copy link
Collaborator

Cube707 commented Mar 3, 2023

@gaidzla This is sadly a current limitation. Pasting text has issues at the moment. They stems from how readchar (the underlaying libary) can currently not handle fast inputs, only "slow" input typed by a human. See magmax/python-readchar#95 for details

@Cube707 Cube707 added upstream_issue This issue is caused by an upstream package and removed question Further information is requested labels Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Pull requests that update Python code upstream_issue This issue is caused by an upstream package
Projects
None yet
Development

No branches or pull requests

3 participants