Skip to content

Commit

Permalink
Add separate setting for currency decimal places
Browse files Browse the repository at this point in the history
  • Loading branch information
deanishe committed Jan 13, 2018
1 parent 6d83e77 commit 03f9c60
Show file tree
Hide file tree
Showing 8 changed files with 130 additions and 74 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
Changelog
=========

### [3.5.1][v3.5.1] ###

Released 2018-01-13

- Add `CURRENCY_DECIMAL_PLACES` setting to provide alternate number of decimal places for currency conversions.


### [3.5][v3.5] ###

Expand Down Expand Up @@ -168,4 +174,5 @@ Released 2014-08-09.
[v3.3.1]: https://github.com/deanishe/alfred-convert/releases/tag/v3.3.1
[v3.4]: https://github.com/deanishe/alfred-convert/releases/tag/v3.4
[v3.5]: https://github.com/deanishe/alfred-convert/releases/tag/v3.5
[v3.5.1]: https://github.com/deanishe/alfred-convert/releases/tag/v3.5.1
[openx]: https://openexchangerates.org/
Binary file not shown.
21 changes: 12 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,16 @@ The workflow is configured via the configuration sheet (`[𝒙]`) in Alfred Pref

Basic configuration is performed in the configuration sheet:

| Option | Meaning |
|-----------------------|-----------------------------------------------------------------------------------------------------------------------------------------------|
| `APP_KEY` | API key for [openexchangerates.org][openx]. |
| `COPY_UNIT` | Include unit when copying conversion result. Any value but `0` or empty turns this option on. |
| `DECIMAL_PLACES` | Number of decimal places to show in results. |
| `DECIMAL_SEPARATOR` | Character to separate whole numbers and decimal fractions. Used for parsing input and generating output. |
| `DYNAMIC_DECIMALS` | Dynamically increase the number of decimal places (up to 10) so that the result is non-zero. Any value but `0` or empty turns this option on. |
| `THOUSANDS_SEPARATOR` | Character to delimit thousands Used for parsing input and generating output. |
| `UPDATE_INTERVAL` | How often (in minutes) to update currency exchange rates. |
| Option | Meaning |
|---------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------|
| `APP_KEY` | API key for [openexchangerates.org][openx]. |
| `COPY_UNIT` | Include unit when copying conversion result. Any value but `0` or empty turns this option on. |
| `CURRENCY_DECIMAL_PLACES` | Overrides the default `DECIMAL_PLACES` setting for currency conversions. |
| `DECIMAL_PLACES` | Number of decimal places to show in results. |
| `DECIMAL_SEPARATOR` | Character to separate whole numbers and decimal fractions. Used for parsing input and generating output. |
| `DYNAMIC_DECIMALS` | Dynamically increase the number of decimal places (up to 10) so that the result is non-zero. Any value but `0` or empty turns this option on. |
| `THOUSANDS_SEPARATOR` | Character to delimit thousands Used for parsing input and generating output. |
| `UPDATE_INTERVAL` | How often (in minutes) to update currency exchange rates. |


#### Active currencies ####
Expand Down Expand Up @@ -156,6 +157,7 @@ See [CHANGELOG][changelog] for more information.

| Release | Date |
|-----------------|----------------|
| [3.5.1][v3.5.1] | 2018-01-13 |
| [3.5][v3.5] | 2018-01-12 |
| [3.4][v3.4] | 2017-12-26 |
| [3.3.1][v3.3.1] | 2017-11-21 |
Expand Down Expand Up @@ -219,6 +221,7 @@ All other code/media are released under the [MIT Licence][mit].
[v3.3.1]: https://github.com/deanishe/alfred-convert/releases/tag/v3.3.1
[v3.4]: https://github.com/deanishe/alfred-convert/releases/tag/v3.4
[v3.5]: https://github.com/deanishe/alfred-convert/releases/tag/v3.5
[v3.5.1]: https://github.com/deanishe/alfred-convert/releases/tag/v3.5.1
[cryptocompare]: https://www.cryptocompare.com/
[openx]: https://openexchangerates.org/
[openx-free]: https://openexchangerates.org/signup/free
Expand Down
Loading

0 comments on commit 03f9c60

Please sign in to comment.