Bonus: If you click on the filesize component it will show a tooltip with more information about the file, try it out!
It works great with your new theme! The popups tries to follow your current theme's style, try switching themes and see for yourself.
Config change in 3.0.0:
KibibyteRepresentation config has been changed to
UseDecimal. The new default value is
false to preserve the old behavior. Set to true to use base 1000 instead of base 1024.
If you have Atom Shell Commands run this on your terminal to get it now:
apm install filesize
You can also find this package searching for
filesize in the Atom package browser inside Settings.
filesize with popup opened in One Dark theme.
filesize with popup opened in Solarized Light theme while inspecting the above screenshot. Screenception!
It uses Node.JS's fs module to calculate the size in bytes of the current file in focus.
If the popup is enabled (by default it is), it fetches some additional info you might want to see:
It works along side the status-bar component, so you need to have both enabled. The status-bar component is installed and enabled by default by Atom. Thus, usually, you won't need to worry about it.
The package has three settings located in
Use Decimal, whether you want to show the size using Decimal or IEC/ISO80000. It defaults to using the IEC representation.
Enable Popup Appearance, whether the popup will show on clicking the
filesizecomponent on the status bar. Defaults to showing the popup.
Display Full Day Time On Popup, whether to use 24 or 12 hour time display. It defaults to using the 24-hour format.
Display Gzipped Size on Popup, whether to enable gzip size appearance on the popup.
You are welcome to send any issues or pull requests.
Please run eslint with
npm run lint and
apm test before sending commits.
Any bugs? Please file an issue
Wanna fix it? Please send a pull request.
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.