Skip to content

lat | lazy cat - a cat clone with some quality-of-life embellishments

License

Notifications You must be signed in to change notification settings

secondary-smiles/lat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lat

lat | lazy cat - a cat clone with some quality-of-life embellishments

About

lat is a solution to a problem that doesn't exist. It's the awkward middle child in-between cat and bat. It was created because the author didn't want to have to configure bat just to get decent file printing, but wanted a little more control than cat offered.

lat does not expect to be used. lat expects to be forgotten and shunted into a corner because it does not belong in the slightest.

Install

lat is not yet at a stable version (v1.0.0), so it is not on any package managers.

git clone https:/secondary-smiles/lat.git

cd lat

make

./build/lat -V

# now add lat to your $PATH/do whatever you want with the binary

Use

lat can, for the most part, be a direct drop in for cat. However it really shines when embedded into another program. For example, in fzf, lat makes an excellent viewer with the command fzf --command lat -r {}.

Helptext

lat -h

lat | lazy cat - a cat clone with some quality-of-life embellishments

usage: lat [-cltbrpneVh] [file...]

options:
	-c           toggle color
	-l           toggle line numbers
	-t           toggle file info headers
	-b           set binary mode, -b forces binary and -bb forces NOT binary
	-r           print everything (headers, line numbers, etc.) to stdout (or equivalent)
	-p           print file with the pager (uses less)
	-n <name>    manually set the name of the file shown in the title
	-V           show program version
	-h           display this help text

environment:
	NO_COLOR, see https://no-color.org/

About

lat | lazy cat - a cat clone with some quality-of-life embellishments

Resources

License

Stars

Watchers

Forks

Packages

No packages published