diff --git a/cointop/keybindings.go b/cointop/keybindings.go index e48ce93..1997b61 100644 --- a/cointop/keybindings.go +++ b/cointop/keybindings.go @@ -295,7 +295,7 @@ func (ct *Cointop) Keybindings(g *gocui.Gui) error { fn = ct.Sortfn("balance", true) case "sort_column_holdings": fn = ct.Sortfn("holdings", true) - case "sort_column_percentholdings": + case "sort_column_percent_holdings": fn = ct.Sortfn("percentholdings", true) case "last_page": fn = ct.Keyfn(ct.LastPage) diff --git a/cointop/shortcuts.go b/cointop/shortcuts.go index 506e1ba..ec5d254 100644 --- a/cointop/shortcuts.go +++ b/cointop/shortcuts.go @@ -67,7 +67,7 @@ func DefaultShortcuts() map[string]string { "v": "sort_column_24h_volume", "q": "quit_view", "Q": "quit_view", - "%": "sort_column_percentholdings", + "%": "sort_column_percent_holdings", "$": "last_page", "?": "help", "/": "open_search", diff --git a/cointop/table.go b/cointop/table.go index b7bc14a..f0451f7 100644 --- a/cointop/table.go +++ b/cointop/table.go @@ -105,7 +105,7 @@ func (ct *Cointop) RefreshTable() error { ct.colorscheme.TableRow(fmt.Sprintf("%15s", strconv.FormatFloat(coin.Holdings, 'f', -1, 64))), colorbalance(fmt.Sprintf("%15s", humanize.Commaf(coin.Balance))), color24h(fmt.Sprintf("%8.2f%%", coin.PercentChange24H)), - ct.colorscheme.TableRow(fmt.Sprintf("%10.2f%%", percentHoldings)), + ct.colorscheme.TableRow(fmt.Sprintf("%12.2f%%", percentHoldings)), ct.colorscheme.TableRow(pad.Right(fmt.Sprintf("%17s", lastUpdated), 80, " ")), ) }