From e5360472d16bcf1f079c9e7a52d384473c366eaa Mon Sep 17 00:00:00 2001 From: Miguel Mota Date: Sun, 26 Sep 2021 00:31:11 -0700 Subject: [PATCH 1/3] Update CHANGELOG.md --- CHANGELOG.md | 46 +++++++++++++++++++++++++++++++++++++++ docs/content/changelog.md | 7 +++--- 2 files changed, 50 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 93fb03d..fc7b173 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,52 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.6.8] - 2021-09-13 +### Fixed +- Hide holdings amount when using command hide flag + +## [1.6.7] - 2021-09-13 +### Added +- Toggle hide portfolio balances keybinding +- Evaluate expression in portfolio value edit field +- Add 1Y% change column + +## [1.6.6] - 2021-08-22 +### Added +- Default chart range config + +### Fixed +- Duplicate coin portfolio entries +- Increase decimals places shown for small values +- Filecache locking + +## [1.6.5] - 2021-04-25 +### Added +- Chart fullscreen toggle keybinding +- 24% change to holdings command +- Read environment variables for config + +## [1.6.4] - 2021-04-25 +### Added +- Preferred cache directory +- Read host numeric monetary locale +- Column filter for holdings command +- SSH server user config type + +### Fixed +- Config file path +- String rune count + +## [1.6.3] - 2021-03-10 +### Added +- Max pages flag +- SSH server connection max timeout + +### Fixed +- Negative holdings balance input +- Coins and portfolio row selection +- Table scroll + ## [1.6.2] - 2021-02-12 ### Added - Config option to keep row focus on sort diff --git a/docs/content/changelog.md b/docs/content/changelog.md index 70d07e1..7a26ccb 100644 --- a/docs/content/changelog.md +++ b/docs/content/changelog.md @@ -1,8 +1,9 @@ --- -title: "Changelog" -date: 2020-01-01T00:00:00-00:00 +title: "Changelog" date: 2020-01-01T00:00:00-00:00 draft: false --- # Changelog -See [CHANGELOG.md](https://github.com/miguelmota/cointop/blob/master/CHANGELOG.md) on Github. +See [CHANGELOG.md](https://github.com/miguelmota/cointop/blob/master/CHANGELOG.md) on Github for a user-friendly changelog. + +See [releases](https://github.com/miguelmota/cointop/releases) on Github for more detailed commit information of each release. From d17bda59f81fd41f626c8258544d60a644a27455 Mon Sep 17 00:00:00 2001 From: Miguel Mota Date: Sun, 26 Sep 2021 00:36:26 -0700 Subject: [PATCH 2/3] README: Add contributor thanks --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 4417269..d184cf0 100644 --- a/README.md +++ b/README.md @@ -110,6 +110,8 @@ See [docs.cointop.sh/faq](https://docs.cointop.sh/faq) See [docs.cointop.sh/contributing](https://docs.cointop.sh/contributing) +_Many thanks to [Simon Roberts](https://github.com/lyricnz), [Alexis Hildebrandt](https://github.com/afh), and all the [contributors](https://github.com/miguelmota/cointop/graphs/contributors) that made cointop better._ + ## Social - Follow on twitter [@cointop](https://twitter.com/cointop) From b6c0579b38f1942677415092c906c7c6b5051efe Mon Sep 17 00:00:00 2001 From: Miguel Mota Date: Sun, 26 Sep 2021 00:47:40 -0700 Subject: [PATCH 3/3] Remove redundant line. #166 --- cointop/portfolio.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cointop/portfolio.go b/cointop/portfolio.go index 656bc1e..f8f885d 100644 --- a/cointop/portfolio.go +++ b/cointop/portfolio.go @@ -990,12 +990,9 @@ func (ct *Cointop) PrintHoldings24HChange(options *TablePrintOptions) error { percentChange24H += n } - value := strconv.FormatFloat(percentChange24H, 'f', -1, 64) - + value := fmt.Sprintf("%.2f", percentChange24H) if humanReadable { - value = fmt.Sprintf("%.2f%%", percentChange24H) - } else { - value = fmt.Sprintf("%.2f", percentChange24H) + value = fmt.Sprintf("%s%%", value) } if format == "csv" {