Rename top_coin to move_to_first_page_first_row

pull/218/head
Simon Roberts 3 years ago
parent b1385761a0
commit b5a11c4092
No known key found for this signature in database
GPG Key ID: 0F30F99E6B771FD4

@ -4,7 +4,7 @@ package cointop
func ActionsMap() map[string]bool {
return map[string]bool{
"first_page": true,
"top_coin": true,
"move_to_first_page_first_row": true,
"help": true,
"toggle_show_help": true,
"close_help": true,

@ -36,7 +36,7 @@ func DefaultShortcuts() map[string]string {
"alt+right": "sort_right_column",
"F1": "help",
"F5": "refresh",
"0": "top_coin",
"0": "move_to_first_page_first_row",
"1": "sort_column_1h_change",
"2": "sort_column_24h_change",
"3": "sort_column_30d_change",

@ -218,8 +218,8 @@ func (ct *Cointop) SetKeybindingAction(shortcutKey string, action string) error
view = "help"
case "first_page":
fn = ct.Keyfn(ct.FirstPage)
case "top_coin":
fn = ct.Keyfn(ct.TopCoin)
case "move_to_first_page_first_row":
fn = ct.Keyfn(ct.NavigateToFirstPageFirstRow)
case "sort_column_1h_change":
fn = ct.Sortfn("1h_change", true)
case "sort_column_24h_change":

@ -309,8 +309,8 @@ func (ct *Cointop) PrevPageTop() error {
return nil
}
// TopCoin navigates to the first row on the first page
func (ct *Cointop) TopCoin() error {
// NavigateToFirstPageFirstRow navigates to the first row on the first page
func (ct *Cointop) NavigateToFirstPageFirstRow() error {
log.Debug("TopCoin()")
ct.GoToGlobalIndex(0)
return nil

@ -46,7 +46,7 @@ refresh_rate = 60
[shortcuts]
"$" = "last_page"
0 = "top_coin"
0 = "move_to_first_page_first_row"
1 = "sort_column_1h_change"
2 = "sort_column_24h_change"
7 = "sort_column_7d_change"
@ -133,7 +133,7 @@ Action|Description
----|------|
`first_chart_range`|Select first chart date range (e.g. 24H)
`first_page`|Go to first page
`top_coin`|Go to first coin on the first page
`move_to_first_page_first_row`|Go to first row on the first page
`enlarge_chart`|Increase chart height
`help`|Show help
`hide_currency_convert_menu`|Hide currency convert menu

Loading…
Cancel
Save