Updates for the AI era!
You can now intelligently mansnip into your context window by setting an environment variable like this:
$ MANSNIP_LLM=1 mansnip ...
This will do a variety of things (try it yourself) that optimize for minimal token-length when using an llm.
Compare various approaches for finding the documentation for bash's complete command:
$ man bash | token-count # whole page
73392
$ man bash | grep -C 3 complete | token-count # naive approach with a bunch of garbage input
8833
$ mansnip bash complete | token-count # mansnip without llm feature
2908
$ MANSNIP_LLM=1 mansnip bash complete | token-count # with new llm compaction!
1624
That's a 98% reduction! Sweet.
There's also a ready-to-go MCP server for it in mcp-server.py.
Just pip install mansnip-kristopolous
My classic 2020 pitch below!
"As seen on YouTube!" (click image, it's only 1min 45sec)
Don't you hate wasting time navigating through manpages with the leading pager's clunky search tools?
Ever try to find things like the "declare" built-in in bash(1) only to slodge through the results using the 'n' key going 'nope, nope, nope'?
Stop wasting time with the old way of manually stumbling through manuals. Say goodbye to these problems once and for all!
Finally there's a better way!
Introducting Mansnip!
Mansnip is a revolutionary way to navigate through manpages, a tool that no terminal should be without!
It intelligently searches through manpages and outputs the snippets relevant to your query as self-contained browsable sections. Simply use it the way you use man, at the command line, followed by your search term(s).
Watch how mansnip can immediately find bash(1)'s declare without any extra effort:
Mansnip works on any manpage.
With mansnip you'll just zip through documentation, saving precious time so you can write GitHub readmes like you're trying to sell Ginsu steak knives.
See how mansnip obediently shows everything with a "-z" option in the 25,888 lines of the zshall manpage on a single screen, all at once, in an easy-to-read manner.
But wait, there's more! You'll also get the line number and hierarchical context totally free!
We're still not finished yet!
You'll also get to install it easily through pypi.
Here's how do it
$ pip3 install mansnip-kristopolous
Act now, servers are standing by.
FADE TO BLACK
END SCENE
Want more? Here's some background
Metadata
Release files for mansnip-kristopolous 0.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mansnip_kristopolous-0.5.1.tar.gz | 8.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mansnip_kristopolous-0.5.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.9 kB
Release files / mansnip_kristopolous-0.5.1.tar.gz
| Download URL | mansnip_kristopolous-0.5.1.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
993ff597ab97f6a86cbb56e71a0a9d950a2b20fb0d70ed28c4deacdea3de091f
|
|
BLAKE2b-256 checksum How to use checksums |
ce41bcb3f6cb61bfe813557646b0078c459cdeb2e94162f5b582e7e79716a32c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.9
|
Release files / mansnip_kristopolous-0.5.1-py3-none-any.whl
| Download URL | mansnip_kristopolous-0.5.1-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d2a0922d8d55c83aaac0322f62489de38dfe7a96a17572a280072894a5ddbb9e
|
|
BLAKE2b-256 checksum How to use checksums |
91b7f28a51a0b29d7e94833ef6a1a94f76565c1dd1d3d8c053635e085ca57bc4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.9
|