Skip to main content

Manager ([mgr]) Layer

The [mgr] layer handles all keybindings when the file list has focus. It is the primary layer and provides the largest set of actions.

ActionArguments/OptionsDescription
arrow--up, --down, +nMove cursor up/down by n lines
leaveGo to parent directory
enterEnter the selected directory or open file
backGo back in history
forwardGo forward in history
seek--forward, --backwardSeek through preview content
followFollow a symbolic link to its target

Tabs

ActionArguments/OptionsDescription
tab_create--cursor, --currentCreate a new tab (optionally at cursor or current dir)
tab_closeClose the current tab
tab_switch+n, --relativeSwitch to tab n or move +n tabs relative
tab_swap+n, --relativeSwap current tab with tab at position n

File Operations

ActionArguments/OptionsDescription
open--hoveredOpen the selected file(s)
yankCopy (yank) selected files to the yank buffer
unyankClear the yank buffer
pastePaste yanked files into current directory
linkCreate symbolic links from yanked files
hardlinkCreate hard links from yanked files
removeMove selected/yanked files to trash or permanently delete
createCreate a new file or directory (opens input prompt)
renameRename the current file (opens input prompt)
copyCopy filename, basename, dirname, or path to clipboard

Selection

ActionArguments/OptionsDescription
toggleToggle selection on the current file
toggle_allToggle selection on all visible files
visual_modeEnter visual mode for range selection

Search & Filter

ActionArguments/OptionsDescription
searchStart a search (opens input prompt, matches filenames)
find--next, --prevJump to next/previous search result
find_arrow--next, --prevNavigate between find results
filterFilter the visible file list (opens input prompt)
sort--by, --reverse, --dir-firstSort files by criteria

Display

ActionArguments/OptionsDescription
hidden--show, --hideToggle hidden file visibility
linemode--modeChange the line display mode (size, mtime, etc.)
spotToggle the file information spot panel

Shell & System

ActionArguments/OptionsDescription
shell--block, --confirm, --interactiveRun a shell command
cdChange directory (opens input prompt)
suspendSuspend Yazi to background (SIGTSTP)
quitQuit Yazi
closeClose current tab (quit if last tab)
escapeCancel selection, close help, or clear state

Other

ActionArguments/OptionsDescription
revealReveal the current file in the system file manager
helpOpen the help menu
pluginargsRun a registered plugin
noopNo operation (useful for disabling a default binding)

Examples

Custom cd bookmarks

[manager]
prepend_keymap = [
{ on = "g h", run = "cd ~", desc = "Go home" },
{ on = "g d", run = "cd ~/Documents", desc = "Go to Documents" },
{ on = "g D", run = "cd ~/Downloads", desc = "Go to Downloads" },
{ on = "g p", run = "cd ~/projects", desc = "Go to projects" },
]

Search_do with flat view

Bind a key that emits a search action with options, then applies a filter:

[manager]
prepend_keymap = [
{ on = "f", run = "filter", desc = "Filter files" },
{ on = "F", run = "search --args='--flat'", desc = "Flat search" },
]

Disable a default key

[manager]
prepend_keymap = [
{ on = "y", run = "noop", desc = "" },
]
info

The noop action is the standard way to disable a default keybinding — override it to do nothing.