prompt-toolkit / python-prompt-toolkit

Library for building powerful interactive command line applications in Python
https://python-prompt-toolkit.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
9.28k stars 715 forks source link

PathCompleter does not complete on paths with spaces #173

Open pombredanne opened 8 years ago

pombredanne commented 8 years ago

Once you have selected a path segment with spaces, completion stops. The issue is about likely quoting and un-quoting the path (with os-specific rules) or about the fact I use a grammar-based completer.

I will come with tests first.

jonathanslenders commented 8 years ago

We have two different completers:

I'm not sure about which completer you experience issues.

However. I just noticed that SystemCompleter doesn't understand that the executable (the first parameter) can also be quoted. This needs to be fixed.

Jonathan