Skip to content
/ zat Public

zat is a syntax highlighting cat like utility using tree-sitter and with support for vscode themes

License

Notifications You must be signed in to change notification settings

neurocyte/zat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

zat is a syntax highlighting cat like utility using tree-sitter and with support for vscode themes

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published