diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..ef5ad3b --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,25 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Holdings", + "type": "go", + "request": "launch", + "mode": "auto", + "program": "cmd/cointop/cointop.go", + "args": ["holdings"], + "env": {"DEBUG": "yes"} + }, + { + "name": "Portfolio", + "type": "go", + "request": "launch", + "mode": "auto", + "program": "cmd/cointop/cointop.go", + "env": {"DEBUG": "yes"} + } + ] +} \ No newline at end of file diff --git a/cointop/default_shortcuts.go b/cointop/default_shortcuts.go index b5894a5..f1bdafa 100644 --- a/cointop/default_shortcuts.go +++ b/cointop/default_shortcuts.go @@ -39,7 +39,6 @@ func DefaultShortcuts() map[string]string { "1": "sort_column_1h_change", "2": "sort_column_24h_change", "3": "sort_column_30d_change", - "6": "sort_column_1y_change", "7": "sort_column_7d_change", "a": "sort_column_available_supply", "b": "sort_column_balance", @@ -70,6 +69,7 @@ func DefaultShortcuts() map[string]string { "t": "sort_column_total_supply", "u": "sort_column_last_updated", "v": "sort_column_24h_volume", + "y": "sort_column_1y_change", "q": "quit_view", "Q": "quit_view", "%": "sort_column_percent_holdings", diff --git a/cointop/table_header.go b/cointop/table_header.go index 80ea034..359c0a7 100644 --- a/cointop/table_header.go +++ b/cointop/table_header.go @@ -97,7 +97,7 @@ var HeaderColumns = map[string]*HeaderColumn{ }, "1y_change": &HeaderColumn{ Slug: "1y_change", - Label: "3[6]5D%", + Label: "1[y]%", PlainLabel: "1Y%", }, "total_supply": &HeaderColumn{