Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

[FEAT] AutoComplete widget #3362

Closed
TomJGooding opened this issue Sep 20, 2023 · 9 comments
Closed

[FEAT] AutoComplete widget #3362

TomJGooding opened this issue Sep 20, 2023 · 9 comments

Comments

@TomJGooding
Copy link
Contributor

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)

@github-actions
Copy link

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

@davep
Copy link
Contributor

davep commented Sep 20, 2023

@TomJGooding
Copy link
Contributor Author

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)

@willmcgugan
Copy link
Collaborator

We were just discussing that today. I think there should be an autocomplete in the core lib.

@TomJGooding
Copy link
Contributor Author

Thanks Will. That's a bit spooky, I really do spend too much time here if I'm somehow picking up your internal discussions...!

@willmcgugan
Copy link
Collaborator

@davep please sweep the office for bugs.

@davep
Copy link
Contributor

davep commented Sep 21, 2023

Live scenes from the sweep...

starship-troopers-shoot

@TomJGooding
Copy link
Contributor Author

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.

@willmcgugan
Copy link
Collaborator

I think @darrenburns 's textual-autocomplete may become the officially recommended solution.

@Textualize Textualize locked and limited conversation to collaborators Jul 15, 2024
@willmcgugan willmcgugan converted this issue into discussion #4750 Jul 15, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants