Go to file
aditya-K2 9c039a8681 Reading Mappings from config file
Following Changes have been made in addition to
`1572a460b0`

    1. config.go :

	ReadMappings Reads Array for each function
	Basically we are going to define mappings like this :

	```yml

	    Function :
		- first mapping
		- second mapping
		- third mapping

	`````

    2. kMap.go :

	GetAsciiValues will help us to get e.Rune() for the event for
	the handler function. So basically we will have a keymappings map
	generated which will help us to handle events.

	    for e.g

		if an user has defined following mappings

	````yml

	    togglePlayBack :
		- P
		- p
		- B

	````

		then the keymappings map will look like this

	    []keymappings = {
		GetAsciiValues("P") : togglePlayBack(),
		GetAsciiValues("p") : togglePlayBack(),
		GetAsciiValues("B") : togglePlayBack(),
	    }

	    so when the handler function will get an event e
	    we will just pass it to this keymappings map i.e

		keymappings[e] which will return the function
2021-11-11 22:03:35 +05:30
config Reading Mappings from config file 2021-11-11 22:03:35 +05:30
.gitignore minor changes 2021-11-05 15:06:42 +05:30
App.go
client.go
fileBrowser.go
go.mod Using different metadata parsing libraries instead of dhowden/tag 2021-11-08 11:47:38 +05:30
go.sum Using different metadata parsing libraries instead of dhowden/tag 2021-11-08 11:47:38 +05:30
imageUtils.go Rewriting image Rendering 2021-11-08 11:48:49 +05:30
LICENSE
main.go Making a config package for Generating keymappings 2021-11-11 21:57:01 +05:30
progressBar.go
README.md Update README 2021-11-06 18:19:45 +05:30
render.go Rewriting image Rendering 2021-11-08 11:48:49 +05:30
sample_config.yml
utils.go Making a config package for Generating keymappings 2021-11-11 21:57:01 +05:30

goMP

MPD client inspired by ncmpcpp written in GO

https://user-images.githubusercontent.com/51816057/140478368-5b724b2f-2499-4150-9569-c54734b3d4c1.mp4

Roadmap

  • Add Functionality to Sort out most played songs
  • Add a config parser
  • Image Previews
  • Fuzzy Searching
  • Visual Mode (like vim) for updating playlists
  • Music Visualizer

Prerequisites

  • 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

Tested on following terminals:

  • Alacritty
  • ST
  • URXVT