Show HN: Ssort – I got sick and vibe coded a stream priority sorter (github.com)

1 points by xlii ↗ HN
Hi HN,

I've been coding for over 20 years, and I've always had this specific annoyance: when I grep or rg through a codebase, the definitions or declarations I actually want to see are often buried in the middle of the stream.

I got tired of crafting magic regex sequences to find them, so when I came down with the (actual) flu this week and needed to occupy my brain, I built ssort.

It's a CLI tool that buffers input and bubbles specific matches (like "struct", "class", "func") to the top while flushing the rest later. It was partially "vibe coded" with Gemini during (ongoing) recovery.

It's simple, written in Go, and finally solves my search ordering problem. Hope you find it useful.

1 comment

[ 137 ms ] story [ 451 ms ] thread
Layperson question: how does this differ from, say, piping something to fzf; and what advantages does it have over that?