Live data from Hacker News

Show HN: vim-hackernews

github.com

1–10 of 38 posts

Re: Show HN: vim-hackernews

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

Re: Show HN: vim-hackernews

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

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

#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 messages.

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

Re: Show HN: vim-hackernews

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

Do you think they deliberately don't make that functionality part of the public API just so people won't create bots?

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

#10

I dig your vim theme, can we get some info on that?

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.

Post reply on HN