commands

package
v0.0.0-...-628d497 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 License: MIT Imports: 23 Imported by: 0

Documentation

Overview

Package commands contains all functionality that is triggered by the user, either through keyboard bindings or the command-line interface. New commands such as 'sort', 'add', etc. must be implemented here.

Index

Constants

This section is empty.

Variables

View Source
var Verbs = map[string]func(api.API) Command{
	"add":       NewAdd,
	"bind":      NewBind,
	"copy":      NewYank,
	"cursor":    NewCursor,
	"cut":       NewCut,
	"inputmode": NewInputMode,
	"isolate":   NewIsolate,
	"list":      NewList,
	"next":      NewNext,
	"paste":     NewPaste,
	"pause":     NewPause,
	"play":      NewPlay,
	"previous":  NewPrevious,
	"prev":      NewPrevious,
	"print":     NewPrint,
	"q":         NewQuit,
	"quit":      NewQuit,
	"redraw":    NewRedraw,
	"seek":      NewSeek,
	"select":    NewSelect,
	"se":        NewSet,
	"set":       NewSet,
	"single":    NewSingle,
	"sort":      NewSort,
	"stop":      NewStop,
	"style":     NewStyle,
	"unbind":    NewUnbind,
	"update":    NewUpdate,
	"clear":     NewClear,
	"viewport":  NewViewport,
	"volume":    NewVolume,
	"yank":      NewYank,
}

Verbs contain mappings from strings to Command constructors. Make sure to add commands here when implementing them.

Functions

func Keys

func Keys() []string

Keys returns a string slice with all verbs that can be invoked to run a command.

func TestCommand

func TestCommand(data *TestData)

TestCommand runs a single test a for Command implementation.

func TestVerb

func TestVerb(t *testing.T, verb string, tests []Test)

TestVerb runs table tests for Command implementations.

Types

type Add

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

Add adds songs to MPD's queue.

func (*Add) Exec

func (cmd *Add) Exec() error

Exec implements Command.

func (*Add) Execute

func (c *Add) Execute(class int, s string) error

Execute implements Command.Execute.

func (*Add) Parse

func (cmd *Add) Parse() error

Parse implements Command.

func (*Add) ParseTags

func (c *Add) ParseTags(song *song.Song) ([]string, error)

ParseTags parses a set of tags until the end of the line, and maintains the tab complete list according to a specified song.

func (*Add) TabComplete

func (c *Add) TabComplete() []string

TabComplete implements Command.TabComplete.

type Bind

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

Bind maps a key sequence to the execution of a command.

func (*Bind) Exec

func (cmd *Bind) Exec() error

Exec implements Command.

func (*Bind) Execute

func (c *Bind) Execute(class int, s string) error

Execute implements Command.Execute.

func (*Bind) Parse

func (cmd *Bind) Parse() error

Parse implements Command.

func (*Bind) ParseTags

func (c *Bind) ParseTags(song *song.Song) ([]string, error)

ParseTags parses a set of tags until the end of the line, and maintains the tab complete list according to a specified song.

func (*Bind) TabComplete

func (c *Bind) TabComplete() []string

TabComplete implements Command.TabComplete.

type Clear

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

Clears the queue queue

func (*Clear) Exec

func (cmd *Clear) Exec() error

Exec implements Command.

func (*Clear) Execute

func (c *Clear) Execute(class int, s string) error

Execute implements Command.Execute.

func (*Clear) Parse

func (cmd *Clear) Parse() error

Parse implements Command.

func (*Clear) ParseTags

func (c *Clear) ParseTags(song *song.Song) ([]string, error)

ParseTags parses a set of tags until the end of the line, and maintains the tab complete list according to a specified song.

func (*Clear) TabComplete

func (c *Clear) TabComplete() []string

TabComplete implements Command.TabComplete.

type Command

