Nice. Reminds me of a project I built a long time ago: https://yahnd.com/theater/?t=week. Makes me want to update it to have all the urls on the listing page so I can use your player technique on it. Or throw em in a yt playlist.
one thing I like in Vimium C over Vimium is reload frame. Vimium it would reload the window and I have an older web app that uses frames where reloading the window resets everything back to a particular state and I have to go and reopen the frames.
The only problem I have is when I use the search (which, I know, is not HN itself but a separate service), it won't pick up the dropdown options as clickable.
It's not that high on HN? The left most column is upvote. Then the next button immediately to the right is the link. Next row buttons from left to right are username, comments (via hours link), hide, and comments again (normal link).
But... You can use $> lynx -vikeys from a terminal emulator inside the vim itself!
That way you dont even have to invent anything or leave vim!
(posted from vim btw)
You don't even need to drop down to a terminal -- there's https://github.com/dansomething/vim-hackernews (although it hasn't been updated since 2018) that interfaces with the API directly.
Yeah, the most interesting part is that lynx is in a vim terminal buffer, and then the same vim is opened from lynx inside the almighty vim terminal buffer to edit this post textarea ;)
w3m which I am using also seems able to browse HN; however, usually people want seamless navigation between HN and various links, so a graphical browser is a must. Qutebrowser is a good choice for those who enjoy keyboard navigation.
Why not using keyboard controls for web pages in general? I tried multiple solutions for browsing the web and using vim binding to do so over the years. Some of them for extended periods of time, including Tridactyl, Vimium and others. My favorite by far is Qutebrowser because of its default commands and integration of them, for example moving between tabs, editing or copying URLs or configuration is pretty easy.
I do! I use Vimium C for general browsing. But, considering the time I spend on Hacker News, I needed something to optimize my procrastination even further!
> When GNOME Shell happened, I was forced to go looking for a new window manager. I ended up installing Ratpoison.
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.
As a fan of vi/vim keyboard navigation everywhere, I’m always intrigued to see how other people solve this. But if you’re looking for a more generalized approach, I can recommend a mix of vimium and w3m with vim key bindings.
Is it really vim if you don't have modes and can't combine operations ;p. Everything is pretty much single keystrokes that don't combine in any meaningful way. The only "vim" thing about it is h/j/k/l. Thing like collapsing don't use vim keys z(a|o|c), going to different places doesn't use g<thing>.
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 :).
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.
tl;dr: I made ViHN [1] to read Hacker News without having to move my hands away from the keyboard. It’s freely available on Firefox [2] and Chrome [3].
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.
There should be a couple command line tools to read HN, this way you can even stay in the terminal and don't need to switch to the browser
Switching 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