Live data from Hacker News

Vimium – A browser extension that provides Vim-style keyboard controls

vimium.github.io

51–60 of 214 posts

Re: Vimium – A browser extension that provides Vim-style keyboard controls

#51
post #40

I once used Vimium and some bug caused the extension to permanently close my hard-earned ~500 tab collection. So while I feel like I lost a lot, I've never felt so much at peace since either.

Holy shit... 500 tabs? I thought I was bad about accumulating tabs but had no idea ~500 was even possible. I'm trying to even but I literally can't--You might say "I literally can't even".

I have 7-8000 on one machine, multiple thousands on at least two others. Session Buddy + either Auto Tab Discard or The Marvellous Suspender means I don't lose any even in crashes and it doesn't use too much RAM.

Re: Vimium – A browser extension that provides Vim-style keyboard controls

#52
post #47

Earlier quoted context omitted.

Holy shit... 500 tabs? I thought I was bad about accumulating tabs but had no idea ~500 was even possible. I'm trying to even but I literally can't--You might say "I literally can't even".

Honestly, I don't know how you all stay so low, I'm down to 1172, and getting it even that low feels like a bit of an accomplishment.

Zen. And MaxTabs. I limit myself to 5 tabs by force. Anything more, it means I'm becoming scatterbrained and need to revisit what I already have opened and think more linearly rather than in a spastic manner.

I tried saving tabs for reference material, but I prefer something simpler. I shutdown my PC at the end of the day. I have a dump.txt where every link that might get needed tomorrow gets pasted.

Re: Vimium – A browser extension that provides Vim-style keyboard controls

#53
post #48
post #47

Earlier quoted context omitted.

Honestly, I don't know how you all stay so low, I'm down to 1172, and getting it even that low feels like a bit of an accomplishment.

What are you doing with these tabs? Are they a reading list? Things like gmail that you could reopen whenever?

Two things: tabs as bookmarks, and groups/windows of tabs relating to different projects so you can easily pick up where you left off.

Re: Vimium – A browser extension that provides Vim-style keyboard controls

#56
post #34
post #33

Earlier quoted context omitted.

100%. Scrolling with arrows/mouse instead of hitting j or k just feels uncomfortable. Maybe there's something to be learned by browser designers. It's not just the fact it's on the home row and muscle memory for Vim users. The default speed for down/up arrow scrolling and lack of smoothing is just not the same.

In vim, I usually scroll with ctrl-u/d?

Same but reading on the internet is not like scanning source code files. I tend to read much more linearly and the j/k scroll speed is fast enough. But obviously that's still an option.

Re: Vimium – A browser extension that provides Vim-style keyboard controls

#57
For those using firefox there is tridactyl available as others have commented as well. They've gone a step further introducing native messaging [1][2] which opens up an endless ways of interacting with the underlying OS which makes implementing all sorts of useful day-to-day functionality such as personal automation a joyful breeze.

For example, saving the current page in a local file can be as easy as: tri.excmds.exclaim_quiet ('echo "' + document.location.href + '"' > $HOME/notes')

Sky is the limit given that you can interface with any page with JS and then pipe and process the output with any system utility or system context.

A simple example for demonstration would be copying the contents of the body tag, piping them to a readability[3] util and have the output saved to a local vault.

Or have a video played with mpv with a press of a button since you can invoke any of these functions be it custom or built-in targeting any element the same way you would follow a link by hinting.

Here are a few other, pretty interesting use cases as seen in examplar custom user configurations taken from their github wiki[4]

alias playAllVideos js tri.native.run("mpv --really-quiet --ontop --keepaspect-window --profile=protocol.http " + Array.from(document.querySelectorAll("a, iframe, video")).reduce((s, e) => {let r=(/^https?:\/\/((www.)?youtu((\.be\/)|(be\.com\/((embed\/)|(watch\?v=))))[^ ]+)|(.+\.webm)$/);let l="";if(e.tagName=="IFRAME")l=e.src.match(r);else if(e.tagName=="A")l=e.href.match(r)||e.innerText.match(r);else if(e.tagName=="VIDEO")l=[e.currentSrc?e.currentSrc:e.src];console.log(l);return s+(l && l.length > 0 && s.indexOf(l[0])alias gitclone jsb -p tri.native.run("git clone --depth=1 '" + JS_ARG + "' /home/me/prog/" + JS_ARG.split("/").slice(-1))

alias rsssave jsb -p tri.native.run('cat >> ~/.config/newsboat/urls', JS_ARG + "\n")

alias openGithubNotifications composite js Array.from(document.querySelectorAll("li.list-group-item > span:nth-child(1) > a:nth-child(2)")).map(e => e.href) | jsb -p JS_ARG.forEach(url => tri.excmds.tabopen(url))

Edit: I assume native messaging has security implications you should probably consider if the browser is running directly with your system without any means of isolation like sandboxing with bubblewrap or better running under a virtual environment.

[1] https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/Web... [2] https://github.com/tridactyl/native_messenger [3] https://github.com/cixtor/readability [4] https://github.com/tridactyl/tridactyl/wiki/

Re: Vimium – A browser extension that provides Vim-style keyboard controls

#58

I used Vimperator on Firefox about 10 years ago. Back then it was fantastic, but I think the add-on environment has changed in FF (WebExtensions) since then and add-ons aren't as powerful. I've used Vimium on Chrome. Every few years I get excited, install it, feel 10x more productive, and then a few days later uninstall it. As I recall, it doesn't work on the New Tab page. It doesn't work if the address bar is in foc…

What I have noticed is that the bottleneck in editor vs. browser is different, which explains why I don't use Vimium anymore either.

In the editor speed matters: speed is a bottleneck. For example, if AI comes in writes a paragraph based on the function title, "bubble_sort_array", that's great, because now I've sliced 2 minutes off the 3 minutes that would ordinarily take.

But in the browser, time is cheap; in fact, that's largely why I used the browser, to luxuriate in the time it takes to, say, read an article, or write a long comment. I'm there to take it slow, to escape the tyranny of efficiency. So when I'm there to relax, shaving 4 seconds off a 10 minute reading time is irrelevant.

So I use shortcuts in my editor, but not my browser.

Re: Vimium – A browser extension that provides Vim-style keyboard controls

#59
post #33

Been using vimium for years. I have gotten so used to scrolling pages at different speed by pressing keys that whenever I am using someone else's computer I have to fight muscle memory. I also use it for clicking links through keybinds, but really the custom up/down is the main usage. The occasional website having its own keybinds never stops being annoying, but it's easy to disable the extension per site

100%. Scrolling with arrows/mouse instead of hitting j or k just feels uncomfortable. Maybe there's something to be learned by browser designers. It's not just the fact it's on the home row and muscle memory for Vim users. The default speed for down/up arrow scrolling and lack of smoothing is just not the same.

I think most browser designers expect you to use the trackpad or a mouse wheel

Re: Vimium – A browser extension that provides Vim-style keyboard controls

#60
post #40

I once used Vimium and some bug caused the extension to permanently close my hard-earned ~500 tab collection. So while I feel like I lost a lot, I've never felt so much at peace since either.

That used to be my solution for managing tabs in chrome. Every few months it would just crash, I'd lose all my tab, and I'd think "probably for the best". Now chrome is a lot more stable :/.
Post reply on HN