copier icon indicating copy to clipboard operation
copier copied to clipboard

Add filter to prompt

Open dudicoco opened this issue 7 months ago • 2 comments

Actual Situation

Hi,

It would be helpful to add a filter option to the prompts. For an example of how this is done with Gum see here: https://github.com/charmbracelet/gum?tab=readme-ov-file#filter

Desired Situation

Add a flag filter: true to the prompt yaml in order to support filtering.

Proposed solution

No response

dudicoco avatar May 18 '25 12:05 dudicoco

We use the questionary library internally for prompting. It offers the a question type "autocomplete" which is a regular text question with a list of autocomplete choices (not to be confused with a question that lets you select from a list of choices).

For which question type would you like to have autocomplete support? And what is your use case?

sisp avatar May 19 '25 09:05 sisp

@sisp seems like Questionary is much more limited in it's functionality when compared to Gum.

I've tested the autocomplete question type and it's lacking as it does not show you the list of options up front.

With Gum you can do the following:

  1. Display a list of choices
  2. Let the user filter the list by typing
  3. Let the user select multiple choices from the filtered list

In questionary this would be the checkbox and autocomplete types combined.

dudicoco avatar Jul 02 '25 08:07 dudicoco