#4350·yazi

[preview] Fallback more when dependency not found

Author: pisekpiskovecCreated Sep 12, 2026Updated Sep 12, 2026
Labelsfeature

ya env output

bash
Yazi
    Version: 26.9.1 (Terra 2025-12-27)
    Debug  : false
    Triple : x86_64-unknown-linux-gnu (linux-x86_64)
    Rustc  : 1.98.0 (88d9e12a 2026-08-18)
    Backtrace: None

Ya
    Version: 26.9.1 (Terra 2025-12-27)
    Debug  : false
    Triple : x86_64-unknown-linux-gnu (linux-x86_64)
    Rustc  : 1.98.0 (88d9e12a 2026-08-18)

Config
    Init             : /home/pisek/.config/yazi/init.lua (2563 chars)
    Yazi             : /home/pisek/.config/yazi/yazi.toml (406 chars)
    Keymap           : /home/pisek/.config/yazi/keymap.toml (2802 chars)
    Theme            : /home/pisek/.config/yazi/theme.toml (47 chars)
    VFS              : /home/pisek/.config/yazi/vfs.toml (No such file or directory (os error 2))
    Package          : /home/pisek/.config/yazi/package.toml (833 chars)
    Dark/light flavor: ArcSwapAny("noctalia") / ArcSwapAny("noctalia")

Emulator
    TERM                : Some("tmux-256color")
    TERM_PROGRAM        : Some("tmux")
    TERM_PROGRAM_VERSION: Some("3.7c")
    Brand.from_env      : None
    Emulator.probe      : Emulator { brand: Unknown, version: ArcSwapAny(""), csi_u: None, kgp: false, kgp_shm: false, sixel: false, background: Some([6168, 6168, 6168]), color_scheme: Some(false), csi_16t: (10, 21), force_16t: false, osc_5522: false, cursor_blink: false, cursor_shape: None, mux: Some(Mux { sixel: true }), probe: Probe { id: Id(1), completed: false }, started: false }

Adapter
    Drivers.matches: Wayland
    TERM.dimension : Dimension { cols: 93, rows: 45, width: 930, height: 945 }

Desktop
    XDG_SESSION_TYPE           : Some("wayland")
    WAYLAND_DISPLAY            : Some("wayland-1")
    DISPLAY                    : Some(":0")
    NIRI_SOCKET                : Some("/run/user/1000/niri.wayland-1.1265.sock")
    SWAYSOCK                   : None
    HYPRLAND_INSTANCE_SIGNATURE: None
    WAYFIRE_SOCKET             : None

SSH
    shared.in_ssh_connection: false

WSL
    WSL: false

Variables
    SHELL              : Some("/usr/bin/zsh")
    EDITOR             : Some("/usr/bin/hx")
    VISUAL             : Some("/usr/bin/hx")
    YAZI_FILE_ONE      : None
    YAZI_CONFIG_HOME   : None
    YAZI_ZOXIDE_OPTS   : None
    SSH_AUTH_SOCK      : None
    FZF_DEFAULT_OPTS   : None
    FZF_DEFAULT_COMMAND: None

Text Opener
    default     : Some(OpenerRuleArc(OpenerRule { id: Id(3), run: "${EDITOR:-vi} %s", block: true, orphan: false, desc: "$EDITOR", for: Unix, spread: true }))
    block-create: Some(OpenerRuleArc(OpenerRule { id: Id(3), run: "${EDITOR:-vi} %s", block: true, orphan: false, desc: "$EDITOR", for: Unix, spread: true }))
    block-rename: Some(OpenerRuleArc(OpenerRule { id: Id(3), run: "${EDITOR:-vi} %s", block: true, orphan: false, desc: "$EDITOR", for: Unix, spread: true }))

Multiplexers
    tmux version       : tmux 3.7c
    tmux build flags   : enable-sixel=Supported
    ZELLIJ_SESSION_NAME: None
    Zellij version     : No such file or directory (os error 2)

Dependencies
    file          : 5.46
    ueberzugpp    : No such file or directory (os error 2)
    ffmpeg/ffprobe: 8.1.2 / 8.1.2
    pdftoppm      : 26.01.0
    magick        : 7.1.2-27
    fzf           : 0.74.3
    fd/fdfind     : 10.4.2 / No such file or directory (os error 2)
    rg            : 15.2.0
    chafa         : 1.18.2
    zoxide        : 0.9.8
    7zz/7z        : 26.02 / 26.02
    resvg         : 0.47.0
    jq            : 1.8.1

Clipboard
    wl-copy/paste: 2.2.1 / 2.2.1
    xclip        : No such file or directory (os error 2)
    xsel         : 1.2.1

Routine
    `file -bL --mime-type`: text/plain

Please describe the problem you're trying to solve

For a few times already, my configuration of Yazi broke, because the adapter for image preview got better.

According to the documentation, I have to install Überzug++ as I am using Alacritty on Niri, however, before I was using Chafa just fine, so when I updated the system, image preview suddenly broke.

Would you be willing to contribute this feature?

  • Yes, I'll give it a shot

Describe the solution you'd like

The proposal is that, the environment scanner should also detect, if the package is installed, and if not, fallback even more.

Additional context

No response

Checklist

  • I have searched the existing issues/discussions
  • The latest nightly build doesn't already have this feature