6 ms·
Show HN: Browse Hacker News from the Comfort of Your Terminal
- WA 11y agoLooks good from the screenshot, but for me, votes and comments is way more important than who submitted it. And: What happens to titles which are too long?
- jakub_g 11y agoYep, domain is also quite often very important, often the title does not mean much without the domain. I think though two lines per item would be needed to display all that info
- oneeyedpigeon 11y agoWell, it does depend on the width of your terminal, of course, but the title could be abbreviated, there's no need to repeat "ago" in the time column and, as others have pointed out, the submitter's name is pretty irrelevant. I'd go title, domain, votes, comments and try to fit that on one line. In fact, now I compare that to the actual web home page where it's impossible to easily compare things like comments or age, I just want to redesign that ...
- rafael-rinaldi 11y agoDidn't really noticed any issues in that matter so far. But if you find one, please, feel free to report on the issue tracker.
- starquake 11y agoNice. Would be even cooler if you could view and add comments using the terminal.
- rafael-rinaldi 11y agoGlad you liked! I honestly just wanted something really simple to peak at HN. Feel free to open an issue, though! Contributions are welcome.
- Derpdiherp 11y agoHmm. If you're wanting to browse websites from the terminal, why not just use something like Lynx?
- mbrock 11y agoHave you tried using any of those browsers? I don't think they're very convenient for frequent use. In Lynx, it takes 10 keystrokes to navigate to link #1 on Hacker News. 11 if you count accepting the cookie, which you have to do every time you open it, since it doesn't persist your choice. In my terminal, Lynx fits 5 stories at a time and navigating from one to the other takes 5 key strokes.
- coroxout 11y agoIf I'm browsing a site with a top menu in lynx I press the delete key to scroll down past the menu so I don't have to press down repeatedly. Then capital V at the cookie prompt rejects it "foreVer" (for the rest of the session). My version does, however, default to nntp for news.* subdomains unless you supply the protocol, so that's annoying. Or you can use elinks and click on the links with the mouse...
- basscomm 11y agoI use Lynx frequently. You can, for example, press > to go to the next link in the 'same column', which cuts down the keystrokes to go to the next story to two keystrokes.
- mbrock 11y agoOh, that's pretty cool.
- Derpdiherp 11y agoYou can save your cookie options by setting an option in lynx: http://lynx.invisible-island.net/current/README.cookies http://lynx.invisible-island.net/current/README.cookies As the poster below me points out, you can navigate links pretty fast in lynx when you get the hang of it and learn a few shortcuts. I don't use it everyday, but do use it kind of frequently.
- matthijs_ 11y agoI see these solutions a lot lately, HN browser, weather, etc, all in the terminal. Perhaps a silly question, but why the need for browsing it in the terminal instead of a browser like say, Chrome or Firefox?
- mQu 11y agoBecause it looks good on r/unixporn ;-) But more to the point - it fits with many keyboard only work flows and/or tiling WMs (i3, awesome, etc). At least that's what it's good in it for me. One less context switch.
- ant6n 11y agoWhen work is in a terminal, and hacker news it's in a browser, it's probably a good thing that there's a context switch between them.
- omaranto 11y agoDon't those reasons also soy to browsers? My tiling window manager is perfectly capable of tiling browser windows. Browsers like Firefox and Chrome can be controlled fully by keyboard, even very comfortably with the right extension.
- rafael-rinaldi 11y agoBesides learning purposes, I built it because I spend most of my time in a Terminal window.
- JD557 11y agoI've been reading HN on vim for a while. Sometimes I just want to kill some time while code compiles/tests run. This way, HN is just on a different split pane, and I can stop browsing as soon as the other job is finished.
- mikemajzoub 11y agoCool Project! I use w3m for hn, but what you've looks a bit cleaner!
- rafael-rinaldi 11y agoThanks! Glad you like it.
- cyphar 11y agoYou can also browser Hacker News in the comfort of your favourite editor (Vim): https://github.com/ryanss/vim-hackernews https://github.com/ryanss/vim-hackernews
- wcummings 11y agoI've deliberately avoided doing IRC or HN or anything like that from my editor (emacs), too much of a distraction.
- aprdm 11y agoGreat! Now I don't need to alt tab to the terminal to pretend to work when someone comes over my shoulder!
- rafael-rinaldi 11y agoHaha well, that's an interesting use case!
- rafaqueque 11y agoLooks pretty cool. I often open the website, but since I work mainly from the terminal, this will be useful. Hope to see this project grow. Offtopic: What's the font in the screenshot?
- rafael-rinaldi 11y agoIt's PragmataPro: http://www.fsd.it/shop/fonts/pragmatapro http://www.fsd.it/shop/fonts/pragmatapro
- smartmic 11y agoWant an alternative for some hacker hackers? Try HN for terminals written in assembly language: https://2ton.com.au/hnwatch/ https://2ton.com.au/hnwatch/
- deleted 11y ago[deleted]
- dmix 11y agoI'd love something similar for Instapaper. For reading in the terminal with `less` or $EDITOR.
- nickysielicki 11y agoI wish the whole making-cli-programs-in-node fad would die.
- rafael-rinaldi 11y agoAnd I wish you all the best.