Skip to content

Feature request: path completion with pathlib objects #10427

@michaelaye

Description

@michaelaye

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions