Change toml config defaultView to default_view

pull/38/head
Miguel Mota 5 years ago
parent 065ab017ec
commit 26871444c3
No known key found for this signature in database
GPG Key ID: 67EC1161588A00F9

@ -399,7 +399,7 @@ You can then configure the actions you want for each key:
```toml
currency = "USD"
defaultView = ""
default_view = ""
api = "coingecko"
colorscheme = "cointop"
refresh_rate = 60
@ -792,15 +792,15 @@ Frequently asked questions:
- Q: How do I set the favorites view to be the default view?
- A: In `~/.cointop/config.toml`, set `defaultView = "favorites"`
- A: In the config file, set `default_view = "favorites"`
- Q: How do I set the portfolio view to be the default view?
- A: In `~/.cointop/config.toml`, set `defaultView = "portfolio"`
- A: In the config file, set `default_view = "portfolio"`
- Q: How do I set the table view to be the default view?
- A: In `~/.cointop/config.toml`, set `defaultView = "default"`
- A: In the config file, set `default_view = "default"`
- Q: How can use a different config file other than the default?

@ -18,7 +18,7 @@ type config struct {
Favorites map[string][]interface{} `toml:"favorites"`
Portfolio map[string]interface{} `toml:"portfolio"`
Currency interface{} `toml:"currency"`
DefaultView interface{} `toml:"defaultView"`
DefaultView interface{} `toml:"default_view"`
CoinMarketCap map[string]interface{} `toml:"coinmarketcap"`
API interface{} `toml:"api"`
Colorscheme interface{} `toml:"colorscheme"`

Loading…
Cancel
Save