← Back to cheatsheets
← Home
Basic Navigation
File Navigation
- h or ← - Go to parent directory
- l or → or Enter - Enter directory / Open file
- Ctrl+d - Scroll down half page
- Ctrl+u - Scroll up half page
- Ctrl+f - Scroll down full page
- Ctrl+b - Scroll up full page
Quick Navigation
- - - Go to previous directory
- , - Go to previous directory (alternative)
- z - Go to parent directory
- Z - Go to previous directory
File Operations
Selection
- v - Toggle selection (alternative)
Copy/Move/Delete
- P - Paste files (with overwrite prompt)
- d - Delete selected files
- D - Delete permanently (bypass trash)
- Y - Copy file path (absolute)
Create
- m - Create new file (with prompt)
- M - Create new directory (with prompt)
Viewing and Opening
Viewing
- o - Open file (system default)
- O - Open file (with application selector)
- E - Open file in editor (with editor selector)
- i - Show file information
- I - Show file information (detailed)
Preview
- W - Toggle preview (alternative)
- p - Toggle preview (alternative)
- P - Toggle preview (alternative)
Search and Filter
Search
- ? - Search files (backward)
Filter
- F - Filter files (case sensitive)
Find
- : - Find file by name (backward)
Tabs and Windows
Tabs
- Q - Close all tabs except current
Windows
- Tab - Switch between panes
- Ctrl+j - Focus bottom pane
- Ctrl+l - Focus right pane
Sorting and Display
Sorting
- t - Sort by modified time
- E - Sort by extension (reverse)
Display
- z - Toggle file size display
- Z - Toggle file size display (alternative)
- ; - Toggle line numbers (alternative)
Advanced Operations
Archive Operations
- e - Extract archive (with prompt)
Git Operations
- B - Show git branches (alternative)
System Operations
- ! - Execute shell command
- $ - Execute shell command (with output)
- & - Execute shell command (background)
- @ - Execute shell command (with prompt)
Other Operations
- Ctrl+c - Cancel operation (alternative)
Command Mode
- cd <path> - Change directory
- config - Open config file
Configuration
Key Locations
- ~/.config/yazi/yazi.toml - Main config
- ~/.config/yazi/keymap.toml - Key bindings
- ~/.config/yazi/theme.toml - Theme config
- ~/.config/yazi/plugins/ - Plugins directory
Common Settings (yazi.toml)
[manager]
sort_by = "alphabetical"
sort_sensitive = true
sort_reverse = false
sort_dir_first = true
linemode = "none"
show_hidden = false
show_symlink = true
scrolloff = 5
mouse_enabled = true
[preview]
tab_size = 2
max_width = 600
max_height = 900
image_quality = 75
Common Key Bindings (keymap.toml)
[manager]
keymap = [
{ on = [ "<Enter>", "l" ], run = "open", desc = "Open file or enter directory" },
{ on = [ "h", "<Left>" ], run = "leave", desc = "Go to parent directory" },
{ on = [ "j", "<Down>" ], run = "move", desc = "Move down" },
{ on = [ "k", "<Up>" ], run = "move", desc = "Move up" },
{ on = [ "gg" ], run = "go 0", desc = "Go to top" },
{ on = [ "G" ], run = "go -1", desc = "Go to bottom" },
{ on = [ "<Space>" ], run = "select --toggle", desc = "Toggle selection" },
{ on = [ "y" ], run = "copy", desc = "Copy files" },
{ on = [ "x" ], run = "cut", desc = "Cut files" },
{ on = [ "p" ], run = "paste", desc = "Paste files" },
{ on = [ "d" ], run = "remove", desc = "Delete files" },
{ on = [ "r" ], run = "rename", desc = "Rename file" },
{ on = [ "n" ], run = "create", desc = "Create file" },
{ on = [ "N" ], run = "create --dir", desc = "Create directory" },
{ on = [ "/" ], run = "search", desc = "Search files" },
{ on = [ "f" ], run = "filter", desc = "Filter files" },
{ on = [ "t" ], run = "tab_create", desc = "Create tab" },
{ on = [ "q" ], run = "tab_close", desc = "Close tab" },
]
Tips
- Use :config to open config file
- Use :theme to change theme
- Use Ctrl+c to cancel operations
- Use Esc to clear search/filter
- Use Space to select multiple files
- Use y then p to copy and paste files
- Use x then p to cut and paste files
- Use / to search files quickly
- Use Tab to switch between panes
- Use . to toggle hidden files
- Use gg and G for quick navigation
- Use ~ to go to home directory
- Use - to go to previous directory
← Back to cheatsheets
← Home