From 08db07bc186525d0256c9746d5d710f36239a4ec Mon Sep 17 00:00:00 2001 From: Miguel Mota Date: Mon, 2 Apr 2018 09:59:49 -0700 Subject: [PATCH] features Former-commit-id: 5d7007dda8f22b4a8d239059e98267efe9b09c09 [formerly 5d7007dda8f22b4a8d239059e98267efe9b09c09 [formerly 7a8bc492083221a3430442e48bea67ffe64991a9 [formerly 14f6994d399c5359dce1535e51dd50226058fddf]]] Former-commit-id: 4405ce2c5ab341767416897a3daa01734a9cce57 Former-commit-id: 1636451fad6e47b20af74a37024ffddc3477a0dc [formerly 8f6f80e5a9d0e5c1751b1752ee7f52e4f8c5979a] Former-commit-id: 976f054298c444abf44838cbbe6bf53b07f51f91 --- README.md | 16 ++++++++++++++++ bin/cointop32.REMOVED.git-id | 1 + cointop/events.go | 2 +- cointop/navigation.go | 2 ++ cointop/status.go | 2 +- 5 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 bin/cointop32.REMOVED.git-id 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))