Skip to main content

Finding just the snippets in man page you care about

Project description

woahhh updates!

So this handy tool has been updated for the llm era. You can 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.

$ man bash | token-count
73392
$ mansnip bash complete | token-count
2908
$ MANSNIP_LLM=1 mansnip bash complete | token-count
1624

That's a 98% reduction! Sweet.

Video

"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'?

the old way

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 is amazing

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.

zshall for all

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.

mansnip

FADE TO BLACK

END SCENE


Want more? Here's some background

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mansnip_kristopolous-0.5.0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mansnip_kristopolous-0.5.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file mansnip_kristopolous-0.5.0.tar.gz.

File metadata

  • Download URL: mansnip_kristopolous-0.5.0.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for mansnip_kristopolous-0.5.0.tar.gz
Algorithm Hash digest
SHA256 15564cd948740196f398124ab5f9abddbe0d61bc27e9eff3a1283f40c9193bb1
MD5 a972b896e245f130dddce73c168a42b7
BLAKE2b-256 5794c7e4efe0ddafe4ad5e48b8a69cfc5a65cfb90589305ca9375567b7841003

See more details on using hashes here.

File details

Details for the file mansnip_kristopolous-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mansnip_kristopolous-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c5adcb9e3f320a4df6e37dcae059b5ee9c7c02875370e0be39ae84a79f868cc5
MD5 6799efb1af6078006508c9c0e8e08620
BLAKE2b-256 b286dd8a237c224c314728dadf3eb6827119926809a581c1a85dc8ed667df004

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page