TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Hnsh - Hacker News from the command-line

61 点作者 scottjackson超过 15 年前

12 条评论

rdtsc超过 15 年前
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 未加载
decklin超过 15 年前
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 未加载
pmarin超过 15 年前
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.
scottjackson超过 15 年前
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 未加载
ZeroGravitas超过 15 年前
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 未加载
amackera超过 15 年前
You should put this on github! Are you accepting patches?
评论 #981410 未加载
scottjackson超过 15 年前
Update - the code has been uploaded to Github!<p><a href="http://github.com/scottjacksonx/hnsh" rel="nofollow">http://github.com/scottjacksonx/hnsh</a>
alttab超过 15 年前
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)
wglb超过 15 年前
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 未加载
ShabbyDoo超过 15 年前
There's no HN API, right? So, you have to screen-scrape?
评论 #981218 未加载
ananthrk超过 15 年前
Is the source going to be made available?
评论 #981401 未加载
iiijjjiii超过 15 年前
Does it allow you to track a comment thread?
评论 #981527 未加载