Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pirafrank/what-size.yazi
A plugin for yazi to calculate the size of current selection or current working directory
https://github.com/pirafrank/what-size.yazi
cli lua tui yazi yazi-plugin
Last synced: 3 days ago
JSON representation
A plugin for yazi to calculate the size of current selection or current working directory
- Host: GitHub
- URL: https://github.com/pirafrank/what-size.yazi
- Owner: pirafrank
- License: mit
- Created: 2024-08-03T19:04:25.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-12-30T10:40:30.000Z (16 days ago)
- Last Synced: 2025-01-07T23:47:48.034Z (8 days ago)
- Topics: cli, lua, tui, yazi, yazi-plugin
- Language: Lua
- Homepage: https://fpira.com
- Size: 6.84 KB
- Stars: 17
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# what-size.yazi
A plugin for [yazi](https://github.com/sxyazi/yazi) to calculate the size of the current selection or the current working directory (if no selection is made).
## Compatibility
- yazi `0.4.x` since commit `2780de5aeef1ed16d1973dd6e0cd4d630c900d56` ([link](https://github.com/pirafrank/what-size.yazi/commit/2780de5aeef1ed16d1973dd6e0cd4d630c900d56)).
- yazi `0.3.x` up to commit `f08f7f2d5c94958ac4cb66c51a7c24b4319c6c93` ([link](https://github.com/pirafrank/what-size.yazi/commit/f08f7f2d5c94958ac4cb66c51a7c24b4319c6c93)).## Requirements
- `du` on Linux. macOS and Windows support is planned.
## Installation
```sh
ya pack -a 'pirafrank/what-size'
```## Usage
Add this to your `~/.config/yazi/keymap.toml`:
```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:
```toml
[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