type Command interface {
	// Execute parses the next input token.
	// FIXME: Execute is deprecated
	Execute(class int, s string) error

	// Exec executes the AST generated by the command.
	Exec() error

	// SetScanner assigns a scanner to the command.
	// FIXME: move to constructor?
	SetScanner(*lexer.Scanner)

	// Parse and make an abstract syntax tree. This function MUST NOT have any side effects.
	Parse() error

	// TabComplete returns a set of tokens that could possibly be used as the next
	// command parameter.
	TabComplete() []string

	// Scanned returns a slice of tokens that have been scanned using Parse().
	Scanned() []parser.Token
}

Command must be implemented by all commands.

func New

func New(verb string, a api.API) Command

New returns the Command associated with the given verb.

func NewAdd

func NewAdd(api api.API) Command

NewAdd returns Add.

func NewBind

func NewBind(api api.API) Command

NewBind returns Bind.

func NewClear

func NewClear(api api.API) Command

NewClear returns Clear.

func NewCursor

func NewCursor(api api.API) Command

NewCursor returns Cursor.

func NewCut

func NewCut(api api.API) Command

NewCut returns Cut.

func NewInputMode

func NewInputMode(api api.API) Command

func NewIsolate

func NewIsolate(api api.API) Command

NewIsolate returns Isolate.

func NewList

func NewList(api api.API) Command

func NewNext

func NewNext(api api.API) Command

func NewPaste

func NewPaste(api api.API) Command

NewPaste returns Paste.

func NewPause

func NewPause(api api.API) Command

func NewPlay

func NewPlay(api api.API) Command

NewPlay returns Play.

func NewPrevious

func NewPrevious(api api.API) Command

func NewPrint

func NewPrint(api api.API) Command

func NewQuit

func NewQuit(api api.API) Command

func NewRedraw

func NewRedraw(api api.API) Command

func NewSeek

func NewSeek(api api.API) Command

NewSeek returns Seek.

func NewSelect

func NewSelect(api api.API) Command

NewSelect returns Select.

func NewSet

func NewSet(api api.API) Command

NewSet returns Set.

func NewSingle

func NewSingle(api api.API) Command

NewSingle returns Single.

func NewSort

func NewSort(api api.API) Command

NewSort returns Sort.

func NewStop

func NewStop(api api.API) Command

NewStop returns Stop.

func NewStyle

func NewStyle(api api.API) Command

NewStyle returns Style.

func NewUnbind

func NewUnbind(api api.API) Command

NewUnbind returns Unbind.

func NewUpdate

func NewUpdate(api api.API) Command

NewUpdate returns Update.

func NewViewport

func NewViewport(api api.API) Command

NewViewport returns Viewport.

func NewVolume

func NewVolume(api api.API) Command

NewVolume returns Volume.

func NewYank

func NewYank(api api.API) Command

NewYank returns Yank.

type Cursor

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

Cursor moves the cursor in a songlist widget. It can take human-readable parameters such as 'up' and 'down', and it also accepts relative positions if a number is given.

func (*Cursor) Exec

func (cmd *Cursor) Exec() error

Exec is the next Execute(), evading the old system

func (*Cursor) Execute

func (c *Cursor) Execute(class int, s string) error

Execute implements Command.Execute.

func (*Cursor) Parse

func (cmd *Cursor) Parse() error

Parse parses cursor movement.

func (*Cursor) ParseTags

func (c *Cursor) ParseTags(song *song.Song) ([]string, error)

ParseTags parses a set of tags until the end of the line, and maintains the tab complete list according to a specified song.

func (*Cursor) TabComplete

func (c *Cursor) TabComplete() []string

TabComplete implements Command.TabComplete.

type Cut

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

Cut removes songs from songlists.

func (*Cut) Exec

func (cmd *Cut) Exec() error

Exec implements Command.

func (*Cut) Execute

func (c *Cut) Execute(class int, s string) error

Execute implements Command.Execute.

func (*Cut) Parse

func (cmd *Cut) Parse() error

Parse implements Command.

func (*Cut) ParseTags

func (c *Cut) ParseTags(song *song.Song) ([]string, error)

ParseTags parses a set of tags until the end of the line, and maintains the tab complete list according to a specified song.

func (*Cut) TabComplete

func (c *Cut) TabComplete() []string

TabComplete implements Command.TabComplete.

type InputMode

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

