ViHN: Vim for Hacker News
qsantos.fr
qsantos.fr
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<=?720]+bestaudio/best'
[1] https://taylor.town/hntvAlternatively, 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!
I also noticed that Vimium C is better at finding clickable elements for hints.
I use Vimium C and haven't looked back.
The rightmost buffer is `w3m` browsing arXiv.
Wow, I used Ratpoison around 20 years ago. SunOS labs in school used some window manager I couldn't stand (don't remember which) and I saw a classmate with basically no window chrome on their display, and was intrigued.
They helped me compile it (no small feat given our resource constraints) and off I went, until my hand started to cramp a year later from hitting ctrl-t so much. I switched to ion for awhile, and then ended up scavenging a linux box to do assignments from home.
I'm happy to see some folks still holding firm on the "no-pointer" front.
There's some weird scroll into view code as well, holding j to just scroll down buffers up a bunch of scrolls and then scrolls all at once. I'm guessing it's a side effect of smooth scrolling or something.
To avoid being a typical grumpy HN commentator, nice work :).
And I agreed that this is not “pure” Vim.
But I did need to find a compromise. There is little point in having an “insert” mode, like Vimium does, since I am targeting a very specific website and not overriding any existing shortcut (AFAICT). If you think it's important to you, I might consider implementing custom key bindings so that you can use with “pure” Vim shortcuts!
Regarding the scrolling, it could be two things:
1. I do not update the address bar on every key press, to avoid some kind of rate limitation I encountered when I did so initially. Instead, there is a very short delay so before it happens. But the viewport should still scroll immediately. 2. If it's smooth scrolling, there is actually a toggle you can change in the extension settings. If you still have the behavior without smooth scrolling, I would be curious to know more, to see if I can make the experience more pleasant.
We're paying thousands of dollars for machines with high resolution displays, why don't people use the whole display???
[1] https://github.com/qsantos/ViHN/
[2] https://addons.mozilla.org/fr/firefox/addon/vihn/
[3] https://chromewebstore.google.com/detail/vihn/cfmccoefeojndm...
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
lynx -vikeys gopher://hngopher.comSwitching to my browser, navigating to HN, and checking the first page (and going back if nothing interests me) already does not require me to touch my mouse and can be done with very few keystrokes. Typically, I visit HN when I'm waiting for something to complete or similar, though, in which case I anyways happily move my hand to the mouse, as I'll be _browsing_ for a bit
[1]: http://neonmodem.com