Skip to main content

Kitchen Sink Pager

The Kitchen Sink Pager is a pager that does more, but its primary feature is adding per file syntax highlighting to git diffs.

Installation

pip install KitchenSink

Examples

# use it for paging. sometimes, it can even figure out
# the filetype and add syntax highlighting. (press 's')
cat some_file.py | kk

# Use it as a quick file jumper for grep results.
# Press 'lf' to quickly view a file in the current buffer
grep * -Rn my_string | kk

# Use it as a git log viewer.
# press 'lo' to [l]ist all git [o]bjects
# press 'lf' to [list] [f]iles in the buffer
git log | kk

# it does git diff highlighting, too
# press 's' to toggle highlighting
git log --color -n1 -p | kk

# if there are numbers in the buffer,
# the kitchen sink math them with 'm'
cat lots_of_numbers.txt | kk

Screenshots

KitchenSink syntax highlighting

https://raw.github.com/okayzed/kk.py/master/images/kk.png

KitchenSink syntax highlighting vs. the traditional git diff highlighting

https://raw.github.com/okayzed/kk.py/master/images/kk_vs_less.png

Changing Syntax Coloring

if the syntax coloring style isn’t your style or isn’t showing up well, you can use any of pygments other available styles by setting KK_STYLE environment variable.

# listing the styles

python -c “import pygments.styles; print pygments.styles.STYLE_MAP.keys()”

# changing the style to vim. put this in .bashrc if you always want it

export KK_STYLE=vim

Why another pager?

why not? operating on pipe output is one of the slower parts of my workflow. this is an attempt to make it more bearable.

Metadata

Release files for KitchenSink 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for KitchenSink 0.1.0
File Size Uploaded
KitchenSink-0.1.0.tar.gz 17.1 kB Details

Release files / KitchenSink-0.1.0.tar.gz

Download URL KitchenSink-0.1.0.tar.gz
Size 17.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a0bff5b2b485333fb427e20eb8c3be0284337ba94d2061fbe38ed96039cadb34
BLAKE2b-256 checksum
How to use checksums
5eefbc1eb987e04fdbc8893d90f14e503e2d79b546d46f7afb0b88c7cead5079
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file

0.0.42

1 release file

0.0.41

1 release file

0.0.40

1 release file

0.0.39

1 release file

0.0.38

1 release file

0.0.37

1 release file

0.0.36

1 release file

0.0.35

1 release file

0.0.34

1 release file

0.0.33

1 release file

0.0.32

1 release file

0.0.31

1 release file

0.0.30

1 release file

0.0.29

1 release file

0.0.28

1 release file

0.0.27

1 release file

0.0.26

1 release file

0.0.25

1 release file

0.0.23

1 release file

0.0.22

1 release file

0.0.21

1 release file

0.0.20

1 release file

0.0.19

1 release file

0.0.18

1 release file

0.0.17

1 release file

0.0.16

1 release file

0.0.15

1 release file

0.0.14

1 release file

0.0.13

1 release file

0.0.12

1 release file

0.0.11

1 release file

0.0.10

1 release file

0.0.9

1 release file

0.0.8

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page