Former-commit-id: 5d7007dda8f22b4a8d239059e98267efe9b09c09 [formerly 5d7007dda8f22b4a8d239059e98267efe9b09c09 [formerly 7a8bc492083221a3430442e48bea67ffe64991a9 [formerly 14f6994d39]]]
Former-commit-id: 4405ce2c5ab341767416897a3daa01734a9cce57
Former-commit-id: 1636451fad6e47b20af74a37024ffddc3477a0dc [formerly 8f6f80e5a9d0e5c1751b1752ee7f52e4f8c5979a]
Former-commit-id: 976f054298c444abf44838cbbe6bf53b07f51f91
pull/15/head
Miguel Mota 6 years ago
parent 2d71116fea
commit 08db07bc18

@ -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:

@ -0,0 +1 @@
9867a4869ebb225bee4737d2737a02e90e57c25e

@ -1,5 +1,5 @@
package cointop
func (ct *Cointop) rowChanged() {
ct.showLink()
ct.refreshRowLink()
}

@ -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
}

@ -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))

Loading…
Cancel
Save