Live data from Hacker News

Show HN: vim-hackernews

github.com

21–30 of 38 posts

Re: Show HN: vim-hackernews

#22
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. / 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

#25

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. / O opens the link in browser instead…

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

#28
post #6
post #3

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 :-)

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 me…

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

Post reply on HN