News for hackers. Stuff that matters.
Re:Show HN: vim-hackernews by fabiofzero on Saturday February 07, 2015 @09:05PM (#9016154)
Well, it certainly looks better than the current Hacker News design.
Re:Show HN: vim-hackernews by thejerz on Sunday February 08, 2015 @11:50AM (#9017679)
Really? How so?
Re:Show HN: vim-hackernews by evilduck on Saturday February 07, 2015 @09:04PM (#9016151)
The Emacs community embraced vim through evil-mode, the vim community is now implementing the rest of the OS.
Re:Show HN: vim-hackernews by agumonkey on Saturday February 07, 2015 @09:45PM (#9016229)
Meanwhile, in emacs land, https://github.com/vermiculus/sx.el
Re:Show HN: vim-hackernews by na85 on Sunday February 08, 2015 @01:24AM (#9016580)
I'd love to have M-x hackernews for wasting time.
Re:Show HN: vim-hackernews by peri on Sunday February 08, 2015 @05:54AM (#9016940)
Ah, uhm... as someone who has m-x TIMEWASTERDUJOUR for a while, be careful :)
Re:Show HN: vim-hackernews by mjs2600 on Thursday February 12, 2015 @03:22PM (#9041138)
It's already in melpa.
Re:Show HN: vim-hackernews by atmosx on Saturday February 07, 2015 @06:25PM (#9015726)
I didn't play with the HN API but I wonder if it's possible to post comments using the API. I haven't seen any program support user comments, it would be neat to be able to post comments using vim :-)
Re:Show HN: vim-hackernews by ryanss on Saturday February 07, 2015 @06:45PM (#9015805)
Hi, plugin author here.

It's not currently possible to post comments using the official API (or any of the unofficial APIs), but this probably wouldn't be difficult to implement using a standard POST request to the actual Hacker News web server. The harder part would be getting the interface for posting comments inside of Vim user friendly; it would probably be similar to how fugitive.vim lets you enter git commit messages.

I will definitely look into adding this to the plugin if enough interest is shown.

Re:Show HN: vim-hackernews by habosa on Sunday February 08, 2015 @05:00AM (#9016879)
I implemented ajax comment posting for the HNES Chrome Extension, which is open source. It's a dirty hack but it works. Check out the source:

https://github.com/etcet/hnes

Re:Show HN: vim-hackernews by davis on Saturday February 07, 2015 @07:18PM (#9015894)
That'd be awesome. Opening up a scratch buffer and then using that for the contents of the comment in the POST would work pretty well. I dig it.
Re:Show HN: vim-hackernews by tomphoolery on Saturday February 07, 2015 @06:34PM (#9015766)
Do you think they deliberately don't make that functionality part of the public API just so people won't create bots?
Re:Show HN: vim-hackernews by xur17 on Saturday February 07, 2015 @06:51PM (#9015821)
I doubt it. It wouldn't take very long at all to write a simple bot to do that with the existing web interface.
Re:Show HN: vim-hackernews by atmosx on Saturday February 07, 2015 @08:21PM (#9016073)
No, it's not that. I don't know why they don't allow comments via the official API.

Maybe @dang would be kind enough to let us know if we'll ever be able to use the API to post AUTH and post comments.

Re:Show HN: vim-hackernews by sagarjauhari on Saturday February 07, 2015 @10:24PM (#9016310)
Pretty awesome! My default browser is Chrome and I have Vimium installed - and its a really good to be able to press 'O' on a HN link and continue on Chrome with the same navigation (j, k, ..)

Based on the way I read HN, some customization that I would definitely want to do are:

1. Headline navigation (mapped to 'j') - move cursor to the next headline instead of the next line

2. <Enter> / O opens the link in browser instead of the HN thread

3. Opened links get blurred

4. Quick page reload mapping and Auto reload

But this is purely based on my style of reading HN.

Re:Show HN: vim-hackernews by swimfar on Sunday February 08, 2015 @01:40AM (#9016601)
I've wanted something similar to that headline navigation in a browser for a long time. Often times when reading blog-style webpages I want to scroll down to the next story (skipping the rest of the currently displayed story). Using page down requires multiple presses and often leaves the next story half on the page. I would like the next heading to be displayed at the top so it's always in the same spot and so it also maximizes the amount of the story that's displayed on the screen.

I don't know how this could be implemented nicely, though, without making it site specific. I'll have to look into vimium to see if I could at least do it for the sites I visit often. If vimium doesn't allow that kind of customization, pentadactyl and vimperator look like other possible options.

Re:Show HN: vim-hackernews by gingerlime on Sunday February 08, 2015 @06:23AM (#9016970)
+1

Would also add to the wishlist:

* when you click `u` to go back, it should keep the cursor on the item you were focusing on, so you continue where you left off

Re:Show HN: vim-hackernews by ponytech on Saturday February 07, 2015 @07:35PM (#9015940)
It will be very useful at work for reading HN and pretending I am working :)
[deleted]
Re:Show HN: vim-hackernews by kansface on Saturday February 07, 2015 @08:03PM (#9016023)
No, Vim is more or less incapable of dealing with JS because it lacks support for asynchronous processes with two way data flow.
Re:Show HN: vim-hackernews by lsiebert on Saturday February 07, 2015 @08:32PM (#9016094)
Yes, that's why NeoVim is super exciting.
Re:Show HN: vim-hackernews by Killswitch on Saturday February 07, 2015 @07:02PM (#9015853)
I dig your vim theme, can we get some info on that?
Re:Show HN: vim-hackernews by ryanss on Saturday February 07, 2015 @07:09PM (#9015875)
You can checkout my vim configuration here: https://github.com/ryanss/vim

It's just a single, well-commented .vimrc file a little over 100 lines long. The main plugins that add to the visual appearance are the jellybean colorscheme and the fancy status line comes from vim-airline.

Re:Show HN: vim-hackernews by lfender6445 on Sunday February 08, 2015 @10:14AM (#9017416)
thanks for turning me on to jellybean, what a great scheme. awesome plugin btw!
Re:Show HN: vim-hackernews by guillaume8375 on Sunday February 08, 2015 @11:51AM (#9017683)
Does anyone think it would be complicated to port it to Sublime Text? I'd like to, but I'm learning to program.
Re:Show HN: vim-hackernews by yzh on Sunday February 08, 2015 @03:17AM (#9016742)
This is gonna so reduce my productivity dude.
Re:Show HN: vim-hackernews by roylez on Sunday February 08, 2015 @07:28AM (#9017080)
Reading comments in this thread reminds me how talented people are and how much superfluous engery there is in them.
Re:Show HN: vim-hackernews by alexbardas on Saturday February 07, 2015 @06:40PM (#9015785)
Great and very useful plugin. Good job!
Re:Show HN: vim-hackernews by ecthiender on Sunday February 08, 2015 @05:50AM (#9016937)
Super cool stuff!

I also agree with few others here. Adding comments support would be so awesome.

Re:Show HN: vim-hackernews by avinassh on Sunday February 08, 2015 @06:42AM (#9017003)
Is that possible via HN API? or it has to do HTTP requests in CLI?
Re:Show HN: vim-hackernews by ecthiender on Sunday February 08, 2015 @01:18PM (#9017973)
The author of the plugin mentions in this thread above, it has to be done via sending POST requests directly to the HN endpoints, and also mentions if this gains enough demand, he might implement it.

I am trying to vote up for the comment support.

Re:Show HN: vim-hackernews by aceperry on Saturday February 07, 2015 @06:51PM (#9015823)
LOL, so cool. I prefer to read HN in a browser though.
Re:Show HN: vim-hackernews by owly on Saturday February 07, 2015 @09:38PM (#9016215)
Fun!
Re:Show HN: vim-hackernews by tunnuz on Saturday February 07, 2015 @07:57PM (#9016008)
Amazing!
Re:Show HN: vim-hackernews by myrandomcomment on Sunday February 08, 2015 @03:02AM (#9016722)
Ugh! If you want stuff like this then switch to EMACS.