Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/sxyazi/yazi/llms.txt

Use this file to discover all available pages before exploring further.

This is a comprehensive reference of all default keybindings in Yazi, extracted from the source code.
All keybindings can be customized in ~/.config/yazi/keymap.toml. This reference shows the default configuration.

Manager (File Browser)

The main file manager interface keybindings.

Quit and Exit

KeyCommandDescription
qquitQuit Yazi
Qquit --no-cwd-fileQuit without writing cwd-file
<C-c>closeClose current tab (or quit if last)
<C-z>suspendSuspend the process
<Esc>escapeExit visual mode, clear selection, or cancel search
<C-[>escapeSame as Esc
KeyCommandDescription
k / <Up>arrow prevMove to previous file
j / <Down>arrow nextMove to next file
ggarrow topJump to top of list
Garrow botJump to bottom of list
<C-u> / <S-PageUp>arrow -50%Move up half page
<C-d> / <S-PageDown>arrow 50%Move down half page
<C-b> / <PageUp>arrow -100%Move up one page
<C-f> / <PageDown>arrow 100%Move down one page
KeyCommandDescription
h / <Left>leaveGo to parent directory
l / <Right>enterEnter child directory
HbackGo back in history
LforwardGo forward in history

Selection and Visual Mode

KeyCommandDescription
<Space>toggle, arrow 1Toggle selection and move down
<C-a>toggle_all --state=onSelect all files
<C-r>toggle_allInvert selection
vvisual_modeEnter visual mode (select)
Vvisual_mode --unsetEnter visual mode (unset)

Preview

KeyCommandDescription
Jseek 5Seek down 5 units in preview
Kseek -5Seek up 5 units in preview
<Tab>spotToggle spot mode

File Operations

KeyCommandDescription
o / <Enter>openOpen selected files
O / <S-Enter>open --interactiveOpen interactively
yyankYank (copy) selected files
xyank --cutCut selected files
ppastePaste yanked files
Ppaste --forcePaste and overwrite
-linkCreate symbolic link (absolute)
_link --relativeCreate symbolic link (relative)
<C-->hardlinkCreate hard link
Y / XunyankCancel yank status
dremoveMove to trash
Dremove --permanentlyDelete permanently
acreateCreate file or directory
rrename --cursor=before_extRename file

Shell and Commands

KeyCommandDescription
;shell --interactiveRun shell command
:shell --block --interactiveRun shell command (blocking)
.hidden toggleToggle hidden files

Search and Filter

KeyCommandDescription
ssearch --via=fdSearch files by name (fd)
Ssearch --via=rgSearch by content (ripgrep)
<C-s>escape --searchCancel ongoing search
zplugin fzfJump with fzf
Zplugin zoxideJump with zoxide
ffilter --smartFilter files
/find --smartFind next file
?find --previous --smartFind previous file
nfind_arrowJump to next found
Nfind_arrow --previousJump to previous found

Copy Path/Name

KeyCommandDescription
cccopy pathCopy file path
cdcopy dirnameCopy directory path
cfcopy filenameCopy filename
cncopy name_without_extCopy name without extension

Linemode

KeyCommandDescription
mslinemode sizeShow file sizes
mplinemode permissionsShow permissions
mblinemode btimeShow birth time
mmlinemode mtimeShow modification time
molinemode ownerShow file owner
mnlinemode noneHide extra info

Sorting

KeyCommandDescription
,msort mtime --reverse=noSort by modified time
,Msort mtime --reverse=yesSort by modified time (reverse)
,bsort btime --reverse=noSort by birth time
,Bsort btime --reverse=yesSort by birth time (reverse)
,esort extension --reverse=noSort by extension
,Esort extension --reverse=yesSort by extension (reverse)
,asort alphabetical --reverse=noSort alphabetically
,Asort alphabetical --reverse=yesSort alphabetically (reverse)
,nsort natural --reverse=noSort naturally
,Nsort natural --reverse=yesSort naturally (reverse)
,ssort size --reverse=noSort by size
,Ssort size --reverse=yesSort by size (reverse)
,rsort random --reverse=noSort randomly

Goto

KeyCommandDescription
ghcd ~Go to home directory
gccd ~/.configGo to config directory
gdcd ~/DownloadsGo to Downloads
g<Space>cd --interactiveInteractive directory jump
gffollowFollow symlink

Tabs

KeyCommandDescription
tttab_create --currentCreate tab in CWD
trtab_rename --interactiveRename current tab
1tab_switch 0Switch to tab 1
2tab_switch 1Switch to tab 2
3tab_switch 2Switch to tab 3
4tab_switch 3Switch to tab 4
5tab_switch 4Switch to tab 5
6tab_switch 5Switch to tab 6
7tab_switch 6Switch to tab 7
8tab_switch 7Switch to tab 8
9tab_switch 8Switch to tab 9
[tab_switch -1 --relativePrevious tab
]tab_switch 1 --relativeNext tab
{tab_swap -1Swap with previous tab
}tab_swap 1Swap with next tab

Tasks and Help

KeyCommandDescription
wtasks:showShow task manager
~ / <F1>helpOpen help

Input Mode

Keybindings for text input (rename, create, shell, etc.).

Mode Switching

KeyCommandDescription
iinsertEnter insert mode
Imove first-char, insertMove to BOL and insert
ainsert --appendEnter append mode
Amove eol, insert --appendMove to EOL and append
vvisualEnter visual mode
rreplaceReplace single character
KeyCommandDescription
h / <Left> / <C-b>move -1Move back one character
l / <Right> / <C-f>move 1Move forward one character
b / <A-b> / <C-Left>backwardMove to start of word
wforwardMove to start of next word
e / <A-f> / <C-Right>forward --end-of-wordMove to end of word
0 / <C-a> / <Home>move bolMove to beginning of line
$ / <C-e> / <End>move eolMove to end of line
^ / _move first-charMove to first non-whitespace

Editing

KeyCommandDescription
<Backspace> / <C-h>backspaceDelete previous character
<Delete> / <C-d>backspace --underDelete character under cursor
<C-u>kill bolKill to beginning of line
<C-k>kill eolKill to end of line
<C-w> / <C-Backspace>kill backwardKill previous word
<A-d> / <C-Delete>kill forwardKill next word

Cut/Copy/Paste

KeyCommandDescription
ddelete --cutCut selection
Ddelete --cut, move eolCut to EOL
cdelete --cut --insertCut and insert
xdelete --cut, move 1Cut character
yyankCopy selection
ppastePaste after cursor
Ppaste --beforePaste before cursor

Undo/Redo

KeyCommandDescription
uundo, casefy lowerUndo (or lowercase in visual)
Ucasefy upperUppercase
<C-r>redoRedo

Submit/Cancel

KeyCommandDescription
<Enter>close --submitSubmit input
<C-c>closeCancel input
<Esc> / <C-[>escapeBack to normal or cancel

Tasks Manager

KeyCommandDescription
<Esc> / <C-[> / <C-c> / wcloseClose task manager
k / <Up>arrow prevPrevious task
j / <Down>arrow nextNext task
<Enter>inspectInspect task
xcancelCancel task
~ / <F1>helpOpen help

Spot Mode

KeyCommandDescription
<Esc> / <C-[> / <C-c> / <Tab>closeClose spot
k / <Up>arrow prevPrevious line
j / <Down>arrow nextNext line
h / <Left>swipe prevPrevious file
l / <Right>swipe nextNext file
cccopy cellCopy selected cell
~ / <F1>helpOpen help

Pick/Select Mode

KeyCommandDescription
<Esc> / <C-[> / <C-c>closeCancel pick
<Enter>close --submitSubmit selection
k / <Up>arrow prevPrevious option
j / <Down>arrow nextNext option
~ / <F1>helpOpen help

Confirm Dialog

KeyCommandDescription
<Esc> / <C-[> / <C-c> / ncloseCancel
<Enter> / yclose --submitConfirm
k / <Up>arrow prevPrevious option
j / <Down>arrow nextNext option
~ / <F1>helpOpen help

Completion Menu

KeyCommandDescription
<C-c>closeCancel completion
<Tab>close --submitAccept completion
<Enter>close --submit, input:close --submitComplete and submit
<A-k> / <Up> / <C-p>arrow prevPrevious item
<A-j> / <Down> / <C-n>arrow nextNext item
~ / <F1>helpOpen help

Help Screen

KeyCommandDescription
<Esc> / <C-[>escapeClear filter or hide help
<C-c>closeClose help
k / <Up>arrow prevScroll up
j / <Down>arrow nextScroll down
ffilterFilter help items

Customization

To customize keybindings, create or edit ~/.config/yazi/keymap.toml:
# Example: Change navigation to arrow keys only
[mgr]
keymap = [
  { on = "<Up>",   run = "arrow prev", desc = "Move up" },
  { on = "<Down>", run = "arrow next", desc = "Move down" },
  # Add more custom bindings...
]
See the Configuration page for detailed information on customizing keybindings.

Source Reference

All default keybindings are defined in:
  • File: ~/workspace/source/yazi-config/preset/keymap-default.toml
  • Line reference: Various sections throughout the file
The keybindings are processed by the Yazi core and can be overridden in your user configuration.

Build docs developers (and LLMs) love