Go to file
aditya-K2 f1aab8fb36 Merge branch 'master' of github.com:aditya-K2/goMP 2021-10-29 09:45:15 +05:30
.gitignore minor changes in formatting 2021-10-13 00:07:39 +05:30
App.go Image Previews Implementation 2021-10-24 13:26:10 +05:30
LICENSE Initial commit 2021-10-08 20:22:09 +05:30
README.md Update README.md 2021-10-28 14:50:16 +05:30
client.go minor changes: Rename t -> inputTable 2021-10-29 09:44:55 +05:30
fileBrowser.go Updated FileNode Struct 2021-10-17 21:51:01 +05:30
go.mod Ueberzug Integration 2021-10-24 01:28:11 +05:30
go.sum Ueberzug Integration 2021-10-24 01:28:11 +05:30
imageUtils.go Image Preview Utilities 2021-10-24 13:15:45 +05:30
main.go Image Previews Implementation 2021-10-24 13:26:10 +05:30
progressBar.go Image Previews Implementation 2021-10-24 13:26:10 +05:30
render.go Image Preview Utilities 2021-10-24 13:15:45 +05:30
utils.go minor changes in formatting 2021-10-17 22:28:06 +05:30

README.md

goMP

MPD client inspired by ncmpcpp written in GO

https://user-images.githubusercontent.com/51816057/138585868-92aff5bd-dd7e-46af-bf06-28b83115120b.mp4

Roadmap

  • Add Functionality to Sort out most played songs
  • Add a config parser ( preferably YAML )
  • Image Previews
    • The Image Previews are working but the placement is very hacky and needs some work
  • Fuzzy Searching
  • Visual Mode (like vim) for updating playlists
  • Music Visualizer

Prerequisites

  • Music Player Daemon must be setup
  • Go Should Be Installed ( for building )
  • Set the Path to your mpd DATABASE in progressbar.go
var DBDIR string = "PATH TO YOUR MPD DATABASE HERE"
  • In imageUtils.go set the path for your default Image
var path string = "YOUR DEFAULT IMAGE PATH HERE"

Installing / Building

git clone https://github.com/aditya-K2/goMP &&
cd goMP &&
go build

Image Placement

The image is rendered by calculating pixels by multiplying the rows and columns with the font-width which is calculated by dividing the terminal width and height ( Please let me know if there is a better way to do this ) this let's to uneven placement so it is better that you disable the borders for the imagePreview holder.

in App.go

	imagePreviewer.SetBorder(false)

With Borders ( Sometimes [Mostly Maximized Terminals] )

Oct28(Thu)02:4134PM

Without Borders

Oct28(Thu)02:4513PM

Note: Your terminal window padding also affects the tui.