diff --git a/README.md b/README.md index bac3d05..2c60a4e 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,22 @@ [`cointop`](https://github.com/miguelmota/cointop) is a fast command-line interface application for viewing cryptocurrency stats and information in your terminal. The interface is inspired by [`htop`](https://en.wikipedia.org/wiki/Htop). +## Features + +- Quick sort shortcuts +- Vim style keys +- Pagination +- Color coded + +#### Future releases + +- Advanced search +- "Favorites" list +- Dynamic charts +- Currency conversion (i.e. Euro, Yen) +- Markets/Exchanges +- CryptoCompare API + ## Install Make sure to have [go](https://golang.org/) (1.9+) installed, then do: diff --git a/bin/cointop32.REMOVED.git-id b/bin/cointop32.REMOVED.git-id new file mode 100644 index 0000000..e35e02b --- /dev/null +++ b/bin/cointop32.REMOVED.git-id @@ -0,0 +1 @@ +9867a4869ebb225bee4737d2737a02e90e57c25e \ No newline at end of file diff --git a/cointop/events.go b/cointop/events.go index 62ec6b1..53db62f 100644 --- a/cointop/events.go +++ b/cointop/events.go @@ -1,5 +1,5 @@ package cointop func (ct *Cointop) rowChanged() { - ct.showLink() + ct.refreshRowLink() } diff --git a/cointop/navigation.go b/cointop/navigation.go index 3290219..c36cf3d 100644 --- a/cointop/navigation.go +++ b/cointop/navigation.go @@ -94,6 +94,7 @@ func (ct *Cointop) prevPage(g *gocui.Gui, v *gocui.View) error { ct.page = ct.page - 1 } ct.updateTable() + ct.rowChanged() return nil } @@ -102,5 +103,6 @@ func (ct *Cointop) nextPage(g *gocui.Gui, v *gocui.View) error { ct.page = ct.page + 1 } ct.updateTable() + ct.rowChanged() return nil } diff --git a/cointop/status.go b/cointop/status.go index 9c2920b..4a7da25 100644 --- a/cointop/status.go +++ b/cointop/status.go @@ -13,7 +13,7 @@ func (ct *Cointop) updateStatus(s string) { fmt.Fprintln(ct.statusview, pad.Right(fmt.Sprintf("[q]uit [← →]page %s", s), maxX, " ")) } -func (ct *Cointop) showLink() { +func (ct *Cointop) refreshRowLink() { url := ct.rowLink() ct.g.Update(func(g *gocui.Gui) error { ct.updateStatus(fmt.Sprintf("[↵]%s", url))