Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PathCompleter does not append / to the end of directory #1864

Open
m3lab-zzl opened this issue Mar 28, 2024 · 0 comments
Open

PathCompleter does not append / to the end of directory #1864

m3lab-zzl opened this issue Mar 28, 2024 · 0 comments

Comments

@m3lab-zzl
Copy link

Zsh autocompletion has the ability to append / to the end of directory with the Tab key, which is super handy.

image

I wonder whether PathCompleter also has this feature or is it just because I set something wrong?

class prompt_toolkit.completion.PathCompleter(only_directories: bool = False, get_paths: Callable[[], list[str]] | None = None, file_filter: Callable[[str], bool] | None = None, min_input_len: int = 0, expanduser: bool = False)

    Complete for Path variables.

    Parameters:

            get_pathsCallable which returns a list of directories to look into when the user enters a relative path.

            file_filterCallable which takes a filename and returns whether this file should show up in the completion. None when no filtering has to be done.

            min_input_lenDont do autocompletion when the input string is shorter.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant