Skip to main content

Quick Start

Once you've installed Yazi, start the program with:

yazi

Press q to quit and ~ to open the help menu.

Shell wrapper

We suggest using this yy shell wrapper that provides the ability to change the current working directory when exiting Yazi.

function yy() {
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")"
yazi "$@" --cwd-file="$tmp"
if cwd="$(cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then
builtin cd -- "$cwd"
fi
rm -f -- "$tmp"
}

To use it, copy the function into the configuration file of your respective shell. Then use yy instead of yazi to start.

Keybindings

tip

For all keybindings, see the default keymap.toml file.

To navigate between files and directories you can use the arrow keys , , and or Vim-like keys such as h, j, k, l:

Key bindingAlternate keyAction
kMove the cursor up
jMove the cursor down
lEnter hovered directory
hLeave the current directory and into its parent

Further navigation commands can be found in the table below.

Key bindingAction
KMove the cursor up 5 lines
JMove the cursor down 5 lines
ggMove cursor to the top
GMove cursor to the bottom

Selection

To select files and directories, the following commands are available.

Key bindingAction
SpaceToggle selection of hovered file/directory
vEnter visual mode (selection mode)
VEnter visual mode (unset mode)
Ctrl + aSelect all files
Ctrl + rInverse selection of all files
EscCancel selection

File operations

To interact with selected files/directories use any of the commands below.

Key bindingAction
oOpen selected files
OOpen selected files interactively
EnterOpen selected files
Ctrl + EnterOpen selected files interactively (some terminals don't support it yet)
yYank selected files (copy)
xYank selected files (cut)
pPaste yanked files
PPaste yanked files (overwrite if the destination exists)
-Symlink the absolute path of yanked files
_Symlink the relative path of yanked files
Y or XCancel the yank status
dTrash selected files
DPermanently delete selected files
aCreate a file (ends with / for directories)
rRename selected file(s)
;Run a shell command
:Run a shell command (block until finishes)
.Toggle the visibility of hidden files
zJump to a directory using zoxide
ZJump to a directory or reveal a file using fzf

Copy paths

To copy paths, use any of the following commands below.

Observation: cd indicates pressing the c key followed by pressing the d key.

Key bindingAction
ccCopy the file path
cdCopy the directory path
cfCopy the filename
cnCopy the filename without extension

Filter files

Key bindingAction
fFilter files

Find files

Key bindingAction
/Find next file
?Find previous file
nGo to the next found
NGo to the previous found

Search files

Key bindingAction
sSearch files by name using fd
SSearch files by content using ripgrep
Ctrl + sCancel the ongoing search

Sorting

To sort files/directories use the following commands.

Observation: ,a indicates pressing the , key followed by pressing the a key.

Key bindingAction
,mSort by modified time
,MSort by modified time (reverse)
,cSort by creation time
,CSort by creation time (reverse)
,eSort by file extension
,ESort by file extension (reverse)
,aSort alphabetically
,ASort alphabetically (reverse)
,nSort naturally
,NSort naturally (reverse)
,sSort by size
,SSort by size (reverse)
,rSort randomly (Nightly version needs)

Multi-tab

Key bindingAction
tCreate a new tab with CWD
1, 2, ..., 9Switch to the N-th tab
[Switch to the previous tab
]Switch to the next tab
{Swap current tab with previous tab
}Swap current tab with next tab
Ctrl + q (Ctrl + c on nightly)Close the current tab

Flavors

Pick a color scheme you like from our flavors repository, or cooking a flavor!