InputMode changes the Multibar's input mode.

func (*InputMode) Exec

func (c *InputMode) Exec() error

Exec implements Command.TabComplete.

func (*InputMode) Execute

func (cmd *InputMode) Execute(class int, s string) error

func (*InputMode) Parse

func (c *InputMode) Parse() error

Parse implements Command.Parse.

func (*InputMode) Scanned

func (c *InputMode) Scanned() []parser.Token

Scanned implements Command.Scanned.

func (*InputMode) SetScanner

func (c *InputMode) SetScanner(s *lexer.Scanner)

Parse implements Command.Parse.

func (*InputMode) TabComplete

func (c *InputMode) TabComplete() []string

TabComplete implements Command.TabComplete.

type Isolate

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

Isolate searches for songs that have similar tags as the selection.

func (*Isolate) Exec

func (cmd *Isolate) Exec() error

Exec implements Command.

func (*Isolate) Execute

func (c *Isolate) Execute(class int, s string) error

Execute implements Command.Execute.

func (*Isolate) Parse

func (cmd *Isolate) Parse() error

Parse implements Command.

func (*Isolate) ParseTags

func (c *Isolate) ParseTags(song *song.Song) ([]string, error)

ParseTags parses a set of tags until the end of the line, and maintains the tab complete list according to a specified song.

func (*Isolate) TabComplete

func (c *Isolate) TabComplete() []string

TabComplete implements Command.TabComplete.

type List

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

List navigates and manipulates songlists.

func (*List) Exec

func (c *List) Exec() error

Exec implements Command.TabComplete.

func (*List) Execute

func (cmd *List) Execute(class int, s string) error

func (*List) Parse

func (c *List) Parse() error

Parse implements Command.Parse.

func (*List) Scanned

func (c *List) Scanned() []parser.Token

Scanned implements Command.Scanned.

func (*List) SetScanner

func (c *List) SetScanner(s *lexer.Scanner)

Parse implements Command.Parse.

func (*List) TabComplete

func (c *List) TabComplete() []string

TabComplete implements Command.TabComplete.

type Next

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

Next switches to the next song in MPD's queue.

func (*Next) Exec

func (c *Next) Exec() error

Exec implements Command.TabComplete.

func (*Next) Execute

func (cmd *Next) Execute(class int, s string) error

func (*Next) Parse

func (c *Next) Parse() error

Parse implements Command.Parse.

func (*Next) Scanned

func (c *Next) Scanned() []parser.Token

Scanned implements Command.Scanned.

func (*Next) SetScanner

func (c *Next) SetScanner(s *lexer.Scanner)

Parse implements Command.Parse.

func (*Next) TabComplete

func (c *Next) TabComplete() []string

TabComplete implements Command.TabComplete.

type Paste

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

Paste inserts songs from the clipboard.

func (*Paste) Exec

func (cmd *Paste) Exec() error

Exec implements Command.

func (*Paste) Execute

func (c *Paste) Execute(class int, s string) error

Execute implements Command.Execute.

func (*Paste) Parse

func (cmd *Paste) Parse() error

Parse implements Command.

func (*Paste) ParseTags

func (c *Paste) ParseTags(song *song.Song) ([]string, error)

ParseTags parses a set of tags until the end of the line, and maintains the tab complete list according to a specified song.

func (*Paste) TabComplete

func (c *Paste) TabComplete() []string

TabComplete implements Command.TabComplete.

type Pause

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

Pause toggles MPD play/paused state. If the player is stopped, Pause will attempt to start playback through the 'play' command instead.

func (*Pause) Exec

func (c *Pause) Exec() error

Exec implements Command.TabComplete.

func (*Pause) Execute

func (cmd *Pause) Execute(class int, s string) error

func (*Pause) Parse

func (c *Pause) Parse() error

Parse implements Command.Parse.

func (*Pause) Scanned

func (c *Pause) Scanned() []parser.Token

Scanned implements Command.Scanned.

func (*Pause) SetScanner

func (c *Pause) SetScanner(s *lexer.Scanner)

Parse implements Command.Parse.

func (*Pause) TabComplete

