Documentation ¶
Index ¶
Constants ¶
View Source
const ConfigPath = "yamusic-tui"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CacheType ¶ added in v0.6.0
type CacheType uint
func (CacheType) MarshalYAML ¶ added in v0.6.0
func (*CacheType) UnmarshalYAML ¶ added in v0.6.0
type Config ¶
type Config struct { Token string `yaml:"token"` BufferSize float64 `yaml:"buffer-size-ms"` RewindDuration float64 `yaml:"rewind-duration-s"` Volume float64 `yaml:"volume"` VolumeStep float64 `yaml:"volume-step"` CacheTracks CacheType `yaml:"cache-tracks"` Search *Search `yaml:"search"` Controls *Controls `yaml:"controls"` }
var Current Config
type Controls ¶
type Controls struct { // Main control Quit *Key `yaml:"quit"` Apply *Key `yaml:"apply"` Cancel *Key `yaml:"cancel"` CursorUp *Key `yaml:"cursor-up"` CursorDown *Key `yaml:"cursor-down"` ShowAllKeys *Key `yaml:"show-all-kyes"` // Playlists control PlaylistsUp *Key `yaml:"playlists-up"` PlaylistsDown *Key `yaml:"playlists-down"` PlaylistsRename *Key `yaml:"playlists-rename"` // Track list control TracksLike *Key `yaml:"tracks-like"` TracksAddToPlaylist *Key `yaml:"tracks-add-to-playlist"` TracksRemoveFromPlaylist *Key `yaml:"tracks-remove-from-playlist"` TracksShuffle *Key `yaml:"tracks-shuffle"` TracksSearch *Key `yaml:"tracks-search"` // Player control PlayerPause *Key `yaml:"player-pause"` PlayerNext *Key `yaml:"player-next"` PlayerPrevious *Key `yaml:"player-previous"` PlayerRewindForward *Key `yaml:"player-rewind-forward"` PlayerRewindBackward *Key `yaml:"player-rewind-backward"` PlayerLike *Key `yaml:"player-like"` PlayerCache *Key `yaml:"player-cache"` PlayerVolUp *Key `yaml:"player-vol-up"` PlayerVolDown *Key `yaml:"player-vol-donw"` }
type Key ¶
type Key struct {
// contains filtered or unexported fields
}
func (*Key) Binding ¶
func (k *Key) Binding() key.BindingOpt
func (*Key) MarshalYAML ¶ added in v0.5.0
func (*Key) UnmarshalYAML ¶ added in v0.5.0
Click to show internal directories.
Click to hide internal directories.