Skip to content
Discussion options

You must be logged in to vote

I wouldn't get too caught up in how that happens; I was showing more the pattern for how you'd subclass the base class and implement your own get_suggestion. A suggester for a filesystem should be pretty straightforward; remember that get_suggestion each time there's a change to the Input, so you should only need take the value it passes, parse out the directory part (nice and easy if you use pathlib.Path for example), and then return the best suggestion from within that directory.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@vpet98
Comment options

@davep
Comment options

Answer selected by vpet98
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants