queuepanel

package
v0.1.44 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActionMsg added in v0.1.8

func ActionMsg(a action.Action) action.Msg

ActionMsg creates an action.Msg for a queuepanel action.

Types

type AddToPlaylist added in v0.1.20

type AddToPlaylist struct {
	TrackIDs []int64
}

AddToPlaylist requests adding tracks to a playlist.

func (AddToPlaylist) ActionType added in v0.1.20

func (a AddToPlaylist) ActionType() string

ActionType implements action.Action.

type GoToSource added in v0.1.22

type GoToSource struct {
	TrackID int64  // Library track ID (0 if from filesystem)
	Path    string // File path
	Album   string // Album name
	Artist  string // Artist name
}

GoToSource requests navigation to the track's source in the current view.

func (GoToSource) ActionType added in v0.1.22

func (a GoToSource) ActionType() string

ActionType implements action.Action.

type JumpToTrack added in v0.1.8

type JumpToTrack struct {
	Index int
}

JumpToTrack requests playback to jump to a specific queue index.

func (JumpToTrack) ActionType added in v0.1.8

func (a JumpToTrack) ActionType() string

ActionType implements action.Action.

type Model

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

Model represents the queue panel state.

func New

func New(queue *playlist.PlayingQueue) Model

New creates a new queue panel model.

func (Model) Height added in v0.1.11

func (m Model) Height() int

Height returns the component height.

func (Model) IsFocused

func (m Model) IsFocused() bool

IsFocused returns whether the component is focused.

func (*Model) SetFavorites added in v0.1.20

func (m *Model) SetFavorites(favorites map[int64]bool)

SetFavorites updates the favorites map for displaying favorite icons.

func (*Model) SetFocused

func (m *Model) SetFocused(focused bool)

SetFocused sets whether the component is focused.

func (*Model) SetSize

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

SetSize sets the component dimensions.

func (*Model) SyncCursor

func (m *Model) SyncCursor()

SyncCursor moves the cursor to the currently playing track.

func (Model) Update

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

Update handles messages for the queue panel.

func (Model) View

func (m Model) View() string

View renders the queue panel.

func (Model) Width added in v0.1.11

func (m Model) Width() int

Width returns the component width.

type QueueChanged added in v0.1.8

type QueueChanged struct{}

QueueChanged signals that the queue contents have changed and need persisting.

func (QueueChanged) ActionType added in v0.1.8

func (a QueueChanged) ActionType() string

ActionType implements action.Action.

type ToggleFavorite added in v0.1.8

type ToggleFavorite struct {
	TrackIDs []int64
}

ToggleFavorite requests toggling favorite status for tracks.

func (ToggleFavorite) ActionType added in v0.1.8

func (a ToggleFavorite) ActionType() string

ActionType implements action.Action.

Jump to

Keyboard shortcuts

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