[FEAT] AutoComplete widget
I can't see anything on the roadmap, so are there plans to add a AutoComplete widget to Textual?
The terms get a bit confusing, but by autocomplete I mean a dynamic dropdown list, like you see pretty much everywhere.
Textual already has a Select widget, Input and now a Command Palette, so it might surprise people that there isn't a widget for this (I am aware of other libraries)
We found the following entry in the FAQ which you may find helpful:
Feel free to close this issue if you found an answer in the FAQ. Otherwise, please give us a little time to review.
This is an automated reply, generated by FAQtory
Like https://github.com/darrenburns/textual-autocomplete?
Yes something like lextual-autocomplete. Are there plans to add a widget like this to Textual?
(I am aware of this project and obviously Darren's involvement with Textual, which I hope doesn't make this feature request awkward)
We were just discussing that today. I think there should be an autocomplete in the core lib.
Thanks Will. That's a bit spooky, I really do spend too much time here if I'm somehow picking up your internal discussions...!
@davep please sweep the office for bugs.
Live scenes from the sweep...
The core functionality of an AutoComplete widget seems to have already been worked out in the command palette.
I confess I don't fully understand the code yet so perhaps this is naive, but couldn't a good chunk be extracted to this new AutoComplete widget (then used to derive the command palette)?
I did spend some time experimenting with this idea, but got a bit stuck understanding the command provider.
I think @darrenburns 's textual-autocomplete may become the officially recommended solution.