Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/neurocyte/zat
zat is a syntax highlighting cat like utility using tree-sitter and with support for vscode themes
https://github.com/neurocyte/zat
cat tree-sitter tui zig
Last synced: 2 months ago
JSON representation
zat is a syntax highlighting cat like utility using tree-sitter and with support for vscode themes
- Host: GitHub
- URL: https://github.com/neurocyte/zat
- Owner: neurocyte
- License: mit
- Created: 2024-02-20T16:58:33.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-11-12T09:26:06.000Z (2 months ago)
- Last Synced: 2024-11-12T10:28:20.317Z (2 months ago)
- Topics: cat, tree-sitter, tui, zig
- Language: Zig
- Homepage:
- Size: 113 KB
- Stars: 35
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# zat
zat is a syntax highlighting cat like utility.It uses tree-sitter and supports for vscode themes.
Build with the provided zig wrapper:
```shell
./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:
```shell
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.