So, I love how ipython can path-complete strings to dig through your folders.
But I increasingly work with pathlib.Path objects for their increased readability and useful object attributes to access sub-paths.
Would it be possible to have ipython to be able to path-complete on a pathlib.Path folder?
So, I would like to be able to do something like this:
from pathlib import Path
root = Path("/abc/myfolder")
f1 = root / "f342<TAB>"
f2 = root / "f569<TAB>"
Hope this is understandable? With I mean I press the TAB key at that point, to have ipython complete that string part of the full path.
Cheers!
So, I love how
ipythoncan path-complete strings to dig through your folders.But I increasingly work with pathlib.Path objects for their increased readability and useful object attributes to access sub-paths.
Would it be possible to have ipython to be able to path-complete on a pathlib.Path folder?
So, I would like to be able to do something like this:
Hope this is understandable? With I mean I press the TAB key at that point, to have ipython complete that string part of the full path.
Cheers!