mirror of
https://github.com/kristoferssolo/solorice.git
synced 2025-10-21 20:10:34 +00:00
| .. | ||
| DO_NOT_MODIFY_ANYTHING_IN_THIS_DIRECTORY | ||
| init.lua | ||
| LICENSE | ||
| README.md | ||
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).
Requirements
du
Installation
ya pack -a 'pirafrank/what-size'
Usage
Add this to your ~/.config/yazi/keymap.toml:
[manager]
prepend_keymap = [
{ on = [ ".", "s" ], run = "plugin what-size", desc = "Calc size of selection or cwd" },
]
If you want to copy the result to clipboard, you can add --clipboard or -c as first argument:
[manager]
prepend_keymap = [
{ on = [ ".", "s" ], run = "plugin what-size --args='--clipboard'", desc = "Calc size of selection or cwd" },
]
Change to whatever keybinding you like.
License
MIT