Yazi cheat sheet

84 shortcuts in 12 lessons

Reading a list won't make them stick. ShortcutFoo has you type each shortcut, then brings it back just before you'd forget it.

Essentials I

7 shortcuts
  • j
    Move to the next file
  • k
    Move to the previous file
  • h
    Go to the parent directory
  • l
    Enter the child directory
  • gg
    Go to the top
  • g
    Go to the bottom
  • q
    Quit yazi

Essentials II

7 shortcuts
  • o
    Open the selected files
  • SPACE
    Toggle selection and move down
  • y
    Yank (copy) the selected files
  • x
    Yank (cut) the selected files
  • p
    Paste the yanked files
  • d
    Trash the selected files
  • r
    Rename the selected file

Moving faster

7 shortcuts
  • ^D
    Move down half a page
  • ^U
    Move up half a page
  • ^F
    Move down one page
  • ^B
    Move up one page
  • h
    Go back to the previous directory
  • l
    Go forward to the next directory
  • gf
    Follow the hovered symlink

File operations

7 shortcuts
  • a
    Create a file (end with / for a directory)
  • a
    Bulk create files
  • d
    Permanently delete the selected files
  • p
    Paste and overwrite existing files
  • y
    Cancel the yank
  • -
    Symlink the absolute path of yanked files
  • _
    Symlink the relative path of yanked files

Selection and view

7 shortcuts
  • v
    Enter visual mode
  • v
    Enter visual unset mode
  • ^A
    Select all files
  • ESC
    Exit visual mode or clear the selection
  • .
    Toggle hidden files
  • o
    Open the selected files interactively
  • TAB
    Spot the hovered file

Find and filter

7 shortcuts
  • f
    Filter files
  • /
    Find the next file
  • ?
    Find the previous file
  • n
    Go to the next match
  • n
    Go to the previous match
  • s
    Search files by name with fd
  • s
    Search file contents with ripgrep

Jumping around

7 shortcuts
  • z
    Jump to a file with fzf
  • z
    Jump to a directory with zoxide
  • gh
    Go home
  • gc
    Go to ~/.config
  • gd
    Go to ~/Downloads
  • g
    Jump to a directory interactively
  • ^S
    Cancel the ongoing search

Copy and shell

7 shortcuts
  • cc
    Copy the file path
  • cd
    Copy the directory path
  • cf
    Copy the file name
  • cn
    Copy the file name without extension
  • ;
    Run a shell command
  • :
    Run a shell command and wait for it
  • ^Z
    Suspend yazi

Sorting I

7 shortcuts
  • ,m
    Sort by modified time
  • ,m
    Sort by modified time, reversed
  • ,s
    Sort by size
  • ,s
    Sort by size, reversed
  • ,a
    Sort alphabetically
  • ,a
    Sort alphabetically, reversed
  • ,n
    Sort naturally

Sorting II and linemode

7 shortcuts
  • ,e
    Sort by extension
  • ,b
    Sort by birth time
  • ,r
    Sort randomly
  • ms
    Show sizes in the linemode
  • mp
    Show permissions in the linemode
  • mm
    Show modified times in the linemode
  • mn
    Hide the linemode

Tabs

7 shortcuts
  • tt
    Create a tab in the current directory
  • tr
    Rename the current tab
  • 1
    Switch to the first tab
  • [
    Switch to the previous tab
  • ]
    Switch to the next tab
  • {
    Swap with the previous tab
  • }
    Swap with the next tab

Preview, tasks and help

7 shortcuts
  • k
    Seek up in the preview
  • j
    Seek down in the preview
  • w
    Show the task manager
  • `
    Open help
  • F1
    Open help (function key)
  • gt
    Go to the trash bin
  • q
    Quit without writing the cwd file
Achievement unlocked