func (c *Pause) TabComplete() []string

TabComplete implements Command.TabComplete.

type Play

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

Play plays songs in the MPD playlist.

func (*Play) Exec

func (cmd *Play) Exec() error

Exec implements Command.

func (*Play) Execute

func (c *Play) Execute(class int, s string) error

Execute implements Command.Execute.

func (*Play) Parse

func (cmd *Play) Parse() error

Parse implements Command.

func (*Play) ParseTags

func (c *Play) ParseTags(song *song.Song) ([]string, error)

ParseTags parses a set of tags until the end of the line, and maintains the tab complete list according to a specified song.

func (*Play) TabComplete

func (c *Play) TabComplete() []string

TabComplete implements Command.TabComplete.

type Previous

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

Previous switches to the previous song in MPD's queue.

func (*Previous) Exec

func (c *Previous) Exec() error

Exec implements Command.TabComplete.

func (*Previous) Execute

func (cmd *Previous) Execute(class int, s string) error

func (*Previous) Parse

func (c *Previous) Parse() error

Parse implements Command.Parse.

func (*Previous) Scanned

func (c *Previous) Scanned() []parser.Token

Scanned implements Command.Scanned.

func (*Previous) SetScanner

func (c *Previous) SetScanner(s *lexer.Scanner)

Parse implements Command.Parse.

func (*Previous) TabComplete

func (c *Previous) TabComplete() []string

TabComplete implements Command.TabComplete.

type Print

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

Print displays information about the selected song's tags.

func (*Print) Exec

func (c *Print) Exec() error

Exec implements Command.TabComplete.

func (*Print) Execute

func (cmd *Print) Execute(class int, s string) error

func (*Print) Parse

func (c *Print) Parse() error

Parse implements Command.Parse.

func (*Print) Scanned

func (c *Print) Scanned() []parser.Token

Scanned implements Command.Scanned.

func (*Print) SetScanner

func (c *Print) SetScanner(s *lexer.Scanner)

Parse implements Command.Parse.

func (*Print) TabComplete

func (c *Print) TabComplete() []string

TabComplete implements Command.TabComplete.

type Quit

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

Quit exits the program.

func (*Quit) Exec

func (c *Quit) Exec() error

Exec implements Command.TabComplete.

func (*Quit) Execute

func (cmd *Quit) Execute(class int, s string) error

func (*Quit) Parse

func (c *Quit) Parse() error

Parse implements Command.Parse.

func (*Quit) Scanned

func (c *Quit) Scanned() []parser.Token

Scanned implements Command.Scanned.

func (*Quit) SetScanner

func (c *Quit) SetScanner(s *lexer.Scanner)

Parse implements Command.Parse.

func (*Quit) TabComplete

func (c *Quit) TabComplete() []string

TabComplete implements Command.TabComplete.

type Redraw

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

Quit exits the program.

func (*Redraw) Exec

func (c *Redraw) Exec() error

Exec implements Command.TabComplete.

func (*Redraw) Execute

func (cmd *Redraw) Execute(class int, s string) error

func (*Redraw) Parse

func (c *Redraw) Parse() error

Parse implements Command.Parse.

func (*Redraw) Scanned

func (c *Redraw) Scanned() []parser.Token

Scanned implements Command.Scanned.

func (*Redraw) SetScanner

func (c *Redraw) SetScanner(s *lexer.Scanner)

Parse implements Command.Parse.

func (*Redraw) TabComplete

func (c *Redraw) TabComplete() []string

TabComplete implements Command.TabComplete.

type Seek

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

Seek seeks forwards or backwards in the currently playing track.

func (*Seek) Exec

func (cmd *Seek) Exec() error

Exec implements Command.

func (*Seek) Execute

func (c *Seek) Execute(class int, s string) error

Execute implements Command.Execute.

func (*Seek) Parse

func (cmd *Seek) Parse() error

Parse implements Command.

func (*Seek) ParseTags

func (c *Seek) ParseTags(song *song.Song) ([]string, error)

ParseTags parses a set of tags until the end of the line, and maintains the tab complete list according to a specified song.

func (*Seek) TabComplete

