Firefox now supports WebExtensions. It would be nice to tweak Vimium to work on Firefox.
This is related to #2076.
So far, I've developed some basic support in my fork:
You can use branch firefox-merger to test, which is simply all of these merged into master.
Thanks, @mrmr1993. Reviewing the final branch mentioned above, it looks like the required changes aren't really that disruptive. How complete is this? (I don't have the setup to test this.) I know @philc is interested in adding Firefox support.
I probably still need to look at non-normal mode key handling. Other than that, it seems complete, but Firefox isn't.
Some example problem Firefox bugs:
.blur()
before disabling should fix that, but we can still get stuck on other pages.[tab][esc]
, but still bad UX.fytJH
)keypress
always fires, so we can't distinguish printing and non-printing keys.This is really cool; great start @mrmr1993. I would love to get a viable Firefox version out onto the store since the current crop of Vim-style extensions are going to stop working once the classic extension APIs are fully deprecated. Hopefully Firefox support won't incur a large QA/maintenance burden.
I haven't stressed tested it with days of usage, but I will try to. However, there were a couple of things I noticed right away:
Have you used it much in practice @mrmr1993?
Have you used it much in practice @mrmr1993?
I've completely switched from Chrome to Firefox, so I'm using it a lot. There's plenty that isn't working, but my barely-patched version works well enough for my current day to day.
I would love to get a viable Firefox version out onto the store
Is anybody else (interested in) working on this at the moment? I can start actively working on the project again, if not / if it would help.
FYI:
https://addons.mozilla.org/en/firefox/addon/vimfx/
There is an addon on amo which is similar with Vimium for Chrome [EDIT: Still using old Addon-SDK though]
https://addons.mozilla.org/en/firefox/addon/vimium/
And a deprecated addon which is also called vimium...
I wish to contribute to this project, making vimium work with firefox :)
how can i actually install from the firefox-merger branch? i would also like to try it out and test it.
cake build
to build.about:debugging
, by selecting any file in the folder containing your clone.@mrmr1993 What's the status of this?
We should probably merge firefox-merger and create a TODO list of gaps between the chrome and firefox version. Once we get to the point where it's ready for wide adoption, we'll get it onto the Firefox addons site.
We should probably merge firefox-merger
I've rebased firefox-compat onto master. To get Vimium working with Firefox, it should be enough to merge firefox-compat-rb (the rebase branch).
@mrmr1993 What's the status of this?
Other things that need fixing, either on our side or on Firefox's:
window.find
throws an error on page wrap. (needs more investigation, but e46a369 stops the errors. Also stops the find mode HUD losing focus after calling window.find
).about:newtab
seems like a more likely candidate going forward. FF issue 1275209.)This is everything that springs to mind for now.. I'll tidy this up and push a PR.
FYI: it was announced that legacy extensions will stop working in tomorrow's Firefox Nightly so presumably VimFx, Firefox's Vimium counterpart, will also stop working in 57. With a brief skim, it doesn't look like their initiative to switch to WebExtensions is progressing (https://github.com/akhodakivskiy/VimFx/issues/860).
Thanks for the FYI @mcomella. In case it's not clear to passersby, Vimium does work in Firefox 57, see Vimium-FF. I, for one, and coming from VimFx, am happy with its feature set. Thanks Vimium folks 🙂.
Most helpful comment
Thanks for the FYI @mcomella. In case it's not clear to passersby, Vimium does work in Firefox 57, see Vimium-FF. I, for one, and coming from VimFx, am happy with its feature set. Thanks Vimium folks 🙂.