From 47e12933ea18bd1b71013c66fa51beb738da9d60 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Thu, 20 Jun 2024 22:02:41 -0700 Subject: fix: surfingkeys map and unmap some keys, disable useNeovim --- home/xyz/.config/myconf/surfingkeys_config.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'home') 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',''); unmap(''); // 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',''); +// 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('',''); //unmap(''); +map(';i',''); +// I need firefox default ctrl-i hotkey, and surfingkeys ctrl-i hotkey doesn't seem to work anyway +unmap(''); // 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(''); // 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(''); +// but now it seems surfingkeys neovim integration for firefox will not happen in the near future, so I re-disable it +iunmap(''); iunmap(''); iunmap(''); iunmap(''); -- cgit v1.2.3-70-g09d2