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

bash completions don't like files with spaces #341

Open
coderforlife opened this issue May 13, 2021 · 5 comments
Open

bash completions don't like files with spaces #341

coderforlife opened this issue May 13, 2021 · 5 comments
Labels

Comments

@coderforlife
Copy link

When using bash (and possibly other shells), trying to complete a file name with a space leads to issues. For example:

touch "hello world.txt"
yadm he<tab>

doesn't complete anything, double lists two entries hello and world.txt, if typing up to hello\ causes the word to be replaced with hello\\\ , and similarly hello\ w completes to hello\\\ w. If you are past the argument with a space then things work, for example yadm add hello\ world.txt fo<tab> will complete to yadm add hello\ world.txt foo.txt.

Interestingly, if the file that contains a space is already added to yadm, then it completes just fine regardless of where in the file you are.

@TheLocehiliosan
Copy link
Member

@coderforlife Is it possible to test if your git completions work the same way?

@coderforlife
Copy link
Author

No, git functions correctly. If I do the following:

mkdir test
cd test
git init
touch "hello world.txt"
git add he<tab>

it completes to hello\ world.txt as expected. Also works right after the space and anywhere after the space.

@TheLocehiliosan
Copy link
Member

Thanks for that test. 👍

@github-actions
Copy link

This issue has been labeled as stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions
Copy link

This issue has been labeled as stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

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

No branches or pull requests

2 participants