Hacker News new | ask | show | jobs
by pyjarrett 1547 days ago
I work on code bases with millions of lines, so I wrote a tool called Septum to help me (https://github.com/pyjarrett/septum/). This isn't to replace grep or ripgrep or silver searcher, those are all great tools you should have!

Septum is neighborhood based (context-based) search, so you can find contiguous groups of lines which contain specific things, but exclude other things. It's also interactive so you can add/remove filters as needed. This makes it useful for those cases where terms change based on their context so you can exclude terms related to the contexts you don't want to keep. It reads .septum/config which contains its normal commands to load directories and settings, so you can have different configs per project you're working on.

5 comments

Thanks for sharing! This is an awesome tool. I also like seeing it is written in Ada. I don’t often find open source tools I like to use written in Ada. Super well organized, too!
This is amazing. So many times I've needed to do something similar to the demo, and I have to hack things around. I'll definitely be using this.
This is SUUUUUUPER cool. Definitely going to try this out. Thank you for making it.

Is there an easy way to install this on non-windows systems? I'm not familiar with Ada toolchains.

This is Windows/Linux only (I didn't have a Mac at the time). You can use Alire (https://alire.ada.dev) will install your toolchain as well as build an executable.
Looks pretty awesome! Will definitely give a try!

Wish to hear why did you choose to use Ada?

I normally work in C++, but I've also written in lots of other languages.

I wrote an article for these folks which includes some of the rationale here: https://blog.adacore.com/ada-crate-of-the-year-interactive-c...

Wow, great work!