Add size format as a power of ten (10^x)

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
eugenesv
Posts: 30
Joined: Fri Mar 04, 2016 7:03 pm

Add size format as a power of ten (10^x)

Post by eugenesv »

Would you please add an option to display all sizes as a power of 10 instead of as a power of 2?
Also, please add a "MB" fixed size format just like "KB"
And finally, maybe remove the useless "B" indicator :) from the labels?
Thank you!
therube
Posts: 4977
Joined: Thu Sep 03, 2009 6:48 pm

Re: Add size format as a power of ten (10^x)

Post by therube »

What is the 'B' indicator?
Or do you mean simply 'K' and 'M' & not 'KB', 'MB'?


(At the least, there is no 'bytes'. Can't stand when a program displays bytes, then specifically also says, 'bytes'.
Never cared for the [layout] of Auto [i.e., mixed] because it is not "readable" [in any easy manner].
I like bytes [without 'bytes'] :-).)

(Oh, & lets not get caught up on KiB / MiB.
As it is, the way I see it, I use the [Everything] statusbar to display KB.
And that works well, because the value displayed there coincides - correctly, with the value reported in other programs [such as the file size displayed in a browser download dialog]. So if I see on my disk, that I have xyz.iso & it is 2168 KB, & I go do download an .iso, & my browser download dialog also shows it to be 2168 KB, I may be able to surmise that they are one in the same, or at least investigate before actually downloading. If one place was using KB & another KiB, then you have to say, ah, 2168 KB ~= 2177 KiB...)
froggie
Posts: 301
Joined: Wed Jun 12, 2013 10:43 pm

Re: Add size format as a power of ten (10^x)

Post by froggie »

To get MB type the following in the search box and press enter

Code: Select all

/size_format=3
You can put it back to KB with

Code: Select all

/size_format=2
or from the options panel

@Void: suggestion: add MB to options panel
eugenesv
Posts: 30
Joined: Fri Mar 04, 2016 7:03 pm

Re: Add size format as a power of ten (10^x)

Post by eugenesv »

froggie wrote: Mon Jun 01, 2020 8:37 pm

Code: Select all

/size_format=3
Wow, that's a nice trick, thanks! Yeah, adding that to the options panel would be even more discoverable :)
eugenesv
Posts: 30
Joined: Fri Mar 04, 2016 7:03 pm

Re: Add size format as a power of ten (10^x)

Post by eugenesv »

