pull/5/head
Miguel Mota 6 years ago
parent ce548813f3
commit 14f6994d39

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

Binary file not shown.

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