playlist

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2019 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Playlist

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

Playlist is thread safe

func New

func New(file string, size int, updates chan<- struct{}) *Playlist

func (*Playlist) Add

func (p *Playlist) Add(cmd *command.Command)

func (*Playlist) At

func (p *Playlist) At(ix int) *command.Command

func (*Playlist) Del

func (p *Playlist) Del(indexes []int)

func (*Playlist) Index

func (p *Playlist) Index() int

func (*Playlist) Length

func (p *Playlist) Length() int

func (*Playlist) List

func (p *Playlist) List() []*command.Command

func (*Playlist) Load

func (p *Playlist) Load() error

func (*Playlist) Move

func (p *Playlist) Move(from, to int)

func (*Playlist) Next

func (p *Playlist) Next(i int)

func (*Playlist) Prev

func (p *Playlist) Prev(i int)

func (*Playlist) Read

func (p *Playlist) Read() *command.Command

func (*Playlist) ResetScroll

func (p *Playlist) ResetScroll()

func (*Playlist) ResultList

func (p *Playlist) ResultList() []search.Result

func (*Playlist) Save

func (p *Playlist) Save(onlyIfChanged bool) (err error)

func (*Playlist) Scroll

func (p *Playlist) Scroll(amount int)

func (*Playlist) ScrollTo

func (p *Playlist) ScrollTo(index int)

func (*Playlist) Search

func (p *Playlist) Search(qry string, offset *int) bool

func (*Playlist) SetIndex

func (p *Playlist) SetIndex(i int)

func (*Playlist) Surrounding

func (p *Playlist) Surrounding(amount int) (firstIndex int, activeIndex int, r []search.Result)

func (*Playlist) ToggleRandom

func (p *Playlist) ToggleRandom()

func (*Playlist) Truncate

func (p *Playlist) Truncate()

Jump to

Keyboard shortcuts

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