If I start to type in a filepath by itself, and tab complete it, it works great, i.e.
In [1]: ~
[TAB]
In [1]: /Users/zhermes/
But if it's inside a quotation, it also auto-closes the quotation, i.e.
In [2]: "~
[TAB]
In [2]: "/Users/zhermes/"
which makes it annoying to continue inserting more path... Is there anyway to disable this behavior?
Edits:
Note: this is ipython issue #1172.
Workaround: Close the quotes before starting to enter the path, then tab-completion won't need to close it. i.e.
In [1]: ""
In [1]: "~[TAB]"
In [1]: "/Users/DilithiumMatrix/"
IPython 5 (which now uses prompt_toolkit and has many changes to how completions work) appears to fix this. If I type "~<TAB>
it completes my home directory without inserting a closing quote.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With