{"repo":"foxfriends/syncat","free":true,"listed":false,"github":"https://github.com/foxfriends/syncat","clone":"git clone https://github.com/foxfriends/syncat.git","description":"Syntax aware cat","language":"Rust","stars":69,"topics":["syntax","highlighting","command-line","terminal","color","colour","style","cat"],"license":"MIT","category":"cli-tools","readme_excerpt":"[Tree-sitter]: https://github.com/tree-sitter/tree-sitter [syncat-themes]: https://github.com/foxfriends/syncat-themes [languages.toml]: https://github.com/foxfriends/config/blob/syncat/languages.toml [crates.io]: https://crates.io [Bat]: https://github.com/sharkdp/bat [ syncat/config ]: ./syncat/config Syncat Syntax aware cat utility. Provides syntax highlighting to files printed on the command line using [Tree-sitter][] to parse the files, and ANSI escape codes to colour them. Features Syncat aims to provide similar features to the standard cat and the similar [Bat][] tool: 1. Git integration ( -g ) 2. Show line endings ( -e ) 3. Line numbering ( -n ) 4. Multiple levels of framing ( -f or -ff ) 5. File concatenation 6. Parses any file type accurately using Tree-sitter 7. Customizable syntax colouring using stylesheets In particular, the advantage of Syncat over the other options is that the parsing is done using [Tree-sitter][] instead of with regular expressions, which makes it very fast; robust enough to provide useful results even in the presence of syntax errors. Syncat does not support automatic paging, but you can just use less -r to handle that. Installation Syncat can be installed from [crates.io][]: Configuration By default, Syncat comes bundled with the configuration files as seen in [ syncat/config ][], providing an unverified list of tree-sitter grammars, and some quickly cobbled together highlighting for a handful of known file types. If this basic configuratio","default_branch":null,"files":null,"tree":[],"storefront":"/r/foxfriends","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/foxfriends/syncat/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}