season

package
v0.0.0-...-add2e64 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultKeyMap = KeyMap{
	CursorUp:        key.NewBinding(key.WithKeys("up", "k"), key.WithHelp("↑/k", "up")),
	CursorDown:      key.NewBinding(key.WithKeys("down", "j"), key.WithHelp("↓/j", "down")),
	Quit:            key.NewBinding(key.WithKeys("q", "ctrl+c"), key.WithHelp("q/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")),
	Reload:          key.NewBinding(key.WithKeys("r", "f5"), key.WithHelp("r", "reload")),
	AutomaticSearch: key.NewBinding(key.WithKeys("ctrl+a"), key.WithHelp("ctrl+a", "automatic search")),
}

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 EpisodeItem

type EpisodeItem struct {
	// contains filtered or unexported fields
}

func NewEpisodeItem

func NewEpisodeItem(episode *sonarrAPI.EpisodeResource, queue *sonarrAPI.QueueResource) EpisodeItem

func (EpisodeItem) FilterValue

func (e EpisodeItem) FilterValue() string

type KeyMap

type KeyMap struct {
	CursorUp        key.Binding
	CursorDown      key.Binding
	Quit            key.Binding
	Back            key.Binding
	Help            key.Binding
	Select          key.Binding
	Reload          key.Binding
	AutomaticSearch key.Binding
}

func (KeyMap) FullHelp

func (k KeyMap) FullHelp() [][]key.Binding

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) GetReloading

func (m *Model) GetReloading() bool

func (Model) Init

func (m Model) Init() tea.Cmd

func (*Model) SetReloading

func (m *Model) SetReloading(reloading bool)

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

Jump to

Keyboard shortcuts

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