playlist

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyMap

type KeyMap struct {
	CursorUp   key.Binding
	CursorDown key.Binding
	NextPage   key.Binding
	PrevPage   key.Binding
	GoToStart  key.Binding
	GoToEnd    key.Binding

	// Help toggle keybindings.
	ShowFullHelp  key.Binding
	CloseFullHelp key.Binding

	CancelFilePicker key.Binding

	ForceQuit key.Binding
	Quit      key.Binding

	OpenEntry   key.Binding
	DeleteEntry key.Binding
	OpenSearch  key.Binding
	AssignColor key.Binding

	MoveEntryUp   key.Binding
	MoveEntryDown key.Binding

	Export key.Binding

	Save key.Binding
	Load key.Binding
}

func DefaultKeyMap

func DefaultKeyMap() KeyMap

type Model

type Model struct {
	Playlist *pkg2.Playlist

	KeyMap KeyMap
	// contains filtered or unexported fields
}

func NewModel

func NewModel(playlist *pkg2.Playlist) Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

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

func (Model) View

func (m Model) View() string

type Track

type Track pkg2.Track

func (*Track) Description

func (s *Track) Description() string

func (*Track) FilterValue

func (s *Track) FilterValue() string

func (*Track) Title

func (s *Track) Title() string

Jump to

Keyboard shortcuts

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