mirror of
https://github.com/charmbracelet/gum
synced 2024-06-08 08:42:16 +02:00
c906d1904d
Search provides a fuzzy searching text input to allow filtering a list of options to select one option. i.e. Let's pick from a list of gum flavors: ``` cat flavors.text | gum search ```
11 lines
439 B
Go
11 lines
439 B
Go
package search
|
|
|
|
// Options is the customization options for the search.
|
|
type Options struct {
|
|
AccentColor string `help:"Accent color for prompt, indicator, and matches" default:"#FF06B7"`
|
|
Indicator string `help:"Character for selection" default:"•"`
|
|
Placeholder string `help:"Placeholder value" default:"Search..."`
|
|
Prompt string `help:"Prompt to display" default:"> "`
|
|
Width int `help:"Input width" default:"20"`
|
|
}
|