Preview audio cover and fallback to metadata on Yazi.
Note
The latest main branch of Yazi is required at the moment.
Ensure that you have the following installed and available in your system's PATH:
Automatically:
ya pack -a "gaesa/audio"
Or manually:
# Linux/macOS
git clone https://github.com/gaesa/audio.yazi.git ~/.config/yazi/plugins/audio.yazi
# Windows
git clone https://github.com/gaesa/audio.yazi.git %AppData%\yazi\config\plugins\audio.yaziAdd this to your yazi.toml:
[plugin]
prepend_preloaders = [
{ mime = "audio/*", run = "audio" },
{ name = "*.m4a", run = "audio" },
]
prepend_previewers = [
{ mime = "audio/*", run = "audio" },
{ name = "*.m4a", run = "audio" },
]Thanks to sxyazi for the PDF previewer code, on which this previewer is based on.