gum/search/options.go
Maas Lalani c906d1904d
feat: Add gum search command
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
```
2022-07-07 13:29:10 -04:00

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"`
}