Yazi cheatsheet
Navigation
| Key(s) | Action |
|---|---|
j / ↓ |
Move down |
k / ↑ |
Move up |
l / → |
Enter directory / open file |
h / ← |
Go up to parent directory |
gg |
Jump to top |
G |
Jump to bottom |
z |
Jump to directory (zoxide) |
Z |
Jump/reveal with fzf |
Shift+H |
Back in directory history |
Shift+L |
Forward in directory history |
File Operations
| Key(s) | Action |
|---|---|
o / Enter |
Open selected file(s) |
O / Shift+Enter |
Open selected file(s) interactively |
Space |
Toggle selection |
y |
Copy (yank) selected file(s) |
x |
Cut selected file(s) |
p |
Paste yanked file(s) |
P |
Paste (overwrite) |
Y or X |
Cancel yank/cut status |
d |
Trash selected file(s) |
D |
Permanently delete |
a |
Create file/directory (end with / for dir) |
r |
Rename |
. |
Toggle hidden files |
Tab |
Show file information |
Copy Paths
| Key(s) | Action |
|---|---|
c + c |
Copy file path |
c + d |
Copy directory path |
c + f |
Copy filename |
c + n |
Copy filename (no extension) |
Filtering, Finding, and Searching
| Key(s) | Action |
|---|---|
f |
Filter files (clear with Esc) |
/ |
Find next file |
? |
Find previous file |
n |
Next found item |
N |
Previous found item |
s |
Search files by name (fd) |
S |
Search files by content (ripgrep) |
Ctrl+s |
Cancel ongoing search |
Sorting
| Key(s) | Action |
|---|---|
, + a |
Sort alphabetically |
, + A |
Sort alphabetically (reverse) |
, + m |
Sort by modified time |
, + M |
Sort by modified time (reverse) |
, + s |
Sort by size |
, + S |
Sort by size (reverse) |
, + e |
Sort by extension |
, + E |
Sort by extension (reverse) |
, + n |
Sort naturally |
, + N |
Sort naturally (reverse) |
, + r |
Sort randomly |
Tabs
| Key(s) | Action |
|---|---|
t |
New tab |
1–9 |
Switch to tab N |
[ |
Previous tab |
] |
Next tab |
{ |
Swap with previous tab |
} |
Swap with next tab |
Ctrl+c |
Close current tab |
Miscellaneous
| Key(s) | Action |
|---|---|
; |
Run shell command (background) |
: |
Run shell command (blocking) |
~ / F1 |
Show help |
q |
Quit Yazi |
Q |
Quit without writing CWD file |
Ctrl+z |
Suspend process |
Tips
- Press
Escto cancel selections, filters, or searches. - To create a directory: press
a, type the name ending with/, and pressEnter.