yazi vs ranger

yazi vs ranger: compare their workflows, configuration choices, and practical tradeoffs.

Updated

short verdict

Choose yazi for its asynchronous previews and Lua extensions, or ranger for its three-column navigation and rifle launcher.

A file manager has to fit both your navigation habits and your terminal preview setup. Test the file types you actually open before investing in plugins or configuration.

this page is for

  • file previews and Lua extensions
  • three-column navigation and file launching
pick

yazi

★ 43.5kRust
details

Use yazi for asynchronous file browsing, multiple preview protocols, and Lua-based customization.

best for

  • file previews and Lua extensions

strengths

  • Preview images, code, videos, PDFs, archives, and directories
  • Use bulk renaming and cross-directory file operations
  • Extend the interface and previewers with Lua plugins

weaknesses

  • Image preview setup depends on the terminal protocol or external preview helper you use.
pick

ranger

★ 17.5kPython
details

Use ranger for VI-style directory navigation, a three-column preview layout, and file-type-based launching.

best for

  • three-column navigation and file launching

strengths

  • Navigate parent, current directory, and preview columns with h/j/k/l
  • Use the included rifle launcher to select programs by file type
  • Manage tabs, bookmarks, batch renaming, and mouse navigation

weaknesses

  • Several preview types need optional external programs, so preview coverage depends on local setup.

Key differences

  • Navigation: yazi includes cross-directory operations and multi-tab workflows; ranger offers parent, directory, and preview columns.
  • Preview setup: yazi supports several terminal image protocols and external helpers; ranger uses optional programs for several preview types.
  • Customization: yazi supports Lua plugins and custom previewers; ranger uses configuration files and file-type launch rules.
  • File handling: yazi includes bulk renaming and archive extraction; ranger includes batch renaming and the rifle launcher.

Choose yazi when

  • Preview images, code, videos, PDFs, archives, and directories
  • Use bulk renaming and cross-directory file operations
  • Extend the interface and previewers with Lua plugins

Choose ranger when

  • Navigate parent, current directory, and preview columns with h/j/k/l
  • Use the included rifle launcher to select programs by file type
  • Manage tabs, bookmarks, batch renaming, and mouse navigation

FAQ

Why might previews differ between my two computers?
Preview support depends on local setup. yazi can use terminal image protocols or external helpers, while several ranger previews require optional programs. Check your terminal and installed preview dependencies when moving configurations.
How does ranger decide which program opens a file?
Its included rifle launcher chooses programs by file type. File launching is separate from the preview shown in the navigation interface.
Which tool supports writing a custom preview extension?
yazi supports Lua plugins, including custom previewers, and provides a package manager for themes and plugins. Start with the file types you need before adding extensions.

related