TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Hnsh - Hacker News from the command-line

61 pointsby scottjacksonover 15 years ago

12 comments

rdtscover 15 years ago
I like it. But I already use elinks in a terminal (most current Linux distros make elinks availble).<p>Here is how I run it:<p>$ elinks news.ycombinator.com<p>Then:<p><pre><code> Select story/comment : "Up" and "Down" arrows. Open story/comment : "Enter" Go back to previous page : "Back" arrow. Quit : "q"</code></pre>
评论 #981223 未加载
decklinover 15 years ago
I like this, but does it really make sense to call it a "command-line" application? I'd call it a terminal application (like w3m, lynx, etc). I can also type "firefox <a href="http://news.ycombinator.com/" rel="nofollow">http://news.ycombinator.com/</a> at my shell, but I don't think that makes it a command-line app.
评论 #982519 未加载
pmarinover 15 years ago
My w3m version:<p><pre><code> w3m http://news.ycombinator.com image: http://bayimg.com/DAGbdAACJ </code></pre> shortcuts:<p><pre><code> H : Help TAB: Move to the next link ENTER: Go to the current link B: Go to the previous link move around the text: hjkl </code></pre> You can use the mouse of course.
scottjacksonover 15 years ago
hnsh is a program I wrote to let you catch up with HN from the shell. You can browse the front page, open up stories and open up comments. There are a couple other nifty features, but they're all listed on the page for you to read, so there's no use re-posting them here.<p>Hacker News, all keyboard, no mouse. Let me know what you think, HN.<p>I'll have to head off in a while (it's just past midnight here in Australia), but I'll definitely get back to any comments I miss.
评论 #981336 未加载
ZeroGravitasover 15 years ago
Surely a command line browser like lynx, links, w3m or whatever would achieve this (and more since you can read the original page too)?<p>It might also prod <i>pg</i> or whoever to use better markup so you don't see "[greyarrow]" as link text instead of "upvote".
评论 #981232 未加载
amackeraover 15 years ago
You should put this on github! Are you accepting patches?
评论 #981410 未加载
scottjacksonover 15 years ago
Update - the code has been uploaded to Github!<p><a href="http://github.com/scottjacksonx/hnsh" rel="nofollow">http://github.com/scottjacksonx/hnsh</a>
alttabover 15 years ago
This is really cool. A lot of people said text based browsers would probably do the trick without having to write a bunch of python code -- but I would guarantee you learned something in the process.<p>Good job scott! (nice name by the way)
wglbover 15 years ago
Looks interesting, but it does defeat the distraction-limiting device of having the only browser in you office on the laptop across the room. With this, I can procrastinate from any terminal.
评论 #981199 未加载
ShabbyDooover 15 years ago
There's no HN API, right? So, you have to screen-scrape?
评论 #981218 未加载
ananthrkover 15 years ago
Is the source going to be made available?
评论 #981401 未加载
iiijjjiiiover 15 years ago
Does it allow you to track a comment thread?
评论 #981527 未加载