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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: how2 – stackoverflow.com from the terminal

272 点作者 csantini超过 9 年前

16 条评论

Mizza超过 9 年前
Or the more mature &#x27;howdoi&#x27; - <a href="https:&#x2F;&#x2F;github.com&#x2F;gleitz&#x2F;howdoi" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;gleitz&#x2F;howdoi</a>
评论 #11150522 未加载
评论 #11150981 未加载
评论 #11152359 未加载
danso超过 9 年前
Nice! Installed it and will now make it part of all the computers I use.<p>I found this funny:<p>&gt; <i>It uses Google and Stackoverflow APIs, because Stackoverflow search on its own doesn&#x27;t works as well.</i><p>It doesn&#x27;t really make sense why Google would be a better entrance point into StackOverflow&#x27;s content -- but it is -- as I imagine the Google algorithm uses SO&#x27;s API itself to incorporate SO&#x27;s data into pagerank in some way (the tags, the points, etc.)...OTOH, after landing on a particular question via Google, if it isn&#x27;t the thing I actually need, I find SO&#x27;s list of related questions to almost always be on point.
评论 #11150454 未加载
评论 #11150958 未加载
评论 #11150967 未加载
GordonS超过 9 年前
At first, I thought &#x27;why2&#x27;?!<p>But then I saw the video, the way you can specify a language, and the nice format that results are displayed in, along with the option to see more options - this is actually quite nice!<p>It would be good to have the option to use it with Server Fault (also from StackExchange network) too.
brudgers超过 9 年前
Over the long run, if I&#x27;m living in the terminal rather than the browser, I probably will be better off learning to be effective finding help via `man` pages rather than taking on a dependency on a latent network connection and &quot;possibly&quot; relevant content...and node and npm and javascript.<p>In the short run, a tool like this may make it easier to get to the point where I am living in the terminal.
评论 #11152431 未加载
astazangasta超过 9 年前
My first reaction (&quot;Wowza!&quot;) was tempered by the fear that this sort of intervening layer may erode participation (and thus quality) of Stack Overflow. I suppose such a thing will never be popular enough to make this sort of effect.
skoczymroczny超过 9 年前
Does it know how to parse HTML using regexes?
评论 #11151421 未加载
calebm超过 9 年前
The next logical step is stackoverflow-powered code generation :)
评论 #11151647 未加载
jimmyppi超过 9 年前
Another alternative that just searches google (or bing if you want to go crazy) and extracts commands from the search hits: <a href="https:&#x2F;&#x2F;github.com&#x2F;jimmyppi&#x2F;searchcmd" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jimmyppi&#x2F;searchcmd</a><p><pre><code> $ searchcmd &quot;unzip bz2&quot; ..... tar xjvf (michaelangela.wordpress.com, superuser.com) bunzip2 filename.bz2 (cyberciti.biz, linuxquestions.org) tar xvjf filename.tar.bz2 (superuser.com) bzip2 -d filename.bz2 (superuser.com) bzip2 -dk filename.bz2 (superuser.com)</code></pre>
chishaku超过 9 年前
Very nice. I much prefer this to howdoi.<p>A couple suggestions:<p>Does the `-l lang` flag correspond to stackoverflow tags which aren&#x27;t necessarily limited to languages?<p>This should be specified because the right tag can significantly increase the quality of search results.<p>Also, it would be nice to have a keyboard shortcut that opens a question&#x2F;answer in the browser. That way I can easily vote.
评论 #11152759 未加载
redwards510超过 9 年前
This is awesome! I have one burning question though: what is the proper -l lang parameter to use for Windows consoles? I tried:<p>how2 -l windows enable tab completion<p>and got nothing. &quot;PowerShell&quot; and &quot;batch&quot; bring back results, but I am drawing a blank on what to call the Windows Shell (cmd.exe). Thanks!
评论 #11154672 未加载
haphazardeous超过 9 年前
Saw this earlier this morning but just had to use it and boom! It worked perfectly. I really like the idea of using things on the console and the user interface is nice and sleek. would love to see this getting even better over time!
uxcn超过 9 年前
Text web browsers also make a lot of stuff like this reasonably easy inside a terminal. Someone mentioned <a href="http:&#x2F;&#x2F;elinks.or.cz&#x2F;" rel="nofollow">http:&#x2F;&#x2F;elinks.or.cz&#x2F;</a> a while ago.
andrepd超过 9 年前
Awesome! It would be great if I could use it to query any stackexchange site, like TeX, for instance. Like `how2 prevent table from floating -s tex` would search on tex.se
评论 #11152806 未加载
amelius超过 9 年前
How does it perform the natural language processing in the search? Or does it rely on stackoverflow for that?
评论 #11150813 未加载
parsethis超过 9 年前
loving this! helps me stay in the terminal
anthk超过 9 年前
apropos