mgumz / yazi-plugin-bat

A previewer for Yazi powered by Bat

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bat.yazi

Plugin for Yazi to preview all supported files via Bat.

Preview

Showing .csv files

CSV via bat

Previewing .md files

Markdown via bat

Previewing .rs files

Rust via bat

Installation

$> mkdir -p ~/.config/yazi/plugins
$> git clone https://github.com/mgumz/yazi-plugin-bat.git ~/.config/yazi/plugins/bat.yazi

Configuration

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" }
]

References

About

A previewer for Yazi powered by Bat


Languages

Language:Lua 100.0%