func (c *Seek) TabComplete() []string

TabComplete implements Command.TabComplete.

type Select

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

Select manipulates song selection within a songlist.

func (*Select) Exec

func (cmd *Select) Exec() error

Exec implements Command.

func (*Select) Execute

func (c *Select) Execute(class int, s string) error

Execute implements Command.Execute.

func (*Select) Parse

func (cmd *Select) Parse() error

Parse implements Command.

func (*Select) ParseTags

func (c *Select) ParseTags(song *song.Song) ([]string, error)

ParseTags parses a set of tags until the end of the line, and maintains the tab complete list according to a specified song.

func (*Select) TabComplete

func (c *Select) TabComplete() []string

TabComplete implements Command.TabComplete.

type Set

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

Set manipulates a Options table by parsing input tokens from the "set" command.

func (*Set) Exec

func (cmd *Set) Exec() error

Exec implements Command.

func (*Set) Execute

func (c *Set) Execute(class int, s string) error

Execute implements Command.Execute.

func (*Set) Parse

func (cmd *Set) Parse() error

Parse implements Command.

func (*Set) ParseSet

func (cmd *Set) ParseSet() error

ParseSet parses a single "key=val" statement.

func (*Set) ParseTags

func (c *Set) ParseTags(song *song.Song) ([]string, error)

ParseTags parses a set of tags until the end of the line, and maintains the tab complete list according to a specified song.

func (*Set) TabComplete

func (c *Set) TabComplete() []string

TabComplete implements Command.TabComplete.

type Single

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

Single toggles MPD's single mode on and off.

func (*Single) Exec

func (cmd *Single) Exec() error

Exec implements Command.

func (*Single) Execute

func (c *Single) Execute(class int, s string) error

Execute implements Command.Execute.

func (*Single) Parse

func (cmd *Single) Parse() error

Parse implements Command.

func (*Single) ParseTags

func (c *Single) ParseTags(song *song.Song) ([]string, error)

ParseTags parses a set of tags until the end of the line, and maintains the tab complete list according to a specified song.

func (*Single) TabComplete

func (c *Single) TabComplete() []string

TabComplete implements Command.TabComplete.

type Sort

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

Sort sorts songlists.

func (*Sort) Exec

func (cmd *Sort) Exec() error

Exec implements Command.

func (*Sort) Execute

func (c *Sort) Execute(class int, s string) error

Execute implements Command.Execute.

func (*Sort) Parse

func (cmd *Sort) Parse() error

Parse implements Command.

func (*Sort) ParseTags

func (c *Sort) ParseTags(song *song.Song) ([]string, error)

ParseTags parses a set of tags until the end of the line, and maintains the tab complete list according to a specified song.

func (*Sort) TabComplete

func (c *Sort) TabComplete() []string

TabComplete implements Command.TabComplete.

type Stop

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

Stop stops song playback in MPD.

func (*Stop) Exec

func (cmd *Stop) Exec() error

Exec implements Command.

func (*Stop) Execute

func (c *Stop) Execute(class int, s string) error

Execute implements Command.Execute.

func (*Stop) Parse

func (cmd *Stop) Parse() error

Parse implements Command.

func (*Stop) ParseTags

func (c *Stop) ParseTags(song *song.Song) ([]string, error)

ParseTags parses a set of tags until the end of the line, and maintains the tab complete list according to a specified song.

func (*Stop) TabComplete

func (c *Stop) TabComplete() []string

TabComplete implements Command.TabComplete.

type Style

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

Style manipulates the style table, allowing to set colors and attributes for UI elements.

func (*Style) Exec

func (cmd *Style) Exec() error

Exec implements Command.

func (*Style) Execute

func (c *Style) Execute(class int, s string) error

Execute implements Command.Execute.

func (*Style) Parse

func (cmd *Style) Parse() error

Parse implements Command.

func (*Style) ParseTags

func (c *Style) ParseTags(song *song.Song) ([]string, error)

ParseTags parses a set of tags until the end of the line, and maintains the tab complete list according to a specified song.

func (*Style) TabComplete

func (c *Style) TabComplete() []string

