Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/KKV9/command.yazi
A Yazi plugin that displays a command prompt for yazi commands.
https://github.com/KKV9/command.yazi
yazi yazi-plugin
Last synced: about 4 hours ago
JSON representation
A Yazi plugin that displays a command prompt for yazi commands.
- Host: GitHub
- URL: https://github.com/KKV9/command.yazi
- Owner: KKV9
- License: mit
- Created: 2024-06-30T17:59:29.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-07-11T19:09:33.000Z (4 months ago)
- Last Synced: 2024-07-12T16:35:53.425Z (4 months ago)
- Topics: yazi, yazi-plugin
- Language: Lua
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-yazi - command - A Yazi plugin that displays a command prompt for yazi commands. (Plugins)
- awesome-yazi - command - A Yazi plugin that displays a command prompt for yazi commands. (Plugins)
README
# command.yazi
A Yazi plugin that displays a command prompt for yazi commands.
## Install
```bash
# For Unix platforms
git clone https://github.com/KKV9/command.yazi.git ~/.config/yazi/plugins/command.yazi## For Windows
git clone https://github.com/KKV9/command.yazi.git %AppData%\yazi\config\plugins\command.yazi# Or with yazi plugin manager
ya pack -a KKV9/command
```- Add this to your `keymap.toml`:
```toml
[[manager.prepend_keymap]]
on = [ "c", "p" ]
run = "plugin command"
desc = "Yazi command prompt"
```## Usage
- Press `c` `p` to display the prompt.
- Type any yazi command. e.g `select_all`
- Parameters are assumed to be flags and default to the value "yes". e.g. `yank --cut` is equivalent to `yank --cut=yes`
- Parameters can be assigned values either with an equals or a space. e.g. `rename --empty=stem` or `rename --empty stem`
- Parameters can be assigned multiple arguments separated by a space. e.g. `plugin example --args arg1 arg2 arg3`
- Multiple words that are NOT arguments should be placed in double quotes. e.g. `shell "ls -l | less" --block --confirm`
- Argument values begining with `--` are assumed to be arguments and should be escaped . e.g. use `plugin shell --args=\--block`