diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2024-06-20 22:02:41 -0700 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2024-06-20 22:02:41 -0700 |
commit | 47e12933ea18bd1b71013c66fa51beb738da9d60 (patch) | |
tree | 0b9e69cf83ae3e0cdbbc13dcc9e8f5b819a52053 /home/xyz/.config/myconf | |
parent | 837d468cd5fdb5f310a01e924eeb8c0926a10f84 (diff) |
fix: surfingkeys map and unmap some keys, disable useNeovim
Diffstat (limited to 'home/xyz/.config/myconf')
-rw-r--r-- | home/xyz/.config/myconf/surfingkeys_config.js | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/home/xyz/.config/myconf/surfingkeys_config.js b/home/xyz/.config/myconf/surfingkeys_config.js index b53da7a8..9ee90c0a 100644 --- a/home/xyz/.config/myconf/surfingkeys_config.js +++ b/home/xyz/.config/myconf/surfingkeys_config.js @@ -38,9 +38,14 @@ const { map(';h','<Ctrl-h>'); unmap('<Ctrl-h>'); // alt-s not working, seems because arkenfox user.js enabled resist finger printing -// remap alt-s also not working, see issue in github -//map(';s','<Alt-s>'); +// more see /home/xyz/.mozilla/firefox/xxxxxxxx.fly/user.js "1222285 & 1433592", seems related to firefox bugzilla https://bugzilla.mozilla.org/show_bug.cgi?id=1222285 and https://bugzilla.mozilla.org/show_bug.cgi?id=1433592 , user.js worte that RFP spoof alt and shift keys, I guess maybe this causes alt-s not working +// alt-s much map to one keystroke, so map to ;s does not work, see https://github.com/brookhong/Surfingkeys?tab=readme-ov-file#hotkey-to-toggle-surfingkeys: "hotkey must be one keystroke with/without modifier, it can not be a sequence of keystrokes like `gg`." +// note I map to Ctrl-e because it is the only ctrl-alphabet hotkey firefox does not has a hotkey for, note it used to be firenvim default hotkey but I changed to ctrl-, +map('<Ctrl-e>','<Alt-s>'); //unmap('<Alt-s>'); +map(';i','<Alt-i>'); +// I need firefox default ctrl-i hotkey, and surfingkeys ctrl-i hotkey doesn't seem to work anyway +unmap('<Ctrl-i>'); // on firefox, firenvim default Ctrl-e will be overwirted by github issue hotkey, see: // https://github.com/glacambre/firenvim/issues/1046 @@ -52,10 +57,12 @@ unmap('<Ctrl-h>'); // https://github.com/brookhong/Surfingkeys/issues/1542#:~:text=side%20is%20not-,necessary,-now%2C%20please%20help // some more links: // https://github.com/brookhong/Surfingkeys/tree/master/src/nvim/server -settings.useNeovim = true; +// but now it seems surfingkeys neovim integration for firefox will not happen in the near future, so I'm not set it to true anymore +//settings.useNeovim = true; // disable all insert mode hotkeys except Ctrl-i for future neovim integration -//iunmap('<Ctrl-i>'); +// but now it seems surfingkeys neovim integration for firefox will not happen in the near future, so I re-disable it +iunmap('<Ctrl-i>'); iunmap('<Alt-b>'); iunmap('<Alt-d>'); iunmap('<Alt-f>'); |