therube wrote: Mon Jun 01, 2020 7:41 pm Or do you mean simply 'K' and 'M' & not 'KB', 'MB'?
Yes, would even make them lowercase, so simply 'k' and 'm', it's not that big a size for capital letter :D
therube wrote: Mon Jun 01, 2020 7:41 pm (At the least, there is no 'bytes'. Can't stand when a program displays bytes, then specifically also says, 'bytes'.
Oh, totally!!! Such a waste of space for such a lowly indicator!!! Hate it myself :evil:
therube wrote: Mon Jun 01, 2020 7:41 pm (Oh, & lets not get caught up on KiB / MiB.
Yeah, don't like them either, given that it's not a standard that people follow, the confusion is inevitable, so there is little value in KiB, I anyway have to get the meaning of KB from the context/settings (typically, I just set it in a uniform power-of-10 way) and I don't need those extra letters wasting my precious space everywhere!
Yes, some apps don't support that, but my file manager does, and it's the most important one. Support in Everything would also be great as I use it quite often. Browser — meh, not important, don't really do any comparisons you mention, I just download and then do everything else in the file manager
So I'd just need an option to be able to switch from the current binary prefix in Everything to a decimal prefix with shorter labels and other people can use whatever they like
void
Developer
Posts: 16751
Joined: Fri Oct 16, 2009 11:31 pm

Re: Add size format as a power of ten (10^x)

Post by void »

Everything tries to duplicate the size format in Windows Explorer.

Added to my TODO list:
Add support for base 10 size formats (kB).
Show MB size format option in UI.
Allow user to specify size suffix, eg: /size_format_kb=KiB

For now, to customize the size suffixes, please see Translating Everything:
https://www.voidtools.com/support/every ... anslating/

You can modify the following strings to anything you like:
KB = "KB"
MB = "MB"
GB = "GB"
FORMAT_SIZE_BYTES = "bytes"

Thanks for the suggestions.
eugenesv
Posts: 30
Joined: Fri Mar 04, 2016 7:03 pm

Re: Add size format as a power of ten (10^x)

Post by eugenesv »

Thank you for considering the changes!
void wrote: Wed Jun 03, 2020 8:25 am Everything tries to duplicate the size format in Windows Explorer.
Yeah, that's how those bad old design desicions stick for eternity :(
It should've been WinExplorer's job to allow such a customization to the very fundamental property users stare at so much time
void wrote: Wed Jun 03, 2020 8:25 am For now, to customize the size suffixes, please see Translating Everything:
https://www.voidtools.com/support/every ... anslating/
That's great, thanks, will check this out in the meantime!
eugenesv
Posts: 30
Joined: Fri Mar 04, 2016 7:03 pm

Re: Add size format as a power of ten (10^x)

Post by eugenesv »

void wrote: Wed Jun 03, 2020 8:25 am FORMAT_SIZE_BYTES = "bytes"
I've tried to set it to an empty string, but got a warning and nothing changed in the interface. I've used a zero-width space to overcome the warning, though it seems to have been compiled to a regular space.
Might make sense, when you implement the GUI custom settings for the labels, to also have an option to have it blank.

Otherwise it's working as expected and I don't see no B/bytes anymore, thanks!
therube
Posts: 4977
Joined: Thu Sep 03, 2009 6:48 pm

Re: Add size format as a power of ten (10^x)

Post by therube »

(
If I'm understanding this correctly ?, different OS will display file sizes, differently.
Imagine if you used different machines/OS to work on the same projects.
[new] Windows: File size now in IEC Standard (/1024, International Electrotechnical Commission)
[new] Unix: File size now in Metric Standard (/1000)
https://www.videohelp.com/software/Inte ... ia-Encoder


Size of files in Windows OS. (It's KB or kB?)
[& don't forget to read the accompanying chart/picture ;-).]
)
void
Developer
Posts: 16751
Joined: Fri Oct 16, 2009 11:31 pm

Re: Add size format as a power of ten (10^x)

Post by void »

Future versions of Everything will support the following standards:

Bytes - No unit is shown
JEDEC (Auto) Shows B/KB/MB/GB depending on size to 3 digits
JEDEC (KB) <- The default option, this is the same as Windows Explorer
JEDEC (MB)
IEC (Auto) Shows B/KiB/MiB/GiB depending on size to 3 digits
IEC (KiB)
IEC (MiB)
SI (Auto) Shows B/kB/MB/GB depending on size to 3 digits
SI (kB)
SI (MB)

JEDEC 1024 bytes == 1KB
IEC 1024 bytes == 1KiB
SI (or Metric) 1000 bytes == 1kB

https://en.wikipedia.org/wiki/Kilobyte
https://en.wikipedia.org/wiki/Binary_prefix
https://en.wikipedia.org/wiki/Metric_prefix

Customizing the number of digits shown for Auto options is on my TODO list.
Customizing the unit text is on my TODO list.
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Add size format as a power of ten (10^x)

Post by NotNull »

What will the size: functions use? (size:>10kb , etcetera)
void
Developer
Posts: 16751
Joined: Fri Oct 16, 2009 11:31 pm

Re: Add size format as a power of ten (10^x)

Post by void »

A couple options:
1) use the si: search modifier to specify SI (Metric)
JEDEC would be the default.

2) Use the current size format.
ETP clients/IPC/ES would always use JEDEC. These clients would need to implement their own -SI option
void
Developer
Posts: 16751
Joined: Fri Oct 16, 2009 11:31 pm

Re: Add size format as a power of ten (10^x)

Post by void »

Please try Everything 1.5a if you would like to test the new size standard options.
Post Reply