Command.yazi
A plugin for Yazi that provides a command palette for executing commands interactively.
Install / Use
/learn @KKV9/Command.yaziREADME
command.yazi
A plugin for Yazi that provides a command palette for executing commands interactively.
Install
# 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 pkg add KKV9/command
- Add this to your
keymap.toml:
[[mgr.prepend_keymap]]
on = [ "c", "p" ]
run = "plugin command"
desc = "Open command palette"
Usage
Basic Usage
- Press
cthenpto open the command palette - Type any Yazi command (e.g.,
toggle_all,yank,rename) - Press Enter to execute
Command Syntax
Simple commands:
quit
open
yank
Commands with flags:
yank --cut
toggle --state=on
remove --force --permanently
Commands with arguments:
cd ~/Downloads
arrow 5
Commands with multi-word arguments (use quotes):
cd "~/My Documents"
shell "ls -l | less" --block
Flag Syntax Rules
Flags default to "yes":
yank --cutis equivalent toyank --cut=yesremove --forceis equivalent toremove --force=yes
Flags can use = or space for values:
rename --empty=stem(using equals)rename --empty stem(using space)- Both are valid and equivalent
Multiple arguments for a single flag:
plugin example --something "arg1 arg2 arg3"
sort --reverse --dir-first
Escaping -- in argument values:
- If an argument value starts with
--, escape it with a backslash - Example:
plugin shell --args=\--block - This prevents
--block(a plugin argument) from being interpreted as a yazi command argument
Complete Examples
# Toggle selection state
toggle --state=on
# Yank files in cut mode
yank --cut
# Remove files permanently without confirmation
remove --force --permanently
# Change directory interactively
cd --interactive
# Execute shell command with blocking
shell "btop" --block
# Rename with empty stem and cursor at start
rename --empty=stem --cursor=start
# Search using fd with custom arguments
search --via=fd --args=-H
# Create directory with force overwrite
create --force --dir
# Open file interactively
open --interactive
# Sort by modified time, reversed, directories first
sort mtime --reverse --dir-first
Supported Commands
The plugin validates commands and flags against the current Yazi command set. See the Yazi keymap documentation for a complete list of available commands and their options.
Common Commands
arrow- Move cursor up/downcd- Change directorycopy- Copy file path/namecreate- Create file/directoryenter- Enter directoryfilter- Filter filesfind- Find fileshidden- Toggle hidden filesleave- Go to parent directoryopen- Open filepaste- Paste yanked filesquit- Exit Yaziremove- Remove/trash filesrename- Rename filesearch- Search filesshell- Execute shell commandsort- Sort filestoggle- Toggle file selectionyank- Yank (copy) files
Related Skills
node-connect
349.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
