Skip to content
 
 

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

what-size.yazi

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 -b option does not exist on MacOS. In this fork, the size is calculated for the hovered file by default.

Compatibility

  • yazi v25.2.7

Requirements

  • du on macOS.

Installation

ya pack -a 'ETLaurent/what-size'

Usage

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.

License

MIT

About

A plugin for yazi to calculate the size of current selection or current working directory

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages