From 26871444c3abffc989a59fbf24a21d5f74b4cdb0 Mon Sep 17 00:00:00 2001 From: Miguel Mota Date: Thu, 27 Jun 2019 21:21:36 -0700 Subject: [PATCH] Change toml config defaultView to default_view --- README.md | 8 ++++---- cointop/config.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ff16fe9..70a6c84 100644 --- a/README.md +++ b/README.md @@ -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? diff --git a/cointop/config.go b/cointop/config.go index da017b0..1a154e0 100644 --- a/cointop/config.go +++ b/cointop/config.go @@ -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"`