Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultKeyMap = KeyMap{ Prev: key.NewBinding( key.WithKeys("up", "k"), key.WithHelp("↑/k", "move up"), ), Next: key.NewBinding( key.WithKeys("down", "j", "tab"), key.WithHelp("↓/j/tab", "move down"), ), Choose: key.NewBinding( key.WithKeys(" "), key.WithHelp("space", "choose"), ), Confirm: key.NewBinding( key.WithKeys("enter"), key.WithHelp("enter", "confirm"), ), Help: key.NewBinding( key.WithKeys("?"), key.WithHelp("?", "toggle help"), ), Quit: key.NewBinding( key.WithKeys("q", "esc", "ctrl+c"), key.WithHelp("q", "quit"), ), }
Functions ¶
func ThemeDefault ¶
func ThemeDefault(choices []string, cursor int, isSelected IsSelected) string
Types ¶
type IsSelected ¶
type KeyMap ¶ added in v0.8.1
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func (Model) DataString ¶
func (Model) TeaProgramOpts ¶ added in v0.8.4
func (m Model) TeaProgramOpts() []tea.ProgramOption
type Option ¶
type Option func(*Model)
func WithDefaultIndexes ¶ added in v0.9.2
func WithKeyMap ¶ added in v0.8.1
func WithTeaProgramOpts ¶ added in v0.8.4
func WithTeaProgramOpts(opts ...tea.ProgramOption) Option
Click to show internal directories.
Click to hide internal directories.