Live data from Hacker News

ViHN: Vim for Hacker News

qsantos.fr

31–40 of 58 posts

Re: ViHN: Vim for Hacker News

#31

Y'all may be interested in my HNTV script: curl -s 'https://news.ycombinator.com/from?site=youtube.com' \ | egrep -o 'https?://www.youtube.com[^"]+' \ | mpv --playlist=- \ --speed=1.5 \ --ytdl-format='bestvideo[height [1] https://taylor.town/hntv

Is there a YouTube API tool? Would love to create a YouTube playlist so that I can watch this on the TV.

Re: ViHN: Vim for Hacker News

#34
post #25

I use Surfingkeys [1] with Firefox (also for Chrome) for this. Last time I looked it was by far the best solution and superior to vimium. [1]: https://github.com/brookhong/Surfingkeys

You haven't used Tridactyl then. https://github.com/tridactyl/tridactyl

I have! And I liked it! But Surfingkeys has 95% of the functionality of Tridactyl, but but does not need a troubleshoot guide like Tridactyl. Moreover, Surfingkeys implements a better search function on websites. With Surfingkeys, you also don't need to install an external application to work in input masks with Vim, as Surfingkeys has a Vim implementation on board that is completely sufficient for filling out input masks. I also like Surfingkeys' visual mode.

Re: ViHN: Vim for Hacker News

#36
post #26
post #25

I use Surfingkeys [1] with Firefox (also for Chrome) for this. Last time I looked it was by far the best solution and superior to vimium. [1]: https://github.com/brookhong/Surfingkeys

In what ways is it superior to Vimium?

Surfingkeys has much more keyboard shortcuts, implemented vimedit for input fields, better search, sessions...

Re: ViHN: Vim for Hacker News

#37
post #31

Y'all may be interested in my HNTV script: curl -s 'https://news.ycombinator.com/from?site=youtube.com' \ | egrep -o 'https?://www.youtube.com[^"]+' \ | mpv --playlist=- \ --speed=1.5 \ --ytdl-format='bestvideo[height [1] https://taylor.town/hntv

Is there a YouTube API tool? Would love to create a YouTube playlist so that I can watch this on the TV.

I think you can stream stuff from VLC on the TV. My guess is that you could set up a proxy sort of thing to generate the stream on the fly.

Alternatively, you could create a bot to throw every YouTube link posted to HN in a playlist, which you could open up in the YouTube app!

Re: ViHN: Vim for Hacker News

#39
Re >I never quite liked the idea of trying to remember what comments the user might have seen.

One way to do this by simply storing the latest comment's timestamp, and then you know that all the comments with a greater timestamp are newer

Post reply on HN