Skip to content

Filterable widgets #101

@romancitodev

Description

@romancitodev

Hi! I'm using the select widget with the filter_mode but I can't insert any space.

    let commit = select("Select a word")
        .items(&mapped_commit)
        .filter_mode()
        .interact()?;
Image

Anyways, I looked around how the select works and I found something interesting about the FilteredView<T>.

the filter explicitly ignores the space

Then, I tried to replicate the Select and remove that behaviour but the PromptInteraction trait but all it's private (it's marked as pub(crate)), it's quite annoying because everyone that wants to extends their own components, they just simply can't.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions