Skip to main content

Basic Navigation

Movement

ShortcutAction
h / Go to parent directory
j / Move cursor down
k / Move cursor up
l / Enter directory or open file
gGo to top of file list
GGo to bottom of file list
JScroll preview pane down
KScroll preview pane up

Selection

ShortcutAction
SpaceToggle selection on current file
vEnter visual mode (arrow keys to select range)
VEnter visual mode (select all from cursor to top/bottom)
EscClear selection or exit visual mode

File Operations

ShortcutAction
yYank (copy) selected files
pPaste yanked files into current directory
dMove selected files to trash
DPermanently delete selected files (bypasses trash)
aCreate a new file
rRename selected file
.Toggle display of hidden files
~Go to home directory
ShortcutAction
sSearch files by name (requires fd)
SSearch file contents (requires ripgrep)

After pressing s or S, type your query and press Enter. Navigate results with j/k, press Enter to open, or Esc to cancel.

Filter

ShortcutAction
fFilter the current file list in real time

While filtering, type a substring to instantly narrow the visible files. Press Esc to clear the filter.

Sorting

Sorting is controlled by a key prefix followed by the sort method:

ShortcutAction
, (comma)Enter sort prefix mode, then press a sort key
,nSort by name (default)
,mSort by modification time
,eSort by extension
,sSort by size
,rReverse current sort order

Press , again (or Esc) to exit sort mode without changing.

Tabs

ShortcutAction
tCreate a new tab
19Switch to tab by number
[Move to previous tab
]Move to next tab
{Swap current tab with the one to its left
}Swap current tab with the one to its right
Ctrl-cRename current tab
Ctrl-wClose current tab

Tab Management

Tabs are independent — each has its own directory, file list, and preview pane. Tab state can be persisted across restarts when configured in yazi.toml:

~/.config/yazi/yazi.toml
[tabs]
show_tab_rename_modal = true # prompt for name when renaming
tip

Combine tabs with the y shell wrapper: open a tab for each project directory, navigate freely, and when you quit Yazi your shell lands in the last-visited directory.