firenvim icon indicating copy to clipboard operation
firenvim copied to clipboard

Ctrl+w gets intercepted by firefox

Open WhyNotHugo opened this issue 2 years ago • 2 comments

  • OS Version: linux x86-64
  • Browser Version: Firefox 91.0
  • Browser Addon Version: 0.2.8
  • Neovim Plugin Version: 0.2.8 (97f4794ffea6c559b71341597a293fe65863c3da)

What I tried to do

When pressing ctrl+w, in insert mode, neovim deletes a word.

What happened

When pressing ctrl+w, in insert mode on firenvim, firefox closes the tab.

I tried opening another issue about 7 times, but every time I try to delete a word memory muscle kicks in and I accidentally close the tab. :c

WhyNotHugo avatar Aug 23 '21 16:08 WhyNotHugo

Yes, as described here you need to patch firefox to be able to use <C-w>. This is a firefox issue that is unlikely to ever be fixed unfortunately.

glacambre avatar Aug 23 '21 17:08 glacambre

In addition to the above linked Firefox patches that you use at compile time to build a patched version, there is also a way to hot-patch the binary after it's built: i.e. you can use binary distro packages as usual and then after each release whack out the nasty bit.

https://github.com/alerque/que-firefox/blob/master/bin/patch-firefox.sh

Note this has a hard coded path to the file on my system (and runs as root!) so you'd better have a look and adapt to your system rather than just blindly running my script.

alerque avatar Aug 23 '21 18:08 alerque