跳到主要内容

Yazi

Installation

prerequisites

  • file (for file type detection)

optionally

  • nerd-fonts (recommended)
  • ffmpeg (for video thumbnails)
  • 7-Zip (for archive extraction and preview, requires non-standalone version)
  • jq (for JSON preview)
  • poppler (for PDF preview)
  • fd (for file searching)
  • rg (for file content searching)
  • fzf (for quick file subtree navigation, >= 0.53.0)
  • zoxide (for historical directories navigation, requires fzf)
  • resvg (for SVG preview)
  • ImageMagick (for Font, HEIC, and JPEG XL preview, >= 7.1.1)
  • xclip / wl-clipboard / xsel (for Linux clipboard support)

packages

  • Arch Linux
  • Nix
  • Nix flakes
  • Homebrew brew install yazi ffmpeg sevenzip jq poppler fd ripgrep fzf zoxide resvg imagemagick font-symbols-only-nerd-font
  • MacPorts
  • Solus Linux
  • Void Linux
  • NetBSD
  • Windows https://git-scm.com/download/win
    • Install with Scoop
    • Install with WinGet
  • Debian based Linux
  • Fedora/Centos Stream 9+/RHEL 9+
  • Snapcraft
  • Flatpak
  • AOSC OS
  • x-cmd
  • Official binaries
  • crates.io
  • Build from source
  • Build from source in debug mode

Keybindings

https://github.com/sxyazi/yazi/blob/shipped/yazi-config/preset/keymap-default.toml

navigation

  • k
  • j
  • l
  • h

selection

  • space
  • v
  • V

file operations

  • o | enter
  • tab
  • y
  • x
  • p
  • d
  • a: create a file
  • r
  • .
  • ;
  • :
  • -: symlink
  • _

copy paths

filter files

  • f

find files

  • /
  • ?
  • n
  • N

search files

  • s: by name
  • S: by content

sorting

multi-tab

Configuration

  • yazi.toml - General configuration.
    • mgr
      • ratio
      • sort_by
      • sort_sensitive
      • sort_reverse
      • sort_dir_first
      • sort_translit
      • linemode
      • show_hidden
      • show_symlink
      • scrolloff
      • mouse_events
      • title_format
    • preview
      • wrap
      • tab_size
      • max_width
      • max_height
      • cache_dir
      • image_delay
      • image_filter
      • image_quality
      • ueberzug_scale / ueberzug_offset
    • opener
    • open
    • tasks
    • plugin
    • input
    • confirm
    • pick
    • which
  • keymap.toml - Keybindings configuration.
  • theme.toml - Color scheme configuration.