Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add the ability to temporarily toggle vimium on/off for a page #428
@philc I dig your suggestion. It doesn't happen often, but I'll sometimes find myself on a site that has its own keyboard navigation, and it always goes splat with vimium. Yes, the simple solution is to add an exception, but that's a disruption to the browsing experience (and oh so much commitment from a site I'll only visit once).
I tested it out, and Insert mode definitely does the job on super AJAXed sites like GMail. Thanks!
@DeadDork do you find that GMail sometimes causes Vimium to leave insert mode? For example, suppose you have two chat windows open.
Hit "i" to enter insert mode
At this point for me, Insert mode is no longer invoked. Any ideas why this is happening?
Is GMail's change focus field somehow triggering an "escape" like event that's canceling insert mode?
Similarly, most times (but not always) hitting "/" to jump to the GMail search bar while in insert mode will pull me out of insert mode.
@philc I'd love it if in addition to insert mode we there was another mappable keystroke (probably a pretty fancy chord) that would toggle vimium to off, and stay off, until it was toggled back on. That would let me use escapes and things like that in GMail without vimium sometimes canceling insert mode. This seems similar to #186
The insert-mode workaround works, but it would be very nice to have a disable feature. Vimperator on Firefox uses Shift+Esc, which is super convenient for sites like Google docs. Shift+Esc toggles Vimperator on and off, and this would be great for Vimium, especially for sites that use Esc as a hotkey (HTML5 games and whatnot).
referenced this issue
Jun 11, 2013
referenced this issue
Jul 2, 2014
changed the title from
The ability to temporarily disable vimium + more
Add the ability to temporarily toggle vimium on/off for a page
Aug 21, 2014
It's not just sites like gmail though. I am interested in writing WebGL games, so I play a lot of demos. These demos are frequently on sites that I'll only visit once, so excluding these sites manually is tedious and not exactly what I want to do. Temporarily disabling, however, would solve the problem quite nicely.
Aside from games, sites are getting more complex. I work on an HTML5 app (complete with shortcuts) on an embedded platform, so I frequently need to access the same app on different IP addresses. Just like the game thing, adding exceptions for each of these IP addresses takes far too much effort, and I usually try to just hobble through by going into insert mode (which isn't a real solution).
It's certainly not just gmail. Any website has the ability to bind custom shortcuts. Additionally, other Chrome plugins have the ability to map any of these keys. For example, the Vimsert plugin, allows you to open a vim editor within any text area. This does not work with Vimium because both bind to the same keys. I can't imagine a user disabling Vimium for each site that might have a form they could fill out, but I could see a user simply hitting shift + escape and disabling Vimium before using Vimsert. This might seem like an unlikely scenario, but in my opinion it seems likely that Vimium users might have other plugins that provide greater "vim-like" functionality and and would run into these types of conflicts.
This is just one example, but I'm sure there are many others. The bottom line is that I don't think it makes sense to assume the user will have the foresight to know when Vimium will conflict with a site or plugin.
@smblott-github As far as I can see the original feature requested is still not available. It isn't possible to enable vimium on a page where it is currently disabled without reloading the page. Being able to toggle it by clicking on the vimium extension icon would be useful.