TabComplete implements Command.TabComplete.

type Test

type Test struct {

	// The input data for the command, as seen on the command line.
	Input string

	// True if the command should parse and execute properly, false otherwise.
	Success bool

	// An initialization function for tests.
	Init func(data *TestData)

	// A callback function to call for every test, allowing customization of tests.
	Callback func(data *TestData)

	// A slice of tab completion candidates to expect.
	TabComplete []string
}

Test is a structure for test data, and can be used to conveniently test Command instances.

type TestData

type TestData struct {
	T    *testing.T
	Cmd  Command
	Api  api.API
	Test Test
}

TestData contains data needed for a single Command table test.

type Unbind

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

Unbind unmaps a key sequence.

func (*Unbind) Exec

func (cmd *Unbind) Exec() error

Exec implements Command.

func (*Unbind) Execute

func (c *Unbind) Execute(class int, s string) error

Execute implements Command.Execute.

func (*Unbind) Parse

func (cmd *Unbind) Parse() error

Parse implements Command.

func (*Unbind) ParseTags

func (c *Unbind) ParseTags(song *song.Song) ([]string, error)

ParseTags parses a set of tags until the end of the line, and maintains the tab complete list according to a specified song.

func (*Unbind) TabComplete

func (c *Unbind) TabComplete() []string

TabComplete implements Command.TabComplete.

type Update

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

Update updates MPD database.

func (*Update) Exec

func (cmd *Update) Exec() error

Exec implements Command.

func (*Update) Execute

func (c *Update) Execute(class int, s string) error

Execute implements Command.Execute.

func (*Update) Parse

func (cmd *Update) Parse() error

Parse implements Command.

func (*Update) ParseTags

func (c *Update) ParseTags(song *song.Song) ([]string, error)

ParseTags parses a set of tags until the end of the line, and maintains the tab complete list according to a specified song.

func (*Update) TabComplete

func (c *Update) TabComplete() []string

TabComplete implements Command.TabComplete.

type Viewport

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

Viewport acts on the viewport, such as scrolling the current songlist.

func (*Viewport) Exec

func (cmd *Viewport) Exec() error

Exec implements Command.

func (*Viewport) Execute

func (c *Viewport) Execute(class int, s string) error

Execute implements Command.Execute.

func (*Viewport) Parse

func (cmd *Viewport) Parse() error

Parse parses the viewport movement command.

func (*Viewport) ParseTags

func (c *Viewport) ParseTags(song *song.Song) ([]string, error)

ParseTags parses a set of tags until the end of the line, and maintains the tab complete list according to a specified song.

func (*Viewport) TabComplete

func (c *Viewport) TabComplete() []string

TabComplete implements Command.TabComplete.

type Volume

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

Volume adjusts MPD's volume.

func (*Volume) Exec

func (cmd *Volume) Exec() error

Exec implements Command.

func (*Volume) Execute

func (c *Volume) Execute(class int, s string) error

Execute implements Command.Execute.

func (*Volume) Parse

func (cmd *Volume) Parse() error

Parse implements Command.

func (*Volume) ParseTags

func (c *Volume) ParseTags(song *song.Song) ([]string, error)

ParseTags parses a set of tags until the end of the line, and maintains the tab complete list according to a specified song.

func (*Volume) TabComplete

func (c *Volume) TabComplete() []string

TabComplete implements Command.TabComplete.

type Yank

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

Yank copies tracks from the songlist into the clipboard.

func (*Yank) Exec

func (cmd *Yank) Exec() error

Exec implements Command.

func (*Yank) Execute

func (c *Yank) Execute(class int, s string) error

Execute implements Command.Execute.

func (*Yank) Parse

func (cmd *Yank) Parse() error

Parse implements Command.

func (*Yank) ParseTags

func (c *Yank) ParseTags(song *song.Song) ([]string, error)

ParseTags parses a set of tags until the end of the line, and maintains the tab complete list according to a specified song.

func (*Yank) TabComplete

func (c *Yank) TabComplete() []string

TabComplete implements Command.TabComplete.

Jump to

Keyboard shortcuts

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