zat is a syntax highlighting cat like utility using tree-sitter and with support for vscode themes
Find a file
2024-12-02 20:53:15 +01:00
scripts build: add release packaging 2024-11-18 17:40:47 +01:00
src feat: act more like standard cat if stdout is not a tty 2024-11-18 17:40:05 +01:00
.gitignore feat: update to zig-0.13 and update flow file types and themes 2024-07-10 22:10:59 +02:00
build.zig build: add release packaging 2024-11-18 17:40:47 +01:00
build.zig.version feat: update to zig-0.13 and update flow file types and themes 2024-07-10 22:10:59 +02:00
build.zig.zon feat: add odin support 2024-12-02 20:53:15 +01:00
LICENSE Initial commit 2024-02-20 17:58:33 +01:00
README.md feat: add --highlight and --limit options 2024-03-12 17:24:55 +01:00
zig build: fix zig download tarball url 2024-09-23 13:09:22 +02:00

zat

zat is a syntax highlighting cat like utility.

It uses tree-sitter and supports for vscode themes.

Build with the provided zig wrapper:

./zig build -Doptimize=ReleaseSmall

The zig wrapper just fetches a known good version of zig nightly and places it in the .cache directory. Or use your own version of zig.

Run with:

zig-out/bin/zat

Place it in your path for convenient access.

Supply files to highlight on the command line. Multiple files will be appended like with cat. If no files are on the command line zat will read from stdin. Override the language with --language and select a different theme with --theme. The default theme will be read from ~/.config/flow/config.json if found.

See scripts/fzf-grep for an example of using zat to highlight fzf previews.

See --help for full command line.