Yazi provides powerful file operation commands with a Vim-like yank-paste model.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/sxyazi/yazi/llms.txt
Use this file to discover all available pages before exploring further.
Opening Files
| Key | Command | Description |
|---|---|---|
o / <Enter> | open | Open selected files with default application |
O / <S-Enter> | open --interactive | Open with application chooser |
Yazi will open files using your system’s default applications, or you can configure custom openers in
yazi.toml.Creating Files and Directories
Pressa to create new files or directories:
Examples:
Yank (Copy) and Cut
Yazi uses a yank-paste model similar to Vim:Yank Commands
| Key | Command | Description |
|---|---|---|
y | yank | Yank (copy) selected files |
x | yank --cut | Cut selected files for moving |
Y / X | unyank | Cancel the yank/cut operation |
- Copy Workflow
- Move Workflow
Select files
Select one or more files (see Selection)
Paste Operations
| Key | Command | Description |
|---|---|---|
p | paste | Paste yanked files |
P | paste --force | Paste and overwrite existing files |
Symbolic and Hard Links
Create links to yanked files:| Key | Command | Description |
|---|---|---|
- | link | Create symbolic link (absolute path) |
_ | link --relative | Create symbolic link (relative path) |
<C--> | hardlink | Create hard link to yanked files |
Deleting Files
Yazi supports both trash and permanent deletion:| Key | Command | Description |
|---|---|---|
d | remove | Move selected files to trash |
D | remove --permanently | Permanently delete files (cannot be undone) |
Renaming Files
Pressr to rename files:
rename --cursor=before_ext command positions the cursor intelligently:
- For
document.txt, cursor appears after “document” and before “.txt” - For files without extensions, cursor appears at the end
Yazi also supports bulk renaming through external editors. Check the plugins documentation for advanced renaming options.
Copy Path/Name
Copy file information to the clipboard:| Keybinding | Command | Description |
|---|---|---|
cc | copy path | Copy absolute file path |
cd | copy dirname | Copy parent directory path |
cf | copy filename | Copy filename with extension |
cn | copy name_without_ext | Copy filename without extension |
Shell Commands
Execute shell commands on selected files:| Key | Command | Description |
|---|---|---|
; | shell --interactive | Run shell command (async) |
: | shell --block --interactive | Run shell command (block until finished) |
- Interactive Shell (`;`)
- Blocking Shell (`:`)
Non-blocking shell execution. Yazi continues running while the command executes.
Hidden Files
Toggle visibility of hidden files:File Selection Preview
When files are selected or in the yank buffer, Yazi displays:- Yellow highlight: Files in the yank buffer (copied)
- Red highlight: Files in the cut buffer (cut for moving)
- Visual selection: Files selected in visual mode