Plugin for Yazi
to preview all supported files via Bat
.
Showing .csv files
Previewing .md files
Previewing .rs files
$> 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", exec = "bat" },
{ name = "*.md", exec = "bat" }
]