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.
New in 4.0.0: Remote file support. Now you can quickly check the estimated size of your remote project files. This includes support for the popular nuclide extension. More details of the implementation below.
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.
4.0.0 filesize supports remote files. The extension is basically reading the editor buffer to estimate the file size.
The estimated size is identified by the
~ symbol before the formatted size in the status bar.
Tooltip detailed info does not feature the whole set of information.
When working with remote files the extension does not have access to the whole file metadata, so we are showing estimated size only. This may change in future releases.
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.