-
Notifications
You must be signed in to change notification settings - Fork 151
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
Make filename completion work with prefixes that contain spaces #140
Comments
Completing filenames with spaces is a known problem. Suppose you type
(note: I omit the tilde Of course, any human or intelligent alien will see that you are looking for files like So how do shells and shell-like programs solve this? Lets try that out:
press TAB again:
As you can see, Why can't (cf. this page for a more thorough explanation) The most general way to solve this is using a filter. A filter will receive the entire input line (not just the prefix) and can decide much more flexibly what to include in the prefix, it could even backtrack through the entire input line to see whether some prefix matches an existing file. A more user-friendly (but also more complicated) solution would be to give the For now, I will morph your bug report into a feature request. Thanks for the report! |
Thanks for your reply. I will have a look at the filters. Didn't know them. The |
I have the following directory structure
Then I start rlwrap with
rlwrap -c cat
and start typing~/he<TAB>
completion works as expected
~/hello world/<TAB>
completion does not find test
Is there a possibility to get completion running in such a situation?
The text was updated successfully, but these errors were encountered: