You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Completing paths which include spaces does not work currently, as the space is part of the DEFAULT_BREAK_CHARS array and so extract_word does not extract the whole path.
Yes, using shell-escape seems better than trying to come up with our own logic. However, it always escapes using single quotes on unix, which might not be the desired behaviour (but it certainly is the simplest). Using it only for windows also seems possible, what do you think?
I guess unescape is missing, because it is only ever needed when actually writing a shell. But it shouldn't be too difficult to write a parser for quoted strings for windows. We also need to update extract_word to recognize these partially quoted strings correctly: ls "my pict<TAB>
I will see if I can come up with a pull request implementing this.
Completing paths which include spaces does not work currently, as the space is part of the
DEFAULT_BREAK_CHARS
array and soextract_word
does not extract the whole path.A workaround is to remove it from the list and making sure that you only pass the path without any prefix to the
FilenameCompleter
.A proper fix would probably be doing what windows does: Adding quotes around the path if it contains a space.
The text was updated successfully, but these errors were encountered: