Skip to content
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

[Better file sizes in Explorer details] Give option to change how many number are displayed after the decimal point #1313

Open
trparky opened this issue Dec 8, 2024 · 1 comment
Labels
mod-enhancement New feature or request for a mod

Comments

@trparky
Copy link

trparky commented Dec 8, 2024

Plugin: Better file sizes in Explorer details by @m417z

I'd like to see the ability to change how many numbers are displayed after the decimal point.

@trparky trparky added the mod-enhancement New feature or request for a mod label Dec 8, 2024
@m417z
Copy link
Member

m417z commented Dec 12, 2024

I'm wondering, how many numbers would you like to have displayed? There's not much control over the formatting, the PSFormatForDisplay function is used and it returns a formatted value according to the current locale, the language of the user, and other factors. Pretty much the only formatting option for file sizes that I see is PDFF_ALWAYSKB (Byte sizes are always displayed in KB, regardless of size).

I could format the size manually instead, but then, how far should I go? Should I support both periods and commas? Should I provide a way to set custom names for bytes, KB, GB, or use the user's language and locale? etc.

I could also adjust the formatted string. In this case, the code needs to be familiar with the possible formatted results, which can be different depending on the different environment conditions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mod-enhancement New feature or request for a mod
Projects
None yet
Development

No branches or pull requests

2 participants