Plugin for Yazi
to preview all supported files via Bat
.
$> mkdir -p ~/.config/yazi/plugins
$> git clone https://github.com/mgumz/yazi-plugin-bat.git ~/.config/yazi/plugins/bat.yazi
Edit ~/.config/yazi/yazi.toml
and add bat
as the previewer for the file types of your choice.
[plugin]
prepend_previewers = [
{ name = "*.csv", run = "bat" },
{ name = "*.md", run = "bat" }
]
previewers = [
{ name = "*/", run = "folder", sync = true },
{ mime = "text/*", run = "bat" },
{ mime = "*/xml", run = "bat" },
{ mime = "*/cs", run = "bat" },
{ mime = "*/javascript", run = "bat" },
{ mime = "*/x-wine-extension-ini", run = "bat" },
]