search

package
v0.0.0-...-4f3a07d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2024 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SelectedForeground = series.SelectedForeground

	TitleStyle = series.TitleStyle.Copy()

	Separator = series.Separator
)
View Source
var InputKeyMap = inputKeyMap{
	Quit:   key.NewBinding(key.WithKeys("ctrl+c"), key.WithHelp("ctrl+c", "quit")),
	Back:   key.NewBinding(key.WithKeys("esc"), key.WithHelp("esc", "back")),
	Help:   key.NewBinding(key.WithKeys("?"), key.WithHelp("?", "close help")),
	Select: key.NewBinding(key.WithKeys("enter"), key.WithHelp("enter", "start search")),
}
View Source
var ResultKeyMap = resultKeyMap{
	Quit:   key.NewBinding(key.WithKeys("ctrl+c"), key.WithHelp("ctrl+c", "quit")),
	Back:   key.NewBinding(key.WithKeys("esc"), key.WithHelp("esc", "back")),
	Help:   key.NewBinding(key.WithKeys("?"), key.WithHelp("?", "close help")),
	Select: key.NewBinding(key.WithKeys("enter"), key.WithHelp("enter", "select")),
	Filter: key.NewBinding(key.WithKeys("/"), key.WithHelp("/", "filter")),
}

Functions

This section is empty.

Types

type Delegate

type Delegate struct{}

func (Delegate) Height

func (d Delegate) Height() int

func (Delegate) Render

func (d Delegate) Render(w io.Writer, m list.Model, index int, item list.Item)

func (Delegate) Spacing

func (d Delegate) Spacing() int

func (Delegate) Update

func (d Delegate) Update(_ tea.Msg, _ *list.Model) tea.Cmd

type Model

type Model struct {
	common.EmbedableModel
	// contains filtered or unexported fields
}

func New

func New(sonarr *sonarr.Client, width, height int) *Model

func (*Model) Init

func (m *Model) Init() tea.Cmd

func (*Model) SetSize

func (m *Model) SetSize(width, height int)

func (*Model) Update

func (m *Model) Update(msg tea.Msg) (common.SubModel, tea.Cmd)

func (Model) View

func (m Model) View() string

type SeriesAlreadyAddedMsg

type SeriesAlreadyAddedMsg struct {
	Series *sonarrAPI.SeriesResource
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL