-
-
Notifications
You must be signed in to change notification settings - Fork 437
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for bytes separated by thousand with comma #569
base: master
Are you sure you want to change the base?
Conversation
…ses | Validation extended to support mentioned case.
…ses | Formatting, test added
…ses | CHANGELOG updated
…ses | Added missing valid cases
…ses | Adjusted CHANGELOG
…ses | fmt applied
…ery useful | Added support for thousand separated bytes
Codecov Report
@@ Coverage Diff @@
## master #569 +/- ##
==========================================
- Coverage 86.40% 85.88% -0.53%
==========================================
Files 37 37
Lines 3848 3869 +21
==========================================
- Hits 3325 3323 -2
- Misses 523 546 +23
Continue to review full report at Codecov.
|
Hey, thanks for working on this. I found a related issue in exa for this ogham/exa#554. |
the issue in exa and lsd shows there seems to be someone who cares about showing the separator, but it may really be strange for the people not using it is also not worth adding the clang dependency for such a minor feature... I have checked the |
|
Exactly as @meain mentioned, my idea was to use only part which doesn't require |
What do you have in mind to get system locale? I think it is better gone in as a single PR just to validate the idea. @arkadiuszbielewicz |
…ery useful | Use system setting to determine formatting - only on unix
Hi, I've checked available options and finally I've decided to use |
…ery useful | Potential fix for unix musl
Hi @arkadiuszbielewicz, could you please fix the CI error, and rebase onto the master, also squash your commits for a git clean history. |
Solution for task #533.
Used
num-format
library as it's really simple to use and seems to be performant. It also allows further extension to support OS locale and grouping not only by thousands but also in Indian style. UsedLocale.en
as it's most obvious.TODO
cargo fmt