Yazi: A File Explorer that I Actually Like

Anybody that's read my previous blogs knows that I tend to do everything in the terminal and avoid file explorers, but because of a very specific use-case, I set out on a journey to find a file explorer that I actually like. Really this all originated from a very trivial and ridiculous issue: I wanted a medium to be able to open books in Zathura with. As much as I absolutely love Zathura, there's no good way to open a file without pasting in the whole filename, and it's really inconvenient. I was just opening my pdfs and epubs in the terminal, but as my book collection grew and I got more books by the same authors, it became more annoying to open up my books in a terminal, even with the use of wildcards. This mentality led me to adopt a terminal-based file explorer with an image preview feature that isn't a pain to setup (that I can also setup with a lazyspawn in Qtile) and I was using lf for a few weeks, it was alright. Then, thanks to an awesome video from The Linux Cast, I discovered Yazi. Yazi is a terminal-based file explorer written in glorious Rust, so you know it's fast (and it is!) and it just feels and looks really good. Image preview is a breeze to setup on Arch-based systems, just paru -S ueberzugpp and it works. There are 3 different configs that you can make and edit, all in the .toml format, which are yazi.toml, keymap.toml, and theme.toml, but the only one that I've needed to use so far is the yazi.toml (full documentation is available at https://yazi-rs.github.io/) and I only made some basic changes to get it to work how I want, and have just been enjoying it ever since. Basically all I did in the yazi.toml is set up the default programs to open my stuff, pdfs and epubs open in Zathura, videos in mpv, pictures open in sxiv, and all my text files of any type open in NeoVim. I know, its a pretty random use-case for a file explorer, but the tool is doing what I want it to do and I couldn't be happier with it (for now!)