Yazi
Yazi is a modern and intuitive file manager for the terminal.
Installation
# macOS (using Homebrew)brew install yazi
# Arch Linuxpacman -S yazi
# Using Cargo (Rust package manager)cargo install yaziBasic Navigation
| Keybinding | Description |
|---|---|
h, j, k, l | Navigate left, down, up, right |
H, L | Go to parent/child directory |
g g | Go to the top |
G | Go to the bottom |
Alt+j/k | Scroll preview down/up |
Ctrl+d/u | Scroll down/up half-page |
Ctrl+f/b | Scroll down/up full-page |
File Operations
| Keybinding | Description |
|---|---|
Space | Select/deselect current file |
v | Toggle visual mode |
V | Select all files |
Ctrl+a | Select all files |
c | Copy selected files |
x | Cut selected files |
p | Paste files |
y | Copy selected file path |
Y | Copy selected file name |
d | Move to trash |
D | Permanently delete |
: | Enter command mode |
Search & Filter
| Keybinding | Description |
|---|---|
/ | Search in current directory |
n, N | Go to next/previous match |
f | Filter files by name |
F | Reset filters |
z | Toggle hidden files |
Tabs & Windows
| Keybinding | Description |
|---|---|
Ctrl+t | Open new tab |
Ctrl+w | Close current tab |
Tab, Shift+Tab | Go to next/previous tab |
Alt+1-9 | Go to tab 1-9 |
File Previews
| Keybinding | Description |
|---|---|
i | Toggle preview window |
o | Open file with default application |
Enter | Open file/directory |
e | Open in editor (neovim) |
Marks & Bookmarks
| Keybinding | Description |
|---|---|
m + [a-zA-Z] | Create bookmark with letter |
' + [a-zA-Z] | Jump to bookmark |
Configuration
Configuration file is located at ~/.config/yazi/yazi.toml
Common Commands
| Command | Description |
|---|---|
:q | Quit |
:help | Show help |
:mkdir [name] | Create new directory |
:touch [name] | Create new file |
:chmod [mode] | Change file permissions |
:cd [path] | Change directory |
:bulk [cmd] | Run command on selected files |
Tips for macOS
-
Integrate with Homebrew by adding the preview plugin:
Terminal window brew install bat fd ripgrep fzf ueberzug -
Add to your
.zshrcfor quick access:Terminal window alias y='yazi' -
Configure Yazi to use Berkeley Mono in your config file:
[style]font_family = "Berkeley Mono"
Custom Keybindings
Add to ~/.config/yazi/keymap.toml:
[manager]keymap = [ # Custom keybindings go here { on = ["e"], exec = "shell 'nvim $file'", desc = "Edit with Neovim" },]This cheatsheet covers the most essential commands and features of Yazi. You can always access the built-in help by pressing :help while in Yazi.