Setup

Official website: yazi-rs.github.io

Installation

Installation for Fedora

sudo dnf install ffmpegthumbnailer jq fd-find ripgrep fzf zoxide ImageMagick cascadia-mono-nf-fonts 

sudo dnf copr enable lihaohong/yazi
sudo dnf install yazi

Installation on MacOS

brew install yazi ffmpegthumbnailer sevenzip jq poppler fd ripgrep fzf zoxide imagemagick font-symbols-only-nerd-font

Otherwise, follow the commands from the installation page

Post installation steps

If you're using Fish, copy paste that in your Fish configuration. Source: Quick start

# Yazi wrapper to easily change cwd to where Yazi left on exit
# Copy pasted from https://yazi-rs.github.io/docs/quick-start#shell-wrapper
function y
    set tmp (mktemp -t "yazi-cwd.XXXXXX")
    yazi $argv --cwd-file="$tmp"
    if set cwd (cat -- "$tmp"); and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
        cd -- "$cwd"
    end
    command rm -f -- "$tmp"
end

Then you'll get the y command in Fish which is faster way to open Yazi and to exit it in the right folder.

Otherwise see the quick start documentation.

Tips

  1. Telegram and Flatpak apps tips: Copy-pasting file to the system clipboard is possible via a custom command, but if the Flatpak app doesn't have access to the file, like Telegram by default, it will show a File: yyyy is empty and cannot be sent. To fix this, you have to enable the file access permissions in Settings -> Flatpak permissions -> Telegram -> Filesystem Access -> All users files.