|
|
|
@ -27,18 +27,18 @@ func (ct *Cointop) keybindings(g *gocui.Gui) error {
|
|
|
|
|
ct.setKeybinding('k', ct.cursorUp)
|
|
|
|
|
ct.setKeybinding(gocui.KeyCtrlD, ct.pageDown)
|
|
|
|
|
ct.setKeybinding(gocui.KeyCtrlU, ct.pageUp)
|
|
|
|
|
ct.setKeybinding('r', ct.sort("rank", false))
|
|
|
|
|
ct.setKeybinding('n', ct.sort("name", true))
|
|
|
|
|
ct.setKeybinding('s', ct.sort("symbol", false))
|
|
|
|
|
ct.setKeybinding('p', ct.sort("price", true))
|
|
|
|
|
ct.setKeybinding('m', ct.sort("marketcap", true))
|
|
|
|
|
ct.setKeybinding('v', ct.sort("24hvolume", true))
|
|
|
|
|
ct.setKeybinding('1', ct.sort("1hchange", true))
|
|
|
|
|
ct.setKeybinding('2', ct.sort("24hchange", true))
|
|
|
|
|
ct.setKeybinding('7', ct.sort("7dchange", true))
|
|
|
|
|
ct.setKeybinding('t', ct.sort("totalsupply", true))
|
|
|
|
|
ct.setKeybinding('a', ct.sort("availablesupply", true))
|
|
|
|
|
ct.setKeybinding('l', ct.sort("lastupdated", true))
|
|
|
|
|
ct.setKeybinding('r', ct.sortfn("rank", false))
|
|
|
|
|
ct.setKeybinding('n', ct.sortfn("name", true))
|
|
|
|
|
ct.setKeybinding('s', ct.sortfn("symbol", false))
|
|
|
|
|
ct.setKeybinding('p', ct.sortfn("price", true))
|
|
|
|
|
ct.setKeybinding('m', ct.sortfn("marketcap", true))
|
|
|
|
|
ct.setKeybinding('v', ct.sortfn("24hvolume", true))
|
|
|
|
|
ct.setKeybinding('1', ct.sortfn("1hchange", true))
|
|
|
|
|
ct.setKeybinding('2', ct.sortfn("24hchange", true))
|
|
|
|
|
ct.setKeybinding('7', ct.sortfn("7dchange", true))
|
|
|
|
|
ct.setKeybinding('t', ct.sortfn("totalsupply", true))
|
|
|
|
|
ct.setKeybinding('a', ct.sortfn("availablesupply", true))
|
|
|
|
|
ct.setKeybinding('l', ct.sortfn("lastupdated", true))
|
|
|
|
|
ct.setKeybinding(gocui.KeyEnter, ct.enter)
|
|
|
|
|
ct.setKeybinding(gocui.KeySpace, ct.enter)
|
|
|
|
|
ct.setKeybinding(gocui.KeyCtrlC, ct.quit)
|
|
|
|
|