Hacker News / GitHub Trending headlines as a Custom Command widget #586
bhpark1013
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I maintain claudenews, a Claude Code plugin that puts dev news in the status line. It used to need the whole
statusLineslot, which meant you had to choose between it and ccstatusline. As of v0.25.1 it has a--segmentmode that renders exactly one line, so it can just be a Custom Command widget instead.Sharing the config in case it's useful to anyone else.
The headline rotates on each refresh. Sources are opt-in per feed — HN, GitHub Trending, Lobsters, dev.to, Qiita, Zenn, Hatena, V2EX, InfoQ CN, Habr, TabNews, plus your own RSS.
Setup
Install the plugin in Claude Code:
setupwrites a small launcher to~/.claude/hud/claudenews-hud.mjs. That path is stable — it resolves whatever plugin version you have, so it keeps working across updates.In
ccstatusline, add a Custom Command widget with:/claudenews:setupsetstatusLineto itself in step 1. Point it back at ccstatusline:Or straight into
~/.config/ccstatusline/settings.json:{ "id": "claudenews", "type": "custom-command", "commandPath": "node ~/.claude/hud/claudenews-hud.mjs --segment", "preserveColors": true }Notes
preserveColors: truematters. Without it the source name, score and comment count lose their colors and the line reads as a wall of text.terminal_widthis respected.--segmenttakes the width ccstatusline passes on stdin and truncates to it, so it won't blow out your row./claudenews:openopens the current item instead.Happy to adjust anything that doesn't fit ccstatusline's conventions.
All reactions