Documentation ¶
Index ¶
- type Playlist
- func (p *Playlist) Add(cmd *command.Command)
- func (p *Playlist) At(ix int) *command.Command
- func (p *Playlist) Del(indexes []int)
- func (p *Playlist) Index() int
- func (p *Playlist) Length() int
- func (p *Playlist) List() []*command.Command
- func (p *Playlist) Load() error
- func (p *Playlist) Move(from, to int)
- func (p *Playlist) Next(i int)
- func (p *Playlist) Prev(i int)
- func (p *Playlist) Read() *command.Command
- func (p *Playlist) ResetScroll()
- func (p *Playlist) ResultList() []search.Result
- func (p *Playlist) Save(onlyIfChanged bool) (err error)
- func (p *Playlist) Scroll(amount int)
- func (p *Playlist) ScrollTo(index int)
- func (p *Playlist) Search(qry string, offset *int) bool
- func (p *Playlist) SetIndex(i int)
- func (p *Playlist) Surrounding(amount int) (firstIndex int, activeIndex int, r []search.Result)
- func (p *Playlist) ToggleRandom()
- func (p *Playlist) Truncate()
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 (*Playlist) ResetScroll ¶
func (p *Playlist) ResetScroll()
func (*Playlist) ResultList ¶
func (*Playlist) Surrounding ¶
func (*Playlist) ToggleRandom ¶
func (p *Playlist) ToggleRandom()
Click to show internal directories.
Click to hide internal directories.