A plugin for yazi to calculate the size of the current selection or the current working directory (if no selection is made).
Fork from https://github.com/pirafrank/what-size.yazi to make this plugin work with MacOS.
As mentioned in pirafrank#3, the-boption does not exist on MacOS. In this fork, the size is calculated for the hovered file by default.
- yazi
v25.2.7
duon macOS.
ya pack -a 'ETLaurent/what-size'Add this to your ~/.config/yazi/keymap.toml:
[[manager.prepend_keymap]]
on = "b"
run = "plugin what-size"
desc = "Calc size of selection or cwd"
[[manager.prepend_keymap]]
on = "B"
run = "plugin what-size"
desc = "Calc size of selection or cwd""b" and "B" as "Bytes" since they're free... they can be changed.
MIT