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/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) 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" { 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.