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

completion of remote paths fails on spaces #8056

Open
dskrad opened this issue Sep 6, 2024 · 3 comments
Open

completion of remote paths fails on spaces #8056

dskrad opened this issue Sep 6, 2024 · 3 comments

Comments

@dskrad
Copy link

dskrad commented Sep 6, 2024

rclone version: 1.67.0
shell: bash and fish
remote: pcloud

Shell completion of remote paths works properly when there are no spaces in the path, but fails to find matches with spaces in the path.

Oddly, I can complete a folder in the root of my remote that has a space in the name, but then cannot complete any files within that folder. If the path has no spaces, I can continue to use shell completion to find files and folders.

@ncw
Copy link
Member

ncw commented Sep 6, 2024

This was noted here but never got made into an issue #7689 (comment)

I think this is a bug in cobra and here is the fix spf13/cobra#2126

@dskrad
Copy link
Author

dskrad commented Sep 6, 2024

So this is a bug in cobra that has an unreviewed PR? How does that get applied so rclone completion can work properly?

@ncw
Copy link
Member

ncw commented Sep 6, 2024

I could fork cobra apply the patch and use that package, but that is quite a lot of work for a big package like cobra, so that is a last resort.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants