I just use vimium, basically never have to use my mouse when browsing HN
when I hit `F` the url density is too high that it's difficult to tell which is which, how do you navigate differently?
ViHN: Vim for Hacker News
51–58 of 58 posts
Re: ViHN: Vim for Hacker News
#52Y'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
Re: ViHN: Vim for Hacker News
#53But... 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)
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.
Re: ViHN: Vim for Hacker News
#54I just use vimium, basically never have to use my mouse when browsing HN
Re: ViHN: Vim for Hacker News
#55Why 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.
Re: ViHN: Vim for Hacker News
#56Is 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 . There's some weird scroll into view code as well, holding j to just scroll down buffers up a bunch of scrolls and then scroll…
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.
Re: ViHN: Vim for Hacker News
#57I use https://haxplore.com which has a very nice way to navigate the nested conversations in my opinion.
Re: ViHN: Vim for Hacker News
#58Is 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 . There's some weird scroll into view code as well, holding j to just scroll down buffers up a bunch of scrolls and then scroll…
Thanks! 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…