You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Right now, the SelectionPrompt<T>.EnableSearch() only allows for one matching search item with the search query (see ListPromptState.cs#L132).
This can be annoying if there are multiple items that match the search, but are not close together in the list
Describe the solution you'd like
Instead of letting the search function move the index, let the search function filter the list items that are rendered.
If you have a list with four items (orange, apple, banana, and more apples) and you enter apple as the search query, this is the current behavior:
orange
apple <-- cursor is here
banana
more apples
Instead, I'd propose the following:
apple <-- cursor is here
more apples
Describe alternatives you've considered
An alternative is to allow iterating over the items that match the search query without filtering out non-matching items. The user could use the arrow keys to iterate through the search items for example.
Please upvote 👍 this issue if you are interested in it.
The text was updated successfully, but these errors were encountered:
jord-nijhuis
changed the title
Allow for multiple matching search result items
Allow for multiple matching search result items with the SelectionPrompt
May 14, 2024
Is your feature request related to a problem? Please describe.
Right now, the
SelectionPrompt<T>.EnableSearch()
only allows for one matching search item with the search query (see ListPromptState.cs#L132).This can be annoying if there are multiple items that match the search, but are not close together in the list
Describe the solution you'd like
Instead of letting the search function move the index, let the search function filter the list items that are rendered.
If you have a list with four items (
orange
,apple
,banana
, andmore apples
) and you enterapple
as the search query, this is the current behavior:Instead, I'd propose the following:
Describe alternatives you've considered
An alternative is to allow iterating over the items that match the search query without filtering out non-matching items. The user could use the arrow keys to iterate through the search items for example.
Please upvote 👍 this issue if you are interested in it.
The text was updated successfully, but these errors were encountered: