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
leave—Go to parent directory
enter—Enter the selected directory or open file
back—Go back in history
forward—Go forward in history
seek--forward, --backwardSeek through preview content
follow—Follow a symbolic link to its target

Tabs​

ActionArguments/OptionsDescription
tab_create--cursor, --currentCreate a new tab (optionally at cursor or current dir)
tab_close—Close 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)
yank—Copy (yank) selected files to the yank buffer
unyank—Clear the yank buffer
paste—Paste yanked files into current directory
link—Create symbolic links from yanked files
hardlink—Create hard links from yanked files
remove—Move selected/yanked files to trash or permanently delete
create—Create a new file or directory (opens input prompt)
rename—Rename the current file (opens input prompt)
copy—Copy filename, basename, dirname, or path to clipboard

Selection​

ActionArguments/OptionsDescription
toggle—Toggle selection on the current file
toggle_all—Toggle selection on all visible files
visual_mode—Enter visual mode for range selection

Search & Filter​

ActionArguments/OptionsDescription
search—Start a search (opens input prompt, matches filenames)
find--next, --prevJump to next/previous search result
find_arrow--next, --prevNavigate between find results
filter—Filter 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.)
spot—Toggle the file information spot panel

Shell & System​

ActionArguments/OptionsDescription
shell--block, --confirm, --interactiveRun a shell command
cd—Change directory (opens input prompt)
suspend—Suspend Yazi to background (SIGTSTP)
quit—Quit Yazi
close—Close current tab (quit if last tab)
escape—Cancel selection, close help, or clear state

Other​

ActionArguments/OptionsDescription
reveal—Reveal the current file in the system file manager
help—Open the help menu
pluginargsRun a registered plugin
noop—No 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.