Yazi File Manager Navigation
Yazi File Manager Navigation
Yazi is a terminal-based file manager written in Rust with vim-like keybindings and built-in fzf/zoxide integration.
Directory Navigation with fzf
Yazi has native fzf integration for quick directory jumping:
Built-in Directory Search
| Key | Function | Details |
|---|---|---|
z | Zoxide jump | Opens zoxide picker - jumps to frecent directories based on your history |
Z | fzf recursive search | Opens fzf to search all subdirectories under current location |
:cd | Command mode cd | Opens fzf to select from directory history |
Recommended Workflow
Quick jump to known directory:
- Press
zβ Type partial name β Select from frecent matches - Example:
z midiβ jumps to~/Code/github.com/theslyprofessor/midimaze - Best for: Directories you've visited before (zoxide tracks your history)
Explore unknown structure:
- Press
Z(capital) β Search all subdirectories recursively with fzf - Useful when you know the folder name but not the path
- Important: Works best in specific project directories, NOT from home (
~) - Tip: Navigate to parent directory first (e.g.,
~/Code/github.com/theslyprofessor/) then useZ
Troubleshooting fzf Search
Z doesn't find directories or times out:
-
Too many subdirectories - If you're in
~(home directory), there are thousands of subdirectories- Solution: Navigate to a more specific parent directory first
- Example:
cd ~/Codethen pressZto search within Code
-
Directory not in zoxide history -
zonly shows directories you've visited- Solution: Use
Z(fzf) or manuallycdto the directory once to add it to zoxide
- Solution: Use
-
Performance in large directories:
- Home directory (
~) has too many files/folders - Use zoxide (
z) instead for top-level navigation - Save
Zfor searching within specific projects
- Home directory (
Basic Navigation
| Key | Function |
|---|---|
h / β | Go up one directory |
l / β | Enter directory / Open file |
j / β | Move cursor down |
k / β | Move cursor up |
g | Jump to top |
G | Jump to bottom |
~ | Go to home directory |
File Operations
| Key | Function |
|---|---|
<Space> | Toggle selection |
y | Yank (copy) selected files |
p | Paste files |
d | Cut (move) files |
D | Delete files |
r | Rename file |
a | Create new file/directory |
Search and Filter
| Key | Function |
|---|---|
/ | Search in current directory |
n | Next search result |
N | Previous search result |
f | Filter files (show only matches) |
View Options
| Key | Function |
|---|---|
[ | Go to parent directory in preview |
] | Go to first child in preview |
{ | Decrease preview size |
} | Increase preview size |
Integration with Other Tools
Yazi works seamlessly with:
- zoxide - Smart directory jumping based on frecency
- fzf - Fuzzy finding for files and directories
- ripgrep - Content search (via plugins)
Configuration
Yazi config lives in ~/.config/yazi/:
yazi.toml- Main configurationkeymap.toml- Custom keybindingstheme.toml- Color scheme
Links
Official Documentation
- URL: https://yazi-rs.github.io/
- Summary: Official Yazi documentation with detailed configuration options
- Related: Unix, fzf, zoxide