Show HN: Clp, a Faster Alternative to Bat (jeskin.net)
This is a small hobby project that writes files to stdout with syntax highlighting.
My main use case is replacing bat for use in the preview window for the program fzf. I wanted to speed it up and support languages that didn’t meet bat’s inclusion criteria out of the box (myrddin, hare, etc)- more info in the blog post.
2 comments
[ 4.2 ms ] story [ 15.8 ms ] threadAnyways, cool project! Should totally have a click bait title like "rewriting rust apps in lua makes them 15x faster."
The use case for me is for a fzf preview window- you can see it in the last image in the blog post with the shell script used just above it.
If I use bat as my fzf previewer and move to a big file it’ll hang.
If you use bat standalone at the command line with it’ll open its built in pager instantly like you observed, but that doesn’t help with fzf. Also if you try to search or scroll to the bottom of the pager you’ll have a bad time.
https://github.com/junegunn/fzf#preview-window
My hat’s off to you on that title, that is masterful clickbait