Skip to content

Show HN: Command line tool for viewing files in color

soegaard.github.io
1 pointsoegaarddiscuss
On HN

The tool `peek` show files in color in the terminal. A wide range of popular programming language and file types are supported.

Today I added support for binary files inspired by the HN post on colors in hex editors.

Each supported programming language is backed by its own (reusable) lexer. The lexer provides a stream of tokens to the colorer. Using streams means that you will see the top of large files at once.

The idea to make `peek` came from a need to look at CSS files in the terminal. I wanted color swatches and other niceties from the browser. Also, I wanted an option to fix alignment in machine generated CSS files.

Enjoy.

Comments

No comments yet.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.