Yazi plugin to preview application/epub+zip files
- yazi
- At least one of the following epub-thumbnailer command line tools:
- epub-thumbnailer, or
- gnome-epub-thumbnailer
(available as
gnome-epub-thumbnailerpackage in Ubuntu and arch)
git clone https://github.com/kirasok/epub-preview.yazi.git ~/.config/yazi/plugins/epub-preview.yazior with ya-pack
ya pack -a kirasok/epub-previewAdd this to your yazi.toml:
[[plugin.prepend_previewers]]
mime = "application/epub+zip"
run = "epub-preview"-
Make sure that the epub-thumbnailer is installed and available in your PATH. A command like this should work:
gnome-epub-thumbnailer [something.epub] [output.png]
-
Check your
yazi.toml: If there is another previewer with zip file handling, epub-preview might be overwritten, e.g.: with the definition blow,ouchwill run, notepub-preview:[[plugin.prepend_previewers]] mime = "application/*zip" run = "ouch"
-
Check Yazi log file (see yazi.rs where to find it)