ee7cc71879
Following changes have been made: 1. The OpenImage() function now checks if the image returned by the mp3 and flac parsers is the default image if it is true then it will query the lastfm api for cover image if no error is received then the path to that downloaded image is passed else the path is unchanged ( that is it will be the default image ) |
||
---|---|---|
config | ||
.gitignore | ||
App.go | ||
client.go | ||
fileBrowser.go | ||
go.mod | ||
go.sum | ||
imageUtils.go | ||
lastfm.go | ||
LICENSE | ||
main.go | ||
progressBar.go | ||
README.md | ||
render.go | ||
sample_config.yml | ||
utils.go |
goMP
MPD client inspired by ncmpcpp written in GO
Roadmap
- Add Functionality to Sort out most played songs
- Add a config parser
- Image Previews
- User Key Mappings
- Fuzzy Searching
- Visual Mode (like vim) for updating playlists
Setting Up
- Music Player Daemon must be setup
- Go Should Be Installed ( for building )
- Make a YAML/TOML file in
$HOME/.config/goMP
named config.yml / config.toml - Read the sample_config.yml for config options
Installing / Building
git clone https://github.com/aditya-K2/goMP &&
cd goMP &&
go build
Configuration
Key Mappings
Following Keys can be used for Mappings
Keys | Using them in Config |
---|---|
a-z | a-z |
A-Z | A-z |
{,},(,),[,],<,> | {,},(,),[,],<,> |
Enter(Return) | ENTER/RETURN |
Tab | TAB |
Space | SPACE |
See config/kMap.go for more information
For mapping a key to some function use the following format:
Function: [ firstMapping, secondMapping, thirdMapping]
for.eg
togglePlayBack : [ "p", "TAB", "[" ] # using the quotes is neccessary.
Following functions are provided :
Functions |
---|
showChildrenContent |
togglePlayBack |
showParentContent |
nextSong |
clearPlaylist |
previousSong |
addToPlaylist |
toggleRandom |
toggleRepeat |
decreaseVolume |
increaseVolume |
navigateToFiles |
navigateToPlaylist |
navigateToMostPlayed |
quit |
stop |
updateDB |
deleteSongFromPlaylist |
Tested on following terminals:
- Alacritty
- ST
- URXVT