filesize

Displays the current file's size on the status bar

mkxml

28,161

69

Bug Reports

4.0.5

MIT

GitHub

This package consumes the following services:

filesize package for Atom

This package is intended for use with the Atom Editor and it displays the size of the focused file in the status-bar component included with Atom.

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.

Get it now

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.

Screenshots

filesize with popup opened in One Dark theme.

filesize with popup opened in Solarized Light theme while inspecting the above screenshot. Screenception!

How it works

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.

Remote files

Since 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.

Settings

The package has three settings located in Settings->Packages->filesize:

Contributing

You are welcome to send any issues or pull requests.

The current styleguide for the project is Airbnb's JavaScript Styleguide.

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.

Authors