-
-
Notifications
You must be signed in to change notification settings - Fork 622
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
Handle paths with spaces #68
Comments
Ahh super interesting. Maybe the tab-completion should add the quotes. How do you feel about that? |
Thanks for reporting @jessejoe! |
To me, having the completer add the quotes feels like the right thing. I started working on this, but it looks like it is going to be difficult to get something that feels "right." That is, it's easy to make the completer add the quotes. But it seems like it will be hard to get it to complete halfway-finished quoted strings (particularly after a space). So if we have a directory called This is maybe fine, but the downside is if we do: tab complete, backspace, tab; then it will not re-complete to the right value. I will submit a pull request with what I have now in case it helps, but it isn't perfect. |
Cool, It seems like the right thing to do to me would be to insert quotes on both sides, though. I'll check out your PR. |
Adding quotes seems okay, that's what |
Adding quotes or not seems like the kind of thing that could easily be configure by an environment variable. If you wanted to add that behavior, that would be great! |
I am closing this in favor of #181. |
When you tab complete folders with spaces in them, the spaces are not delimited with
\
, so you have to instead put quotes around them:Adding the the
\
instead doesn't work either (maybe why they aren't added during tab completion?):This is on OSX with xonsh
0.1.2
.The text was updated successfully, but these errors were encountered: