Human readable filesize

Started by piovrauz, 29 Aug '16 - 21:24

piovrauz

Can the info window / general / size field show human readable numbers?
I mean using units of measure like Kb & Mb when needed.
If the file is big the size of the file becomes hard to grasp: thinking of flacs and long mixes.

Ian @ un4seen

Yep, that should be possible. Or perhaps insert a comma after every 3 digits instead?

piovrauz

Well, a comma would be good too, but not as good as having human readable filesize, with units.
I suppose it won't be necessary to do a lot of cases anyway, I suppose Gb filesize should be rare.
I'd say the best would be both of them, as the same time, or one only, as an option obviously.
If possible, as I don't know how much work this request translates to.

Ian @ un4seen

Here's an update that inserts a comma after every 3 digits of the file size in the info window and track info window.

   www.un4seen.com/stuff/xmplay.exe

piovrauz

Thanks a lot, it's more readable now.
Btw, a small detail: I see you used a comma (","), shouldn't it be a "." instead?

Ian @ un4seen

It varies by country, but a comma is used here in Blighty :)

I'll see if it can be changed to use the user's locale setting.

piovrauz

Yes, I knew it changes by country (and I stil l don't get why, shouldn't math be an universal language?).
If it takes too much work np, after all it's just a minor detail.

saga

Quote from: piovrauz on  3 Sep '16 - 10:22(and I stil l don't get why, shouldn't math be an universal language?).
Well, apart from thousands separators not really being used in math... there are always historic reasons behind this.
Great feature, by the way!

Ian @ un4seen

Regarding using the user's locale setting to determine the thousands separator, it occurs to me that the decimal mark may also need to be changed then, ie. those things shouldn't both be ".". So I think I'll just leave it as a comma. Another possibility would be to use a space.

piovrauz

okie, let's leave it like that, a comma, let's not start with decimals...

raina

Isn't the decimal mark found in the locale settings just as the thousands separator is? Anyway, it should be configurable somehow. Otherwise there's no pleasing everybody, especially with those horrible commas. ;)

guest

How to display the exact file size in bytes in the library size column? Is there a secret setting for this?

Ian @ un4seen

That isn't currently possible, but here's an update that adds an "Abbreviate size" option to the library header's right-click menu:

   www.un4seen.com/stuff/xmplay.exe