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

Search Functionality for the Select Widget #4167

Open
davemagro opened this issue Feb 16, 2024 · 5 comments
Open

Search Functionality for the Select Widget #4167

davemagro opened this issue Feb 16, 2024 · 5 comments

Comments

@davemagro
Copy link

I think this would be a very useful feature. Kind of needed in my current project as well.

Leaving an issue to hopefully get back to this in the future. Hope I could find the time to implement this myself.

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

@fer-hnndz
Copy link

I would also like to start working on this feature. First of all, I believe it should be decided how would the search future work in detail.
Will you be able to search for an item by completely typing it or it will just jump to the first item with the letter on the list?

@TomJGooding
Copy link
Contributor

TomJGooding commented Feb 20, 2024

I agree some sort of "autocomplete" widget would be extremely useful and something I've seen often requested. For example my own issue here:

If someone does want to take this on, I think the core functionality for such a widget has already been worked out in the command palette if that helps!

@fer-hnndz
Copy link

I'll look intro the command palette code. I just realized it had that autocomplete function.
Not sure if it should be added as a whole new widget or as a feature for select widgets.

@TomJGooding
Copy link
Contributor

I think this should be a new widget. A simple dropdown list is very different from a text input enhanced by suggested options. Not to mention the code for the Select widget is already complicated enough as it is!

But if you're serious about working on this, I'd wait for some input from a Textual maintainer.

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

3 participants