How to reuse completions from PathCompleter in prompt_toolkit
问题 I am creating a REPL tool for my project that (simplified for clarity) either directly executes entered commands or (if a command ".x some/path/to/file" is entered) reads and executes them from file. My question is related to auto-completing the user input (using prompt_toolkit). I have something like (minimum executable example): import prompt_toolkit from prompt_toolkit.completion import Completer, Completion from prompt_toolkit.document import Document from prompt_toolkit.contrib